be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 8.73k | PaddedPODArray<UInt8>& c) { |
72 | 8.73k | size_t size = a.size(); |
73 | 8.73k | const A* __restrict a_pos = a.data(); |
74 | 8.73k | const B* __restrict b_pos = b.data(); |
75 | 8.73k | UInt8* __restrict c_pos = c.data(); |
76 | 8.73k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 7.03M | while (a_pos < a_end) { |
79 | 7.02M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 7.02M | ++a_pos; |
81 | 7.02M | ++b_pos; |
82 | 7.02M | ++c_pos; |
83 | 7.02M | } |
84 | 8.73k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 73 | PaddedPODArray<UInt8>& c) { | 72 | 73 | size_t size = a.size(); | 73 | 73 | const A* __restrict a_pos = a.data(); | 74 | 73 | const B* __restrict b_pos = b.data(); | 75 | 73 | UInt8* __restrict c_pos = c.data(); | 76 | 73 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 146 | while (a_pos < a_end) { | 79 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 73 | ++a_pos; | 81 | 73 | ++b_pos; | 82 | 73 | ++c_pos; | 83 | 73 | } | 84 | 73 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 487 | PaddedPODArray<UInt8>& c) { | 72 | 487 | size_t size = a.size(); | 73 | 487 | const A* __restrict a_pos = a.data(); | 74 | 487 | const B* __restrict b_pos = b.data(); | 75 | 487 | UInt8* __restrict c_pos = c.data(); | 76 | 487 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.82k | while (a_pos < a_end) { | 79 | 1.34k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.34k | ++a_pos; | 81 | 1.34k | ++b_pos; | 82 | 1.34k | ++c_pos; | 83 | 1.34k | } | 84 | 487 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 279 | PaddedPODArray<UInt8>& c) { | 72 | 279 | size_t size = a.size(); | 73 | 279 | const A* __restrict a_pos = a.data(); | 74 | 279 | const B* __restrict b_pos = b.data(); | 75 | 279 | UInt8* __restrict c_pos = c.data(); | 76 | 279 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 576 | while (a_pos < a_end) { | 79 | 297 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 297 | ++a_pos; | 81 | 297 | ++b_pos; | 82 | 297 | ++c_pos; | 83 | 297 | } | 84 | 279 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 133 | PaddedPODArray<UInt8>& c) { | 72 | 133 | size_t size = a.size(); | 73 | 133 | const A* __restrict a_pos = a.data(); | 74 | 133 | const B* __restrict b_pos = b.data(); | 75 | 133 | UInt8* __restrict c_pos = c.data(); | 76 | 133 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 408 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 133 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 62 | PaddedPODArray<UInt8>& c) { | 72 | 62 | size_t size = a.size(); | 73 | 62 | const A* __restrict a_pos = a.data(); | 74 | 62 | const B* __restrict b_pos = b.data(); | 75 | 62 | UInt8* __restrict c_pos = c.data(); | 76 | 62 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 62 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 603 | PaddedPODArray<UInt8>& c) { | 72 | 603 | size_t size = a.size(); | 73 | 603 | const A* __restrict a_pos = a.data(); | 74 | 603 | const B* __restrict b_pos = b.data(); | 75 | 603 | UInt8* __restrict c_pos = c.data(); | 76 | 603 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.50k | while (a_pos < a_end) { | 79 | 1.90k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.90k | ++a_pos; | 81 | 1.90k | ++b_pos; | 82 | 1.90k | ++c_pos; | 83 | 1.90k | } | 84 | 603 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 253 | PaddedPODArray<UInt8>& c) { | 72 | 253 | size_t size = a.size(); | 73 | 253 | const A* __restrict a_pos = a.data(); | 74 | 253 | const B* __restrict b_pos = b.data(); | 75 | 253 | UInt8* __restrict c_pos = c.data(); | 76 | 253 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.77k | while (a_pos < a_end) { | 79 | 1.52k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.52k | ++a_pos; | 81 | 1.52k | ++b_pos; | 82 | 1.52k | ++c_pos; | 83 | 1.52k | } | 84 | 253 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 62 | PaddedPODArray<UInt8>& c) { | 72 | 62 | size_t size = a.size(); | 73 | 62 | const A* __restrict a_pos = a.data(); | 74 | 62 | const B* __restrict b_pos = b.data(); | 75 | 62 | UInt8* __restrict c_pos = c.data(); | 76 | 62 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 62 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 13 | PaddedPODArray<UInt8>& c) { | 72 | 13 | size_t size = a.size(); | 73 | 13 | const A* __restrict a_pos = a.data(); | 74 | 13 | const B* __restrict b_pos = b.data(); | 75 | 13 | UInt8* __restrict c_pos = c.data(); | 76 | 13 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 26 | while (a_pos < a_end) { | 79 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 13 | ++a_pos; | 81 | 13 | ++b_pos; | 82 | 13 | ++c_pos; | 83 | 13 | } | 84 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 82 | PaddedPODArray<UInt8>& c) { | 72 | 82 | size_t size = a.size(); | 73 | 82 | const A* __restrict a_pos = a.data(); | 74 | 82 | const B* __restrict b_pos = b.data(); | 75 | 82 | UInt8* __restrict c_pos = c.data(); | 76 | 82 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 183 | while (a_pos < a_end) { | 79 | 101 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 101 | ++a_pos; | 81 | 101 | ++b_pos; | 82 | 101 | ++c_pos; | 83 | 101 | } | 84 | 82 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 83 | PaddedPODArray<UInt8>& c) { | 72 | 83 | size_t size = a.size(); | 73 | 83 | const A* __restrict a_pos = a.data(); | 74 | 83 | const B* __restrict b_pos = b.data(); | 75 | 83 | UInt8* __restrict c_pos = c.data(); | 76 | 83 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 187 | while (a_pos < a_end) { | 79 | 104 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 104 | ++a_pos; | 81 | 104 | ++b_pos; | 82 | 104 | ++c_pos; | 83 | 104 | } | 84 | 83 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 43 | PaddedPODArray<UInt8>& c) { | 72 | 43 | size_t size = a.size(); | 73 | 43 | const A* __restrict a_pos = a.data(); | 74 | 43 | const B* __restrict b_pos = b.data(); | 75 | 43 | UInt8* __restrict c_pos = c.data(); | 76 | 43 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 116 | while (a_pos < a_end) { | 79 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 73 | ++a_pos; | 81 | 73 | ++b_pos; | 82 | 73 | ++c_pos; | 83 | 73 | } | 84 | 43 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.13k | PaddedPODArray<UInt8>& c) { | 72 | 1.13k | size_t size = a.size(); | 73 | 1.13k | const A* __restrict a_pos = a.data(); | 74 | 1.13k | const B* __restrict b_pos = b.data(); | 75 | 1.13k | UInt8* __restrict c_pos = c.data(); | 76 | 1.13k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 295k | while (a_pos < a_end) { | 79 | 294k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 294k | ++a_pos; | 81 | 294k | ++b_pos; | 82 | 294k | ++c_pos; | 83 | 294k | } | 84 | 1.13k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 344 | PaddedPODArray<UInt8>& c) { | 72 | 344 | size_t size = a.size(); | 73 | 344 | const A* __restrict a_pos = a.data(); | 74 | 344 | const B* __restrict b_pos = b.data(); | 75 | 344 | UInt8* __restrict c_pos = c.data(); | 76 | 344 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.26k | while (a_pos < a_end) { | 79 | 5.91k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.91k | ++a_pos; | 81 | 5.91k | ++b_pos; | 82 | 5.91k | ++c_pos; | 83 | 5.91k | } | 84 | 344 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 969 | PaddedPODArray<UInt8>& c) { | 72 | 969 | size_t size = a.size(); | 73 | 969 | const A* __restrict a_pos = a.data(); | 74 | 969 | const B* __restrict b_pos = b.data(); | 75 | 969 | UInt8* __restrict c_pos = c.data(); | 76 | 969 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.74M | while (a_pos < a_end) { | 79 | 3.74M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 3.74M | ++a_pos; | 81 | 3.74M | ++b_pos; | 82 | 3.74M | ++c_pos; | 83 | 3.74M | } | 84 | 969 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 324 | while (a_pos < a_end) { | 79 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 284 | ++a_pos; | 81 | 284 | ++b_pos; | 82 | 284 | ++c_pos; | 83 | 284 | } | 84 | 40 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 112 | PaddedPODArray<UInt8>& c) { | 72 | 112 | size_t size = a.size(); | 73 | 112 | const A* __restrict a_pos = a.data(); | 74 | 112 | const B* __restrict b_pos = b.data(); | 75 | 112 | UInt8* __restrict c_pos = c.data(); | 76 | 112 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 264 | ++a_pos; | 81 | 264 | ++b_pos; | 82 | 264 | ++c_pos; | 83 | 264 | } | 84 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 63 | PaddedPODArray<UInt8>& c) { | 72 | 63 | size_t size = a.size(); | 73 | 63 | const A* __restrict a_pos = a.data(); | 74 | 63 | const B* __restrict b_pos = b.data(); | 75 | 63 | UInt8* __restrict c_pos = c.data(); | 76 | 63 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 299 | while (a_pos < a_end) { | 79 | 236 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 236 | ++a_pos; | 81 | 236 | ++b_pos; | 82 | 236 | ++c_pos; | 83 | 236 | } | 84 | 63 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 64 | PaddedPODArray<UInt8>& c) { | 72 | 64 | size_t size = a.size(); | 73 | 64 | const A* __restrict a_pos = a.data(); | 74 | 64 | const B* __restrict b_pos = b.data(); | 75 | 64 | UInt8* __restrict c_pos = c.data(); | 76 | 64 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 577 | while (a_pos < a_end) { | 79 | 513 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 513 | ++a_pos; | 81 | 513 | ++b_pos; | 82 | 513 | ++c_pos; | 83 | 513 | } | 84 | 64 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 26 | PaddedPODArray<UInt8>& c) { | 72 | 26 | size_t size = a.size(); | 73 | 26 | const A* __restrict a_pos = a.data(); | 74 | 26 | const B* __restrict b_pos = b.data(); | 75 | 26 | UInt8* __restrict c_pos = c.data(); | 76 | 26 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 96 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 26 | } |
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 | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 6 | PaddedPODArray<UInt8>& c) { | 72 | 6 | size_t size = a.size(); | 73 | 6 | const A* __restrict a_pos = a.data(); | 74 | 6 | const B* __restrict b_pos = b.data(); | 75 | 6 | UInt8* __restrict c_pos = c.data(); | 76 | 6 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 70 | while (a_pos < a_end) { | 79 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 64 | ++a_pos; | 81 | 64 | ++b_pos; | 82 | 64 | ++c_pos; | 83 | 64 | } | 84 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 11 | PaddedPODArray<UInt8>& c) { | 72 | 11 | size_t size = a.size(); | 73 | 11 | const A* __restrict a_pos = a.data(); | 74 | 11 | const B* __restrict b_pos = b.data(); | 75 | 11 | UInt8* __restrict c_pos = c.data(); | 76 | 11 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 23 | while (a_pos < a_end) { | 79 | 12 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 12 | ++a_pos; | 81 | 12 | ++b_pos; | 82 | 12 | ++c_pos; | 83 | 12 | } | 84 | 11 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 8 | PaddedPODArray<UInt8>& c) { | 72 | 8 | size_t size = a.size(); | 73 | 8 | const A* __restrict a_pos = a.data(); | 74 | 8 | const B* __restrict b_pos = b.data(); | 75 | 8 | UInt8* __restrict c_pos = c.data(); | 76 | 8 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 62 | while (a_pos < a_end) { | 79 | 54 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 54 | ++a_pos; | 81 | 54 | ++b_pos; | 82 | 54 | ++c_pos; | 83 | 54 | } | 84 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 21 | PaddedPODArray<UInt8>& c) { | 72 | 21 | size_t size = a.size(); | 73 | 21 | const A* __restrict a_pos = a.data(); | 74 | 21 | const B* __restrict b_pos = b.data(); | 75 | 21 | UInt8* __restrict c_pos = c.data(); | 76 | 21 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 64 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 21 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 101 | PaddedPODArray<UInt8>& c) { | 72 | 101 | size_t size = a.size(); | 73 | 101 | const A* __restrict a_pos = a.data(); | 74 | 101 | const B* __restrict b_pos = b.data(); | 75 | 101 | UInt8* __restrict c_pos = c.data(); | 76 | 101 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 101 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.66k | PaddedPODArray<UInt8>& c) { | 72 | 1.66k | size_t size = a.size(); | 73 | 1.66k | const A* __restrict a_pos = a.data(); | 74 | 1.66k | const B* __restrict b_pos = b.data(); | 75 | 1.66k | UInt8* __restrict c_pos = c.data(); | 76 | 1.66k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.95M | while (a_pos < a_end) { | 79 | 2.95M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.95M | ++a_pos; | 81 | 2.95M | ++b_pos; | 82 | 2.95M | ++c_pos; | 83 | 2.95M | } | 84 | 1.66k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 254 | PaddedPODArray<UInt8>& c) { | 72 | 254 | size_t size = a.size(); | 73 | 254 | const A* __restrict a_pos = a.data(); | 74 | 254 | const B* __restrict b_pos = b.data(); | 75 | 254 | UInt8* __restrict c_pos = c.data(); | 76 | 254 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 856 | while (a_pos < a_end) { | 79 | 602 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 602 | ++a_pos; | 81 | 602 | ++b_pos; | 82 | 602 | ++c_pos; | 83 | 602 | } | 84 | 254 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 458 | while (a_pos < a_end) { | 79 | 316 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 316 | ++a_pos; | 81 | 316 | ++b_pos; | 82 | 316 | ++c_pos; | 83 | 316 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 122 | PaddedPODArray<UInt8>& c) { | 72 | 122 | size_t size = a.size(); | 73 | 122 | const A* __restrict a_pos = a.data(); | 74 | 122 | const B* __restrict b_pos = b.data(); | 75 | 122 | UInt8* __restrict c_pos = c.data(); | 76 | 122 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 420 | while (a_pos < a_end) { | 79 | 298 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 298 | ++a_pos; | 81 | 298 | ++b_pos; | 82 | 298 | ++c_pos; | 83 | 298 | } | 84 | 122 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 160 | PaddedPODArray<UInt8>& c) { | 72 | 160 | size_t size = a.size(); | 73 | 160 | const A* __restrict a_pos = a.data(); | 74 | 160 | const B* __restrict b_pos = b.data(); | 75 | 160 | UInt8* __restrict c_pos = c.data(); | 76 | 160 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 995 | while (a_pos < a_end) { | 79 | 835 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 835 | ++a_pos; | 81 | 835 | ++b_pos; | 82 | 835 | ++c_pos; | 83 | 835 | } | 84 | 160 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 208 | PaddedPODArray<UInt8>& c) { | 72 | 208 | size_t size = a.size(); | 73 | 208 | const A* __restrict a_pos = a.data(); | 74 | 208 | const B* __restrict b_pos = b.data(); | 75 | 208 | UInt8* __restrict c_pos = c.data(); | 76 | 208 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.40k | while (a_pos < a_end) { | 79 | 5.19k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.19k | ++a_pos; | 81 | 5.19k | ++b_pos; | 82 | 5.19k | ++c_pos; | 83 | 5.19k | } | 84 | 208 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 458 | while (a_pos < a_end) { | 79 | 316 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 316 | ++a_pos; | 81 | 316 | ++b_pos; | 82 | 316 | ++c_pos; | 83 | 316 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 138 | PaddedPODArray<UInt8>& c) { | 72 | 138 | size_t size = a.size(); | 73 | 138 | const A* __restrict a_pos = a.data(); | 74 | 138 | const B* __restrict b_pos = b.data(); | 75 | 138 | UInt8* __restrict c_pos = c.data(); | 76 | 138 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 469 | while (a_pos < a_end) { | 79 | 331 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 331 | ++a_pos; | 81 | 331 | ++b_pos; | 82 | 331 | ++c_pos; | 83 | 331 | } | 84 | 138 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 144 | PaddedPODArray<UInt8>& c) { | 72 | 144 | size_t size = a.size(); | 73 | 144 | const A* __restrict a_pos = a.data(); | 74 | 144 | const B* __restrict b_pos = b.data(); | 75 | 144 | UInt8* __restrict c_pos = c.data(); | 76 | 144 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 490 | while (a_pos < a_end) { | 79 | 346 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 346 | ++a_pos; | 81 | 346 | ++b_pos; | 82 | 346 | ++c_pos; | 83 | 346 | } | 84 | 144 | } |
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 | 71 | 409 | PaddedPODArray<UInt8>& c) { | 72 | 409 | size_t size = a.size(); | 73 | 409 | const A* __restrict a_pos = a.data(); | 74 | 409 | const B* __restrict b_pos = b.data(); | 75 | 409 | UInt8* __restrict c_pos = c.data(); | 76 | 409 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.49k | while (a_pos < a_end) { | 79 | 6.09k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.09k | ++a_pos; | 81 | 6.09k | ++b_pos; | 82 | 6.09k | ++c_pos; | 83 | 6.09k | } | 84 | 409 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 23 | PaddedPODArray<UInt8>& c) { | 72 | 23 | size_t size = a.size(); | 73 | 23 | const A* __restrict a_pos = a.data(); | 74 | 23 | const B* __restrict b_pos = b.data(); | 75 | 23 | UInt8* __restrict c_pos = c.data(); | 76 | 23 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 105 | while (a_pos < a_end) { | 79 | 82 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 82 | ++a_pos; | 81 | 82 | ++b_pos; | 82 | 82 | ++c_pos; | 83 | 82 | } | 84 | 23 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 31 | PaddedPODArray<UInt8>& c) { | 72 | 31 | size_t size = a.size(); | 73 | 31 | const A* __restrict a_pos = a.data(); | 74 | 31 | const B* __restrict b_pos = b.data(); | 75 | 31 | UInt8* __restrict c_pos = c.data(); | 76 | 31 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 69 | while (a_pos < a_end) { | 79 | 38 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 38 | ++a_pos; | 81 | 38 | ++b_pos; | 82 | 38 | ++c_pos; | 83 | 38 | } | 84 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
85 | | |
86 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
87 | 185k | PaddedPODArray<UInt8>& c) { |
88 | 185k | size_t size = a.size(); |
89 | 185k | const A* __restrict a_pos = a.data(); |
90 | 185k | UInt8* __restrict c_pos = c.data(); |
91 | 185k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 160M | while (a_pos < a_end) { |
94 | 160M | *c_pos = Op::apply(*a_pos, b); |
95 | 160M | ++a_pos; |
96 | 160M | ++c_pos; |
97 | 160M | } |
98 | 185k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 1.57k | PaddedPODArray<UInt8>& c) { | 88 | 1.57k | size_t size = a.size(); | 89 | 1.57k | const A* __restrict a_pos = a.data(); | 90 | 1.57k | UInt8* __restrict c_pos = c.data(); | 91 | 1.57k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.10k | while (a_pos < a_end) { | 94 | 3.53k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.53k | ++a_pos; | 96 | 3.53k | ++c_pos; | 97 | 3.53k | } | 98 | 1.57k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 1.00k | PaddedPODArray<UInt8>& c) { | 88 | 1.00k | size_t size = a.size(); | 89 | 1.00k | const A* __restrict a_pos = a.data(); | 90 | 1.00k | UInt8* __restrict c_pos = c.data(); | 91 | 1.00k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 206k | while (a_pos < a_end) { | 94 | 205k | *c_pos = Op::apply(*a_pos, b); | 95 | 205k | ++a_pos; | 96 | 205k | ++c_pos; | 97 | 205k | } | 98 | 1.00k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 330 | PaddedPODArray<UInt8>& c) { | 88 | 330 | size_t size = a.size(); | 89 | 330 | const A* __restrict a_pos = a.data(); | 90 | 330 | UInt8* __restrict c_pos = c.data(); | 91 | 330 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 330 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.82k | PaddedPODArray<UInt8>& c) { | 88 | 6.82k | size_t size = a.size(); | 89 | 6.82k | const A* __restrict a_pos = a.data(); | 90 | 6.82k | UInt8* __restrict c_pos = c.data(); | 91 | 6.82k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.17M | while (a_pos < a_end) { | 94 | 9.16M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.16M | ++a_pos; | 96 | 9.16M | ++c_pos; | 97 | 9.16M | } | 98 | 6.82k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.52k | PaddedPODArray<UInt8>& c) { | 88 | 1.52k | size_t size = a.size(); | 89 | 1.52k | const A* __restrict a_pos = a.data(); | 90 | 1.52k | UInt8* __restrict c_pos = c.data(); | 91 | 1.52k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 161k | while (a_pos < a_end) { | 94 | 159k | *c_pos = Op::apply(*a_pos, b); | 95 | 159k | ++a_pos; | 96 | 159k | ++c_pos; | 97 | 159k | } | 98 | 1.52k | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 11.7k | PaddedPODArray<UInt8>& c) { | 88 | 11.7k | size_t size = a.size(); | 89 | 11.7k | const A* __restrict a_pos = a.data(); | 90 | 11.7k | UInt8* __restrict c_pos = c.data(); | 91 | 11.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.68M | while (a_pos < a_end) { | 94 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.67M | ++a_pos; | 96 | 1.67M | ++c_pos; | 97 | 1.67M | } | 98 | 11.7k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28.9k | PaddedPODArray<UInt8>& c) { | 88 | 28.9k | size_t size = a.size(); | 89 | 28.9k | const A* __restrict a_pos = a.data(); | 90 | 28.9k | UInt8* __restrict c_pos = c.data(); | 91 | 28.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.73M | while (a_pos < a_end) { | 94 | 3.70M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.70M | ++a_pos; | 96 | 3.70M | ++c_pos; | 97 | 3.70M | } | 98 | 28.9k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 79 | PaddedPODArray<UInt8>& c) { | 88 | 79 | size_t size = a.size(); | 89 | 79 | const A* __restrict a_pos = a.data(); | 90 | 79 | UInt8* __restrict c_pos = c.data(); | 91 | 79 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 101k | *c_pos = Op::apply(*a_pos, b); | 95 | 101k | ++a_pos; | 96 | 101k | ++c_pos; | 97 | 101k | } | 98 | 79 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 15 | PaddedPODArray<UInt8>& c) { | 88 | 15 | size_t size = a.size(); | 89 | 15 | const A* __restrict a_pos = a.data(); | 90 | 15 | UInt8* __restrict c_pos = c.data(); | 91 | 15 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 129 | while (a_pos < a_end) { | 94 | 114 | *c_pos = Op::apply(*a_pos, b); | 95 | 114 | ++a_pos; | 96 | 114 | ++c_pos; | 97 | 114 | } | 98 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 26 | while (a_pos < a_end) { | 94 | 22 | *c_pos = Op::apply(*a_pos, b); | 95 | 22 | ++a_pos; | 96 | 22 | ++c_pos; | 97 | 22 | } | 98 | 4 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 873 | PaddedPODArray<UInt8>& c) { | 88 | 873 | size_t size = a.size(); | 89 | 873 | const A* __restrict a_pos = a.data(); | 90 | 873 | UInt8* __restrict c_pos = c.data(); | 91 | 873 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 720k | while (a_pos < a_end) { | 94 | 719k | *c_pos = Op::apply(*a_pos, b); | 95 | 719k | ++a_pos; | 96 | 719k | ++c_pos; | 97 | 719k | } | 98 | 873 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 35 | PaddedPODArray<UInt8>& c) { | 88 | 35 | size_t size = a.size(); | 89 | 35 | const A* __restrict a_pos = a.data(); | 90 | 35 | UInt8* __restrict c_pos = c.data(); | 91 | 35 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90 | while (a_pos < a_end) { | 94 | 55 | *c_pos = Op::apply(*a_pos, b); | 95 | 55 | ++a_pos; | 96 | 55 | ++c_pos; | 97 | 55 | } | 98 | 35 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 4 | *c_pos = Op::apply(*a_pos, b); | 95 | 4 | ++a_pos; | 96 | 4 | ++c_pos; | 97 | 4 | } | 98 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 44 | PaddedPODArray<UInt8>& c) { | 88 | 44 | size_t size = a.size(); | 89 | 44 | const A* __restrict a_pos = a.data(); | 90 | 44 | UInt8* __restrict c_pos = c.data(); | 91 | 44 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.24k | while (a_pos < a_end) { | 94 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.19k | ++a_pos; | 96 | 1.19k | ++c_pos; | 97 | 1.19k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 802 | while (a_pos < a_end) { | 94 | 776 | *c_pos = Op::apply(*a_pos, b); | 95 | 776 | ++a_pos; | 96 | 776 | ++c_pos; | 97 | 776 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.66k | PaddedPODArray<UInt8>& c) { | 88 | 1.66k | size_t size = a.size(); | 89 | 1.66k | const A* __restrict a_pos = a.data(); | 90 | 1.66k | UInt8* __restrict c_pos = c.data(); | 91 | 1.66k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 660k | while (a_pos < a_end) { | 94 | 658k | *c_pos = Op::apply(*a_pos, b); | 95 | 658k | ++a_pos; | 96 | 658k | ++c_pos; | 97 | 658k | } | 98 | 1.66k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.36k | PaddedPODArray<UInt8>& c) { | 88 | 2.36k | size_t size = a.size(); | 89 | 2.36k | const A* __restrict a_pos = a.data(); | 90 | 2.36k | UInt8* __restrict c_pos = c.data(); | 91 | 2.36k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 272k | while (a_pos < a_end) { | 94 | 270k | *c_pos = Op::apply(*a_pos, b); | 95 | 270k | ++a_pos; | 96 | 270k | ++c_pos; | 97 | 270k | } | 98 | 2.36k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28 | PaddedPODArray<UInt8>& c) { | 88 | 28 | size_t size = a.size(); | 89 | 28 | const A* __restrict a_pos = a.data(); | 90 | 28 | UInt8* __restrict c_pos = c.data(); | 91 | 28 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 70 | while (a_pos < a_end) { | 94 | 42 | *c_pos = Op::apply(*a_pos, b); | 95 | 42 | ++a_pos; | 96 | 42 | ++c_pos; | 97 | 42 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 40 | PaddedPODArray<UInt8>& c) { | 88 | 40 | size_t size = a.size(); | 89 | 40 | const A* __restrict a_pos = a.data(); | 90 | 40 | UInt8* __restrict c_pos = c.data(); | 91 | 40 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 282 | while (a_pos < a_end) { | 94 | 242 | *c_pos = Op::apply(*a_pos, b); | 95 | 242 | ++a_pos; | 96 | 242 | ++c_pos; | 97 | 242 | } | 98 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 163 | PaddedPODArray<UInt8>& c) { | 88 | 163 | size_t size = a.size(); | 89 | 163 | const A* __restrict a_pos = a.data(); | 90 | 163 | UInt8* __restrict c_pos = c.data(); | 91 | 163 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.81k | while (a_pos < a_end) { | 94 | 4.65k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.65k | ++a_pos; | 96 | 4.65k | ++c_pos; | 97 | 4.65k | } | 98 | 163 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 488 | PaddedPODArray<UInt8>& c) { | 88 | 488 | size_t size = a.size(); | 89 | 488 | const A* __restrict a_pos = a.data(); | 90 | 488 | UInt8* __restrict c_pos = c.data(); | 91 | 488 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.67M | while (a_pos < a_end) { | 94 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.67M | ++a_pos; | 96 | 1.67M | ++c_pos; | 97 | 1.67M | } | 98 | 488 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 122 | PaddedPODArray<UInt8>& c) { | 88 | 122 | size_t size = a.size(); | 89 | 122 | const A* __restrict a_pos = a.data(); | 90 | 122 | UInt8* __restrict c_pos = c.data(); | 91 | 122 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 286 | while (a_pos < a_end) { | 94 | 164 | *c_pos = Op::apply(*a_pos, b); | 95 | 164 | ++a_pos; | 96 | 164 | ++c_pos; | 97 | 164 | } | 98 | 122 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 399 | PaddedPODArray<UInt8>& c) { | 88 | 399 | size_t size = a.size(); | 89 | 399 | const A* __restrict a_pos = a.data(); | 90 | 399 | UInt8* __restrict c_pos = c.data(); | 91 | 399 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 45.5k | while (a_pos < a_end) { | 94 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 45.1k | ++a_pos; | 96 | 45.1k | ++c_pos; | 97 | 45.1k | } | 98 | 399 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 87 | 1 | PaddedPODArray<UInt8>& c) { | 88 | 1 | size_t size = a.size(); | 89 | 1 | const A* __restrict a_pos = a.data(); | 90 | 1 | UInt8* __restrict c_pos = c.data(); | 91 | 1 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 7 | *c_pos = Op::apply(*a_pos, b); | 95 | 7 | ++a_pos; | 96 | 7 | ++c_pos; | 97 | 7 | } | 98 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.34k | PaddedPODArray<UInt8>& c) { | 88 | 1.34k | size_t size = a.size(); | 89 | 1.34k | const A* __restrict a_pos = a.data(); | 90 | 1.34k | UInt8* __restrict c_pos = c.data(); | 91 | 1.34k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.21k | while (a_pos < a_end) { | 94 | 5.86k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.86k | ++a_pos; | 96 | 5.86k | ++c_pos; | 97 | 5.86k | } | 98 | 1.34k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.00k | PaddedPODArray<UInt8>& c) { | 88 | 2.00k | size_t size = a.size(); | 89 | 2.00k | const A* __restrict a_pos = a.data(); | 90 | 2.00k | UInt8* __restrict c_pos = c.data(); | 91 | 2.00k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.74k | while (a_pos < a_end) { | 94 | 5.73k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.73k | ++a_pos; | 96 | 5.73k | ++c_pos; | 97 | 5.73k | } | 98 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.46k | PaddedPODArray<UInt8>& c) { | 88 | 1.46k | size_t size = a.size(); | 89 | 1.46k | const A* __restrict a_pos = a.data(); | 90 | 1.46k | UInt8* __restrict c_pos = c.data(); | 91 | 1.46k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.47k | while (a_pos < a_end) { | 94 | 5.01k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.01k | ++a_pos; | 96 | 5.01k | ++c_pos; | 97 | 5.01k | } | 98 | 1.46k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 484 | PaddedPODArray<UInt8>& c) { | 88 | 484 | size_t size = a.size(); | 89 | 484 | const A* __restrict a_pos = a.data(); | 90 | 484 | UInt8* __restrict c_pos = c.data(); | 91 | 484 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.8k | while (a_pos < a_end) { | 94 | 13.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 13.3k | ++a_pos; | 96 | 13.3k | ++c_pos; | 97 | 13.3k | } | 98 | 484 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 19.9k | PaddedPODArray<UInt8>& c) { | 88 | 19.9k | size_t size = a.size(); | 89 | 19.9k | const A* __restrict a_pos = a.data(); | 90 | 19.9k | UInt8* __restrict c_pos = c.data(); | 91 | 19.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.67M | while (a_pos < a_end) { | 94 | 6.65M | *c_pos = Op::apply(*a_pos, b); | 95 | 6.65M | ++a_pos; | 96 | 6.65M | ++c_pos; | 97 | 6.65M | } | 98 | 19.9k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.36k | PaddedPODArray<UInt8>& c) { | 88 | 6.36k | size_t size = a.size(); | 89 | 6.36k | const A* __restrict a_pos = a.data(); | 90 | 6.36k | UInt8* __restrict c_pos = c.data(); | 91 | 6.36k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.37M | while (a_pos < a_end) { | 94 | 5.36M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.36M | ++a_pos; | 96 | 5.36M | ++c_pos; | 97 | 5.36M | } | 98 | 6.36k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.4k | PaddedPODArray<UInt8>& c) { | 88 | 13.4k | size_t size = a.size(); | 89 | 13.4k | const A* __restrict a_pos = a.data(); | 90 | 13.4k | UInt8* __restrict c_pos = c.data(); | 91 | 13.4k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 173k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 13.4k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.92k | PaddedPODArray<UInt8>& c) { | 88 | 1.92k | size_t size = a.size(); | 89 | 1.92k | const A* __restrict a_pos = a.data(); | 90 | 1.92k | UInt8* __restrict c_pos = c.data(); | 91 | 1.92k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 14.1k | while (a_pos < a_end) { | 94 | 12.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 12.2k | ++a_pos; | 96 | 12.2k | ++c_pos; | 97 | 12.2k | } | 98 | 1.92k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 289 | PaddedPODArray<UInt8>& c) { | 88 | 289 | size_t size = a.size(); | 89 | 289 | const A* __restrict a_pos = a.data(); | 90 | 289 | UInt8* __restrict c_pos = c.data(); | 91 | 289 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.92k | while (a_pos < a_end) { | 94 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.63k | ++a_pos; | 96 | 1.63k | ++c_pos; | 97 | 1.63k | } | 98 | 289 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 92 | PaddedPODArray<UInt8>& c) { | 88 | 92 | size_t size = a.size(); | 89 | 92 | const A* __restrict a_pos = a.data(); | 90 | 92 | UInt8* __restrict c_pos = c.data(); | 91 | 92 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 86.2k | while (a_pos < a_end) { | 94 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 86.1k | ++a_pos; | 96 | 86.1k | ++c_pos; | 97 | 86.1k | } | 98 | 92 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 216 | PaddedPODArray<UInt8>& c) { | 88 | 216 | size_t size = a.size(); | 89 | 216 | const A* __restrict a_pos = a.data(); | 90 | 216 | UInt8* __restrict c_pos = c.data(); | 91 | 216 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.77k | while (a_pos < a_end) { | 94 | 3.55k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.55k | ++a_pos; | 96 | 3.55k | ++c_pos; | 97 | 3.55k | } | 98 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 32 | PaddedPODArray<UInt8>& c) { | 88 | 32 | size_t size = a.size(); | 89 | 32 | const A* __restrict a_pos = a.data(); | 90 | 32 | UInt8* __restrict c_pos = c.data(); | 91 | 32 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 76 | while (a_pos < a_end) { | 94 | 44 | *c_pos = Op::apply(*a_pos, b); | 95 | 44 | ++a_pos; | 96 | 44 | ++c_pos; | 97 | 44 | } | 98 | 32 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.36k | PaddedPODArray<UInt8>& c) { | 88 | 2.36k | size_t size = a.size(); | 89 | 2.36k | const A* __restrict a_pos = a.data(); | 90 | 2.36k | UInt8* __restrict c_pos = c.data(); | 91 | 2.36k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 346k | while (a_pos < a_end) { | 94 | 344k | *c_pos = Op::apply(*a_pos, b); | 95 | 344k | ++a_pos; | 96 | 344k | ++c_pos; | 97 | 344k | } | 98 | 2.36k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 221 | PaddedPODArray<UInt8>& c) { | 88 | 221 | size_t size = a.size(); | 89 | 221 | const A* __restrict a_pos = a.data(); | 90 | 221 | UInt8* __restrict c_pos = c.data(); | 91 | 221 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 641k | while (a_pos < a_end) { | 94 | 641k | *c_pos = Op::apply(*a_pos, b); | 95 | 641k | ++a_pos; | 96 | 641k | ++c_pos; | 97 | 641k | } | 98 | 221 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 111 | PaddedPODArray<UInt8>& c) { | 88 | 111 | size_t size = a.size(); | 89 | 111 | const A* __restrict a_pos = a.data(); | 90 | 111 | UInt8* __restrict c_pos = c.data(); | 91 | 111 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 117k | while (a_pos < a_end) { | 94 | 117k | *c_pos = Op::apply(*a_pos, b); | 95 | 117k | ++a_pos; | 96 | 117k | ++c_pos; | 97 | 117k | } | 98 | 111 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 119 | PaddedPODArray<UInt8>& c) { | 88 | 119 | size_t size = a.size(); | 89 | 119 | const A* __restrict a_pos = a.data(); | 90 | 119 | UInt8* __restrict c_pos = c.data(); | 91 | 119 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 105k | while (a_pos < a_end) { | 94 | 105k | *c_pos = Op::apply(*a_pos, b); | 95 | 105k | ++a_pos; | 96 | 105k | ++c_pos; | 97 | 105k | } | 98 | 119 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2.36k | PaddedPODArray<UInt8>& c) { | 88 | 2.36k | size_t size = a.size(); | 89 | 2.36k | const A* __restrict a_pos = a.data(); | 90 | 2.36k | UInt8* __restrict c_pos = c.data(); | 91 | 2.36k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.98M | while (a_pos < a_end) { | 94 | 4.98M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.98M | ++a_pos; | 96 | 4.98M | ++c_pos; | 97 | 4.98M | } | 98 | 2.36k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 28.5k | PaddedPODArray<UInt8>& c) { | 88 | 28.5k | size_t size = a.size(); | 89 | 28.5k | const A* __restrict a_pos = a.data(); | 90 | 28.5k | UInt8* __restrict c_pos = c.data(); | 91 | 28.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 75.4M | while (a_pos < a_end) { | 94 | 75.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 75.3M | ++a_pos; | 96 | 75.3M | ++c_pos; | 97 | 75.3M | } | 98 | 28.5k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 766 | PaddedPODArray<UInt8>& c) { | 88 | 766 | size_t size = a.size(); | 89 | 766 | const A* __restrict a_pos = a.data(); | 90 | 766 | UInt8* __restrict c_pos = c.data(); | 91 | 766 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.9k | while (a_pos < a_end) { | 94 | 30.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.2k | ++a_pos; | 96 | 30.2k | ++c_pos; | 97 | 30.2k | } | 98 | 766 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 419 | PaddedPODArray<UInt8>& c) { | 88 | 419 | size_t size = a.size(); | 89 | 419 | const A* __restrict a_pos = a.data(); | 90 | 419 | UInt8* __restrict c_pos = c.data(); | 91 | 419 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.9k | while (a_pos < a_end) { | 94 | 15.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.5k | ++a_pos; | 96 | 15.5k | ++c_pos; | 97 | 15.5k | } | 98 | 419 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 53 | PaddedPODArray<UInt8>& c) { | 88 | 53 | size_t size = a.size(); | 89 | 53 | const A* __restrict a_pos = a.data(); | 90 | 53 | UInt8* __restrict c_pos = c.data(); | 91 | 53 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 53 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 66 | PaddedPODArray<UInt8>& c) { | 88 | 66 | size_t size = a.size(); | 89 | 66 | const A* __restrict a_pos = a.data(); | 90 | 66 | UInt8* __restrict c_pos = c.data(); | 91 | 66 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110k | while (a_pos < a_end) { | 94 | 110k | *c_pos = Op::apply(*a_pos, b); | 95 | 110k | ++a_pos; | 96 | 110k | ++c_pos; | 97 | 110k | } | 98 | 66 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 54 | PaddedPODArray<UInt8>& c) { | 88 | 54 | size_t size = a.size(); | 89 | 54 | const A* __restrict a_pos = a.data(); | 90 | 54 | UInt8* __restrict c_pos = c.data(); | 91 | 54 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 63.3k | while (a_pos < a_end) { | 94 | 63.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 63.3k | ++a_pos; | 96 | 63.3k | ++c_pos; | 97 | 63.3k | } | 98 | 54 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 83 | PaddedPODArray<UInt8>& c) { | 88 | 83 | size_t size = a.size(); | 89 | 83 | const A* __restrict a_pos = a.data(); | 90 | 83 | UInt8* __restrict c_pos = c.data(); | 91 | 83 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 83 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17.2k | PaddedPODArray<UInt8>& c) { | 88 | 17.2k | size_t size = a.size(); | 89 | 17.2k | const A* __restrict a_pos = a.data(); | 90 | 17.2k | UInt8* __restrict c_pos = c.data(); | 91 | 17.2k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 20.6M | while (a_pos < a_end) { | 94 | 20.6M | *c_pos = Op::apply(*a_pos, b); | 95 | 20.6M | ++a_pos; | 96 | 20.6M | ++c_pos; | 97 | 20.6M | } | 98 | 17.2k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 25.0k | PaddedPODArray<UInt8>& c) { | 88 | 25.0k | size_t size = a.size(); | 89 | 25.0k | const A* __restrict a_pos = a.data(); | 90 | 25.0k | UInt8* __restrict c_pos = c.data(); | 91 | 25.0k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 24.9M | while (a_pos < a_end) { | 94 | 24.9M | *c_pos = Op::apply(*a_pos, b); | 95 | 24.9M | ++a_pos; | 96 | 24.9M | ++c_pos; | 97 | 24.9M | } | 98 | 25.0k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 520 | PaddedPODArray<UInt8>& c) { | 88 | 520 | size_t size = a.size(); | 89 | 520 | const A* __restrict a_pos = a.data(); | 90 | 520 | UInt8* __restrict c_pos = c.data(); | 91 | 520 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 36.4k | while (a_pos < a_end) { | 94 | 35.9k | *c_pos = Op::apply(*a_pos, b); | 95 | 35.9k | ++a_pos; | 96 | 35.9k | ++c_pos; | 97 | 35.9k | } | 98 | 520 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.14k | PaddedPODArray<UInt8>& c) { | 88 | 1.14k | size_t size = a.size(); | 89 | 1.14k | const A* __restrict a_pos = a.data(); | 90 | 1.14k | UInt8* __restrict c_pos = c.data(); | 91 | 1.14k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 41.3k | while (a_pos < a_end) { | 94 | 40.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 40.2k | ++a_pos; | 96 | 40.2k | ++c_pos; | 97 | 40.2k | } | 98 | 1.14k | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 53 | PaddedPODArray<UInt8>& c) { | 88 | 53 | size_t size = a.size(); | 89 | 53 | const A* __restrict a_pos = a.data(); | 90 | 53 | UInt8* __restrict c_pos = c.data(); | 91 | 53 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 150k | while (a_pos < a_end) { | 94 | 150k | *c_pos = Op::apply(*a_pos, b); | 95 | 150k | ++a_pos; | 96 | 150k | ++c_pos; | 97 | 150k | } | 98 | 53 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 69 | PaddedPODArray<UInt8>& c) { | 88 | 69 | size_t size = a.size(); | 89 | 69 | const A* __restrict a_pos = a.data(); | 90 | 69 | UInt8* __restrict c_pos = c.data(); | 91 | 69 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 69 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 164 | PaddedPODArray<UInt8>& c) { | 88 | 164 | size_t size = a.size(); | 89 | 164 | const A* __restrict a_pos = a.data(); | 90 | 164 | UInt8* __restrict c_pos = c.data(); | 91 | 164 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 330 | while (a_pos < a_end) { | 94 | 166 | *c_pos = Op::apply(*a_pos, b); | 95 | 166 | ++a_pos; | 96 | 166 | ++c_pos; | 97 | 166 | } | 98 | 164 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 160 | PaddedPODArray<UInt8>& c) { | 88 | 160 | size_t size = a.size(); | 89 | 160 | const A* __restrict a_pos = a.data(); | 90 | 160 | UInt8* __restrict c_pos = c.data(); | 91 | 160 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 320 | while (a_pos < a_end) { | 94 | 160 | *c_pos = Op::apply(*a_pos, b); | 95 | 160 | ++a_pos; | 96 | 160 | ++c_pos; | 97 | 160 | } | 98 | 160 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 120 | PaddedPODArray<UInt8>& c) { | 88 | 120 | size_t size = a.size(); | 89 | 120 | const A* __restrict a_pos = a.data(); | 90 | 120 | UInt8* __restrict c_pos = c.data(); | 91 | 120 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 681k | while (a_pos < a_end) { | 94 | 681k | *c_pos = Op::apply(*a_pos, b); | 95 | 681k | ++a_pos; | 96 | 681k | ++c_pos; | 97 | 681k | } | 98 | 120 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 123 | PaddedPODArray<UInt8>& c) { | 88 | 123 | size_t size = a.size(); | 89 | 123 | const A* __restrict a_pos = a.data(); | 90 | 123 | UInt8* __restrict c_pos = c.data(); | 91 | 123 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 601k | while (a_pos < a_end) { | 94 | 601k | *c_pos = Op::apply(*a_pos, b); | 95 | 601k | ++a_pos; | 96 | 601k | ++c_pos; | 97 | 601k | } | 98 | 123 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 7.31k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 7.31k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 7.31k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 258 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 258 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 258 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 30 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 30 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 30 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 142 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 142 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 142 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1.15k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1.15k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1.15k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 12 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 436 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 436 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 436 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 222 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 222 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 222 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 512 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 512 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 512 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 46 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 46 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 46 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 121 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 121 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 121 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 79 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 88 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 88 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 88 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 357 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 357 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 357 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
103 | | }; |
104 | | |
105 | | /// Generic version, implemented for columns of same type. |
106 | | template <typename Op> |
107 | | struct GenericComparisonImpl { |
108 | 9 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 20 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
110 | 11 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
111 | 11 | } |
112 | 9 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 10 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 6 | } | 112 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 3 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 6 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 3 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 3 | } | 112 | 3 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
113 | | |
114 | 151 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 151 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 473k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 473k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 473k | } |
119 | 151 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 13 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 13 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 31 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 18 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 18 | } | 119 | 13 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 49 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 49 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 222k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 222k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 222k | } | 119 | 49 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 65 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 65 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 250k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 250k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 250k | } | 119 | 65 | } |
|
120 | | |
121 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
122 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
123 | 0 | } Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
124 | | }; |
125 | | |
126 | | template <typename Op> |
127 | | struct StringComparisonImpl { |
128 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
129 | | const ColumnString::Offsets& a_offsets, |
130 | | const ColumnString::Chars& b_data, |
131 | | const ColumnString::Offsets& b_offsets, |
132 | 529 | PaddedPODArray<UInt8>& c) { |
133 | 529 | size_t size = a_offsets.size(); |
134 | 529 | ColumnString::Offset prev_a_offset = 0; |
135 | 529 | ColumnString::Offset prev_b_offset = 0; |
136 | 529 | const auto* a_pos = a_data.data(); |
137 | 529 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.78k | for (size_t i = 0; i < size; ++i) { |
140 | 1.25k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.25k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.25k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.25k | 0); |
144 | | |
145 | 1.25k | prev_a_offset = a_offsets[i]; |
146 | 1.25k | prev_b_offset = b_offsets[i]; |
147 | 1.25k | } |
148 | 529 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 52 | PaddedPODArray<UInt8>& c) { | 133 | 52 | size_t size = a_offsets.size(); | 134 | 52 | ColumnString::Offset prev_a_offset = 0; | 135 | 52 | ColumnString::Offset prev_b_offset = 0; | 136 | 52 | const auto* a_pos = a_data.data(); | 137 | 52 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 262 | for (size_t i = 0; i < size; ++i) { | 140 | 210 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 210 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 210 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 210 | 0); | 144 | | | 145 | 210 | prev_a_offset = a_offsets[i]; | 146 | 210 | prev_b_offset = b_offsets[i]; | 147 | 210 | } | 148 | 52 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 395 | PaddedPODArray<UInt8>& c) { | 133 | 395 | size_t size = a_offsets.size(); | 134 | 395 | ColumnString::Offset prev_a_offset = 0; | 135 | 395 | ColumnString::Offset prev_b_offset = 0; | 136 | 395 | const auto* a_pos = a_data.data(); | 137 | 395 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.31k | for (size_t i = 0; i < size; ++i) { | 140 | 917 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 917 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 917 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 917 | 0); | 144 | | | 145 | 917 | prev_a_offset = a_offsets[i]; | 146 | 917 | prev_b_offset = b_offsets[i]; | 147 | 917 | } | 148 | 395 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 80 | PaddedPODArray<UInt8>& c) { | 133 | 80 | size_t size = a_offsets.size(); | 134 | 80 | ColumnString::Offset prev_a_offset = 0; | 135 | 80 | ColumnString::Offset prev_b_offset = 0; | 136 | 80 | const auto* a_pos = a_data.data(); | 137 | 80 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 160 | for (size_t i = 0; i < size; ++i) { | 140 | 80 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 80 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 80 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 80 | 0); | 144 | | | 145 | 80 | prev_a_offset = a_offsets[i]; | 146 | 80 | prev_b_offset = b_offsets[i]; | 147 | 80 | } | 148 | 80 | } |
|
149 | | |
150 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
151 | | const ColumnString::Offsets& a_offsets, |
152 | | const ColumnString::Chars& b_data, |
153 | | ColumnString::Offset b_size, |
154 | 1.73k | PaddedPODArray<UInt8>& c) { |
155 | 1.73k | size_t size = a_offsets.size(); |
156 | 1.73k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.73k | const auto* a_pos = a_data.data(); |
158 | 1.73k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.99M | for (size_t i = 0; i < size; ++i) { |
161 | 1.98M | c[i] = Op::apply( |
162 | 1.98M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.98M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.98M | 0); |
165 | | |
166 | 1.98M | prev_a_offset = a_offsets[i]; |
167 | 1.98M | } |
168 | 1.73k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 179 | PaddedPODArray<UInt8>& c) { | 155 | 179 | size_t size = a_offsets.size(); | 156 | 179 | ColumnString::Offset prev_a_offset = 0; | 157 | 179 | const auto* a_pos = a_data.data(); | 158 | 179 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 601k | for (size_t i = 0; i < size; ++i) { | 161 | 601k | c[i] = Op::apply( | 162 | 601k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 601k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 601k | 0); | 165 | | | 166 | 601k | prev_a_offset = a_offsets[i]; | 167 | 601k | } | 168 | 179 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 243 | PaddedPODArray<UInt8>& c) { | 155 | 243 | size_t size = a_offsets.size(); | 156 | 243 | ColumnString::Offset prev_a_offset = 0; | 157 | 243 | const auto* a_pos = a_data.data(); | 158 | 243 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 150k | for (size_t i = 0; i < size; ++i) { | 161 | 150k | c[i] = Op::apply( | 162 | 150k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 150k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 150k | 0); | 165 | | | 166 | 150k | prev_a_offset = a_offsets[i]; | 167 | 150k | } | 168 | 243 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 571 | PaddedPODArray<UInt8>& c) { | 155 | 571 | size_t size = a_offsets.size(); | 156 | 571 | ColumnString::Offset prev_a_offset = 0; | 157 | 571 | const auto* a_pos = a_data.data(); | 158 | 571 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 653k | for (size_t i = 0; i < size; ++i) { | 161 | 652k | c[i] = Op::apply( | 162 | 652k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 652k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 652k | 0); | 165 | | | 166 | 652k | prev_a_offset = a_offsets[i]; | 167 | 652k | } | 168 | 571 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 742 | PaddedPODArray<UInt8>& c) { | 155 | 742 | size_t size = a_offsets.size(); | 156 | 742 | ColumnString::Offset prev_a_offset = 0; | 157 | 742 | const auto* a_pos = a_data.data(); | 158 | 742 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 584k | for (size_t i = 0; i < size; ++i) { | 161 | 584k | c[i] = Op::apply( | 162 | 584k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 584k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 584k | 0); | 165 | | | 166 | 584k | prev_a_offset = a_offsets[i]; | 167 | 584k | } | 168 | 742 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 1.06k | PaddedPODArray<UInt8>& c) { |
187 | 1.06k | size_t size = a_offsets.size(); |
188 | 1.06k | ColumnString::Offset prev_a_offset = 0; |
189 | 1.06k | ColumnString::Offset prev_b_offset = 0; |
190 | 1.06k | const auto* a_pos = a_data.data(); |
191 | 1.06k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 2.57k | for (size_t i = 0; i < size; ++i) { |
194 | 1.51k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.51k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.51k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.51k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.51k | prev_a_offset = a_offsets[i]; |
201 | 1.51k | prev_b_offset = b_offsets[i]; |
202 | 1.51k | } |
203 | 1.06k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1.03k | PaddedPODArray<UInt8>& c) { | 187 | 1.03k | size_t size = a_offsets.size(); | 188 | 1.03k | ColumnString::Offset prev_a_offset = 0; | 189 | 1.03k | ColumnString::Offset prev_b_offset = 0; | 190 | 1.03k | const auto* a_pos = a_data.data(); | 191 | 1.03k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 2.51k | for (size_t i = 0; i < size; ++i) { | 194 | 1.48k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.48k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.48k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.48k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.48k | prev_a_offset = a_offsets[i]; | 201 | 1.48k | prev_b_offset = b_offsets[i]; | 202 | 1.48k | } | 203 | 1.03k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 27 | PaddedPODArray<UInt8>& c) { | 187 | 27 | size_t size = a_offsets.size(); | 188 | 27 | ColumnString::Offset prev_a_offset = 0; | 189 | 27 | ColumnString::Offset prev_b_offset = 0; | 190 | 27 | const auto* a_pos = a_data.data(); | 191 | 27 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 57 | for (size_t i = 0; i < size; ++i) { | 194 | 30 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 30 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 30 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 30 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 30 | prev_a_offset = a_offsets[i]; | 201 | 30 | prev_b_offset = b_offsets[i]; | 202 | 30 | } | 203 | 27 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 26.9k | PaddedPODArray<UInt8>& c) { |
210 | 26.9k | size_t size = a_offsets.size(); |
211 | 26.9k | if (b_size == 0) { |
212 | 1 | auto* __restrict data = c.data(); |
213 | 1 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 1 | ColumnString::Offset prev_a_offset = 0; |
216 | 4 | for (size_t i = 0; i < size; ++i) { |
217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 3 | prev_a_offset = offsets[i]; |
219 | 3 | } |
220 | 26.9k | } else { |
221 | 26.9k | ColumnString::Offset prev_a_offset = 0; |
222 | 26.9k | const auto* a_pos = a_data.data(); |
223 | 26.9k | const auto* b_pos = b_data.data(); |
224 | 12.6M | for (size_t i = 0; i < size; ++i) { |
225 | 12.6M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 12.6M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 12.6M | b_pos, b_size); |
228 | 12.6M | prev_a_offset = a_offsets[i]; |
229 | 12.6M | } |
230 | 26.9k | } |
231 | 26.9k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 24.5k | PaddedPODArray<UInt8>& c) { | 210 | 24.5k | size_t size = a_offsets.size(); | 211 | 24.5k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 24.5k | } else { | 221 | 24.5k | ColumnString::Offset prev_a_offset = 0; | 222 | 24.5k | const auto* a_pos = a_data.data(); | 223 | 24.5k | const auto* b_pos = b_data.data(); | 224 | 8.72M | for (size_t i = 0; i < size; ++i) { | 225 | 8.70M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.70M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.70M | b_pos, b_size); | 228 | 8.70M | prev_a_offset = a_offsets[i]; | 229 | 8.70M | } | 230 | 24.5k | } | 231 | 24.5k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 2.41k | PaddedPODArray<UInt8>& c) { | 210 | 2.41k | size_t size = a_offsets.size(); | 211 | 2.41k | if (b_size == 0) { | 212 | 1 | auto* __restrict data = c.data(); | 213 | 1 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 1 | ColumnString::Offset prev_a_offset = 0; | 216 | 4 | for (size_t i = 0; i < size; ++i) { | 217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 3 | prev_a_offset = offsets[i]; | 219 | 3 | } | 220 | 2.41k | } else { | 221 | 2.41k | ColumnString::Offset prev_a_offset = 0; | 222 | 2.41k | const auto* a_pos = a_data.data(); | 223 | 2.41k | const auto* b_pos = b_data.data(); | 224 | 3.90M | for (size_t i = 0; i < size; ++i) { | 225 | 3.90M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.90M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.90M | b_pos, b_size); | 228 | 3.90M | prev_a_offset = a_offsets[i]; | 229 | 3.90M | } | 230 | 2.41k | } | 231 | 2.41k | } |
|
232 | | |
233 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
234 | | ColumnString::Offset a_size, |
235 | | const ColumnString::Chars& b_data, |
236 | | const ColumnString::Offsets& b_offsets, |
237 | 0 | PaddedPODArray<UInt8>& c) { |
238 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
240 | | }; |
241 | | |
242 | | template <PrimitiveType PT> |
243 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
244 | | |
245 | | template <PrimitiveType PT> |
246 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
247 | | |
248 | | struct NameEquals { |
249 | | static constexpr auto name = "eq"; |
250 | | }; |
251 | | struct NameNotEquals { |
252 | | static constexpr auto name = "ne"; |
253 | | }; |
254 | | struct NameLess { |
255 | | static constexpr auto name = "lt"; |
256 | | }; |
257 | | struct NameGreater { |
258 | | static constexpr auto name = "gt"; |
259 | | }; |
260 | | struct NameLessOrEquals { |
261 | | static constexpr auto name = "le"; |
262 | | }; |
263 | | struct NameGreaterOrEquals { |
264 | | static constexpr auto name = "ge"; |
265 | | }; |
266 | | |
267 | | namespace comparison_zonemap_detail { |
268 | | enum class Op { |
269 | | EQ, |
270 | | NE, |
271 | | LT, |
272 | | LE, |
273 | | GT, |
274 | | GE, |
275 | | }; |
276 | | |
277 | 4 | inline Op symmetric_op(Op op) { |
278 | 4 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 2 | case Op::LT: |
283 | 2 | return Op::GT; |
284 | 0 | case Op::LE: |
285 | 0 | return Op::GE; |
286 | 0 | case Op::GT: |
287 | 0 | return Op::LT; |
288 | 2 | case Op::GE: |
289 | 2 | return Op::LE; |
290 | 4 | } |
291 | 0 | __builtin_unreachable(); |
292 | 4 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 33.5k | Op op) { |
296 | 33.5k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 33.5k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 33.5k | slot_literal->slot_type); |
300 | 33.5k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 33.5k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 33.5k | if (zone_map_ptr == nullptr) { |
305 | 58 | return unsupported_zonemap_filter(ctx); |
306 | 58 | } |
307 | 33.5k | const auto& zone_map = *zone_map_ptr; |
308 | 33.5k | if (!zone_map.has_not_null) { |
309 | 215 | return ZoneMapFilterResult::kNoMatch; |
310 | 215 | } |
311 | 33.3k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 98 | return unsupported_zonemap_filter(ctx); |
313 | 98 | } |
314 | | |
315 | 33.2k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 33.2k | const auto& literal = slot_literal->literal; |
317 | 33.2k | switch (effective_op) { |
318 | 9.21k | case Op::EQ: |
319 | 9.21k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 9.21k | ? ZoneMapFilterResult::kNoMatch |
321 | 9.21k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.12k | case Op::NE: |
323 | 1.12k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.12k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.12k | : ZoneMapFilterResult::kMayMatch; |
326 | 2.32k | case Op::LT: |
327 | 2.32k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 2.32k | : ZoneMapFilterResult::kMayMatch; |
329 | 9.44k | case Op::LE: |
330 | 9.44k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 9.44k | : ZoneMapFilterResult::kMayMatch; |
332 | 4.44k | case Op::GT: |
333 | 4.44k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 4.44k | : ZoneMapFilterResult::kMayMatch; |
335 | 6.67k | case Op::GE: |
336 | 6.67k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 6.67k | : ZoneMapFilterResult::kMayMatch; |
338 | 33.2k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 33.2k | } |
343 | | |
344 | 115k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 115k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 115k | if (!slot_literal.has_value()) { |
347 | 37.0k | return false; |
348 | 37.0k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 78.1k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 78.1k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 78.1k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 78.1k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 9 | return false; |
364 | 9 | } |
365 | | |
366 | 78.1k | return true; |
367 | 78.1k | } |
368 | | |
369 | 18.7k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 18.7k | return op == Op::EQ && can_evaluate(arguments); |
371 | 18.7k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 596 | const VExprSPtrs& arguments, Op op) { |
375 | 596 | DORIS_CHECK(op == Op::EQ); |
376 | 596 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 596 | DORIS_CHECK(slot_literal.has_value()); |
378 | 596 | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 596 | } |
380 | | |
381 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
382 | 14 | const VExprSPtrs& arguments, Op op) { |
383 | 14 | DORIS_CHECK(op == Op::EQ); |
384 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 14 | DORIS_CHECK(slot_literal.has_value()); |
386 | 14 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
387 | 14 | } |
388 | | |
389 | 156k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 156k | if (name == NameEquals::name) { |
391 | 62.1k | return Op::EQ; |
392 | 62.1k | } |
393 | 94.5k | if (name == NameNotEquals::name) { |
394 | 6.50k | return Op::NE; |
395 | 6.50k | } |
396 | 88.0k | if (name == NameLess::name) { |
397 | 11.4k | return Op::LT; |
398 | 11.4k | } |
399 | 76.5k | if (name == NameLessOrEquals::name) { |
400 | 30.1k | return Op::LE; |
401 | 30.1k | } |
402 | 46.4k | if (name == NameGreater::name) { |
403 | 22.5k | return Op::GT; |
404 | 22.5k | } |
405 | 23.8k | if (name == NameGreaterOrEquals::name) { |
406 | 23.8k | return Op::GE; |
407 | 23.8k | } |
408 | 18.4E | return std::nullopt; |
409 | 23.8k | } |
410 | | } // namespace comparison_zonemap_detail |
411 | | |
412 | | template <template <PrimitiveType> class Op, typename Name> |
413 | | class FunctionComparison : public IFunction { |
414 | | public: |
415 | | static constexpr auto name = Name::name; |
416 | 541k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 449k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 2.76k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 42.9k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 14.8k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 4.52k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 26.2k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 541k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 449k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 2.76k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 42.9k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 14.7k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 4.53k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 26.1k | FunctionComparison() = default; |
|
419 | | |
420 | 1.21M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 1.18M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 657 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 2.29k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 10.4k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 420 | 1.73k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 420 | 7.02k | double execute_cost() const override { return 0.5; } |
|
421 | | |
422 | | private: |
423 | | template <PrimitiveType PT> |
424 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
425 | 194k | const ColumnPtr& col_right_ptr) const { |
426 | 194k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 194k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 194k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 194k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 194k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 194k | if (!left_is_const && !right_is_const) { |
435 | 8.72k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 8.72k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 8.72k | vec_res.resize(col_left->get_data().size()); |
439 | 8.72k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 8.72k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 8.72k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 8.72k | vec_res); |
443 | | |
444 | 8.72k | block.replace_by_position(result, std::move(col_res)); |
445 | 185k | } else if (!left_is_const && right_is_const) { |
446 | 178k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 178k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 178k | vec_res.resize(col_left->size()); |
450 | 178k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 178k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 178k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 178k | col_right->get_element(0), vec_res); |
454 | | |
455 | 178k | block.replace_by_position(result, std::move(col_res)); |
456 | 178k | } else if (left_is_const && !right_is_const) { |
457 | 7.31k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 7.31k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 7.31k | vec_res.resize(col_right->size()); |
461 | 7.31k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 7.31k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 7.31k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 7.31k | col_right->get_data(), vec_res); |
465 | | |
466 | 7.31k | block.replace_by_position(result, std::move(col_res)); |
467 | 7.31k | } |
468 | 194k | return Status::OK(); |
469 | 194k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.64k | const ColumnPtr& col_right_ptr) const { | 426 | 1.64k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.64k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.64k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.64k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.64k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.64k | if (!left_is_const && !right_is_const) { | 435 | 73 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 73 | vec_res.resize(col_left->get_data().size()); | 439 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 73 | vec_res); | 443 | | | 444 | 73 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.57k | } else if (!left_is_const && right_is_const) { | 446 | 1.57k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.57k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.57k | vec_res.resize(col_left->size()); | 450 | 1.57k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.57k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.57k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.57k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.57k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.57k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.64k | return Status::OK(); | 469 | 1.64k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.48k | const ColumnPtr& col_right_ptr) const { | 426 | 1.48k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.48k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.48k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.48k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.48k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.48k | if (!left_is_const && !right_is_const) { | 435 | 487 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 487 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 487 | vec_res.resize(col_left->get_data().size()); | 439 | 487 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 487 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 487 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 487 | vec_res); | 443 | | | 444 | 487 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.00k | } else if (!left_is_const && right_is_const) { | 446 | 1.00k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.00k | vec_res.resize(col_left->size()); | 450 | 1.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.00k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.00k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.00k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.00k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.00k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.48k | return Status::OK(); | 469 | 1.48k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 609 | const ColumnPtr& col_right_ptr) const { | 426 | 609 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 609 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 609 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 609 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 609 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 609 | if (!left_is_const && !right_is_const) { | 435 | 279 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 279 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 279 | vec_res.resize(col_left->get_data().size()); | 439 | 279 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 279 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 279 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 279 | vec_res); | 443 | | | 444 | 279 | block.replace_by_position(result, std::move(col_res)); | 445 | 330 | } else if (!left_is_const && right_is_const) { | 446 | 330 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 330 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 330 | vec_res.resize(col_left->size()); | 450 | 330 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 330 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 330 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 330 | col_right->get_element(0), vec_res); | 454 | | | 455 | 330 | block.replace_by_position(result, std::move(col_res)); | 456 | 330 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 609 | return Status::OK(); | 469 | 609 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 6.95k | const ColumnPtr& col_right_ptr) const { | 426 | 6.95k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 6.95k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 6.95k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 6.95k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 6.95k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 6.95k | if (!left_is_const && !right_is_const) { | 435 | 133 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 133 | vec_res.resize(col_left->get_data().size()); | 439 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 133 | vec_res); | 443 | | | 444 | 133 | block.replace_by_position(result, std::move(col_res)); | 445 | 6.82k | } else if (!left_is_const && right_is_const) { | 446 | 6.56k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6.56k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6.56k | vec_res.resize(col_left->size()); | 450 | 6.56k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6.56k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6.56k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6.56k | col_right->get_element(0), vec_res); | 454 | | | 455 | 6.56k | block.replace_by_position(result, std::move(col_res)); | 456 | 6.56k | } else if (left_is_const && !right_is_const) { | 457 | 258 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 258 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 258 | vec_res.resize(col_right->size()); | 461 | 258 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 258 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 258 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 258 | col_right->get_data(), vec_res); | 465 | | | 466 | 258 | block.replace_by_position(result, std::move(col_res)); | 467 | 258 | } | 468 | 6.95k | return Status::OK(); | 469 | 6.95k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.59k | const ColumnPtr& col_right_ptr) const { | 426 | 1.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.59k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.59k | if (!left_is_const && !right_is_const) { | 435 | 62 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 62 | vec_res.resize(col_left->get_data().size()); | 439 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 62 | vec_res); | 443 | | | 444 | 62 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.52k | } else if (!left_is_const && right_is_const) { | 446 | 1.49k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.49k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.49k | vec_res.resize(col_left->size()); | 450 | 1.49k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.49k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.49k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.49k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.49k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.49k | } else if (left_is_const && !right_is_const) { | 457 | 30 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 30 | vec_res.resize(col_right->size()); | 461 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 30 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 30 | col_right->get_data(), vec_res); | 465 | | | 466 | 30 | block.replace_by_position(result, std::move(col_res)); | 467 | 30 | } | 468 | 1.59k | return Status::OK(); | 469 | 1.59k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 12.3k | const ColumnPtr& col_right_ptr) const { | 426 | 12.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 12.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 12.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 12.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 12.3k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 12.3k | if (!left_is_const && !right_is_const) { | 435 | 603 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 603 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 603 | vec_res.resize(col_left->get_data().size()); | 439 | 603 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 603 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 603 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 603 | vec_res); | 443 | | | 444 | 603 | block.replace_by_position(result, std::move(col_res)); | 445 | 11.7k | } else if (!left_is_const && right_is_const) { | 446 | 11.6k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 11.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 11.6k | vec_res.resize(col_left->size()); | 450 | 11.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 11.6k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 11.6k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 11.6k | col_right->get_element(0), vec_res); | 454 | | | 455 | 11.6k | block.replace_by_position(result, std::move(col_res)); | 456 | 11.6k | } else if (left_is_const && !right_is_const) { | 457 | 142 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 142 | vec_res.resize(col_right->size()); | 461 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 142 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 142 | col_right->get_data(), vec_res); | 465 | | | 466 | 142 | block.replace_by_position(result, std::move(col_res)); | 467 | 142 | } | 468 | 12.3k | return Status::OK(); | 469 | 12.3k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 29.2k | const ColumnPtr& col_right_ptr) const { | 426 | 29.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 29.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 29.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 29.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 29.2k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 29.2k | if (!left_is_const && !right_is_const) { | 435 | 253 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 253 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 253 | vec_res.resize(col_left->get_data().size()); | 439 | 253 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 253 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 253 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 253 | vec_res); | 443 | | | 444 | 253 | block.replace_by_position(result, std::move(col_res)); | 445 | 28.9k | } else if (!left_is_const && right_is_const) { | 446 | 27.8k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 27.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 27.8k | vec_res.resize(col_left->size()); | 450 | 27.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 27.8k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 27.8k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 27.8k | col_right->get_element(0), vec_res); | 454 | | | 455 | 27.8k | block.replace_by_position(result, std::move(col_res)); | 456 | 27.8k | } else if (left_is_const && !right_is_const) { | 457 | 1.15k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1.15k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1.15k | vec_res.resize(col_right->size()); | 461 | 1.15k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1.15k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1.15k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1.15k | col_right->get_data(), vec_res); | 465 | | | 466 | 1.15k | block.replace_by_position(result, std::move(col_res)); | 467 | 1.15k | } | 468 | 29.2k | return Status::OK(); | 469 | 29.2k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 141 | const ColumnPtr& col_right_ptr) const { | 426 | 141 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 141 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 141 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 141 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 141 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 141 | if (!left_is_const && !right_is_const) { | 435 | 62 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 62 | vec_res.resize(col_left->get_data().size()); | 439 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 62 | vec_res); | 443 | | | 444 | 62 | block.replace_by_position(result, std::move(col_res)); | 445 | 79 | } else if (!left_is_const && right_is_const) { | 446 | 67 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 67 | vec_res.resize(col_left->size()); | 450 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 67 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 67 | col_right->get_element(0), vec_res); | 454 | | | 455 | 67 | block.replace_by_position(result, std::move(col_res)); | 456 | 67 | } else if (left_is_const && !right_is_const) { | 457 | 12 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 12 | vec_res.resize(col_right->size()); | 461 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 12 | col_right->get_data(), vec_res); | 465 | | | 466 | 12 | block.replace_by_position(result, std::move(col_res)); | 467 | 12 | } | 468 | 141 | return Status::OK(); | 469 | 141 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 20 | const ColumnPtr& col_right_ptr) const { | 426 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 20 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 20 | if (!left_is_const && !right_is_const) { | 435 | 5 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 5 | vec_res.resize(col_left->get_data().size()); | 439 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 5 | vec_res); | 443 | | | 444 | 5 | block.replace_by_position(result, std::move(col_res)); | 445 | 15 | } else if (!left_is_const && right_is_const) { | 446 | 15 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 15 | vec_res.resize(col_left->size()); | 450 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 15 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 15 | col_right->get_element(0), vec_res); | 454 | | | 455 | 15 | block.replace_by_position(result, std::move(col_res)); | 456 | 15 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 20 | return Status::OK(); | 469 | 20 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 19 | const ColumnPtr& col_right_ptr) const { | 426 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 19 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 19 | if (!left_is_const && !right_is_const) { | 435 | 13 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 13 | vec_res.resize(col_left->get_data().size()); | 439 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 13 | vec_res); | 443 | | | 444 | 13 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 6 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6 | vec_res.resize(col_left->size()); | 450 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6 | col_right->get_element(0), vec_res); | 454 | | | 455 | 6 | block.replace_by_position(result, std::move(col_res)); | 456 | 6 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 19 | return Status::OK(); | 469 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 86 | const ColumnPtr& col_right_ptr) const { | 426 | 86 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 86 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 86 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 86 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 86 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 86 | if (!left_is_const && !right_is_const) { | 435 | 82 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 82 | vec_res.resize(col_left->get_data().size()); | 439 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 82 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 82 | vec_res); | 443 | | | 444 | 82 | block.replace_by_position(result, std::move(col_res)); | 445 | 82 | } else if (!left_is_const && right_is_const) { | 446 | 4 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 4 | vec_res.resize(col_left->size()); | 450 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 4 | col_right->get_element(0), vec_res); | 454 | | | 455 | 4 | block.replace_by_position(result, std::move(col_res)); | 456 | 4 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 86 | return Status::OK(); | 469 | 86 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 956 | const ColumnPtr& col_right_ptr) const { | 426 | 956 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 956 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 956 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 956 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 956 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 956 | if (!left_is_const && !right_is_const) { | 435 | 83 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 83 | vec_res.resize(col_left->get_data().size()); | 439 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 83 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 83 | vec_res); | 443 | | | 444 | 83 | block.replace_by_position(result, std::move(col_res)); | 445 | 873 | } else if (!left_is_const && right_is_const) { | 446 | 873 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 873 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 873 | vec_res.resize(col_left->size()); | 450 | 873 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 873 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 873 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 873 | col_right->get_element(0), vec_res); | 454 | | | 455 | 873 | block.replace_by_position(result, std::move(col_res)); | 456 | 873 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 956 | return Status::OK(); | 469 | 956 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 78 | const ColumnPtr& col_right_ptr) const { | 426 | 78 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 78 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 78 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 78 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 78 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 78 | if (!left_is_const && !right_is_const) { | 435 | 43 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 43 | vec_res.resize(col_left->get_data().size()); | 439 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 43 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 43 | vec_res); | 443 | | | 444 | 43 | block.replace_by_position(result, std::move(col_res)); | 445 | 43 | } else if (!left_is_const && right_is_const) { | 446 | 35 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 35 | vec_res.resize(col_left->size()); | 450 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 35 | col_right->get_element(0), vec_res); | 454 | | | 455 | 35 | block.replace_by_position(result, std::move(col_res)); | 456 | 35 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 78 | return Status::OK(); | 469 | 78 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 4 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 4 | vec_res.resize(col_left->size()); | 450 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 4 | col_right->get_element(0), vec_res); | 454 | | | 455 | 4 | block.replace_by_position(result, std::move(col_res)); | 456 | 4 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 100 | const ColumnPtr& col_right_ptr) const { | 426 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 100 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 100 | if (!left_is_const && !right_is_const) { | 435 | 56 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 56 | vec_res.resize(col_left->get_data().size()); | 439 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 56 | vec_res); | 443 | | | 444 | 56 | block.replace_by_position(result, std::move(col_res)); | 445 | 56 | } else if (!left_is_const && right_is_const) { | 446 | 44 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 44 | vec_res.resize(col_left->size()); | 450 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 44 | col_right->get_element(0), vec_res); | 454 | | | 455 | 44 | block.replace_by_position(result, std::move(col_res)); | 456 | 44 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 100 | return Status::OK(); | 469 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 26 | const ColumnPtr& col_right_ptr) const { | 426 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 26 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 26 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 26 | } else if (!left_is_const && right_is_const) { | 446 | 26 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26 | vec_res.resize(col_left->size()); | 450 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26 | col_right->get_element(0), vec_res); | 454 | | | 455 | 26 | block.replace_by_position(result, std::move(col_res)); | 456 | 26 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 26 | return Status::OK(); | 469 | 26 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.79k | const ColumnPtr& col_right_ptr) const { | 426 | 2.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.79k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.79k | if (!left_is_const && !right_is_const) { | 435 | 1.13k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.13k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.13k | vec_res.resize(col_left->get_data().size()); | 439 | 1.13k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.13k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.13k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.13k | vec_res); | 443 | | | 444 | 1.13k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.66k | } else if (!left_is_const && right_is_const) { | 446 | 1.66k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.66k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.66k | vec_res.resize(col_left->size()); | 450 | 1.66k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.66k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.66k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.66k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.66k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.66k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.79k | return Status::OK(); | 469 | 2.79k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.71k | const ColumnPtr& col_right_ptr) const { | 426 | 2.71k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.71k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.71k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.71k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.71k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.71k | if (!left_is_const && !right_is_const) { | 435 | 344 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 344 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 344 | vec_res.resize(col_left->get_data().size()); | 439 | 344 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 344 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 344 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 344 | vec_res); | 443 | | | 444 | 344 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.36k | } else if (!left_is_const && right_is_const) { | 446 | 1.93k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.93k | vec_res.resize(col_left->size()); | 450 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.93k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.93k | } else if (left_is_const && !right_is_const) { | 457 | 436 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 436 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 436 | vec_res.resize(col_right->size()); | 461 | 436 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 436 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 436 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 436 | col_right->get_data(), vec_res); | 465 | | | 466 | 436 | block.replace_by_position(result, std::move(col_res)); | 467 | 436 | } | 468 | 2.71k | return Status::OK(); | 469 | 2.71k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 48 | const ColumnPtr& col_right_ptr) const { | 426 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 48 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 48 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 28 | } else if (!left_is_const && right_is_const) { | 446 | 28 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28 | vec_res.resize(col_left->size()); | 450 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28 | col_right->get_element(0), vec_res); | 454 | | | 455 | 28 | block.replace_by_position(result, std::move(col_res)); | 456 | 28 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 48 | return Status::OK(); | 469 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60 | const ColumnPtr& col_right_ptr) const { | 426 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 40 | } else if (!left_is_const && right_is_const) { | 446 | 40 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 40 | vec_res.resize(col_left->size()); | 450 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 40 | col_right->get_element(0), vec_res); | 454 | | | 455 | 40 | block.replace_by_position(result, std::move(col_res)); | 456 | 40 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 60 | return Status::OK(); | 469 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.13k | const ColumnPtr& col_right_ptr) const { | 426 | 1.13k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.13k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.13k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.13k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.13k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.13k | if (!left_is_const && !right_is_const) { | 435 | 969 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 969 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 969 | vec_res.resize(col_left->get_data().size()); | 439 | 969 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 969 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 969 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 969 | vec_res); | 443 | | | 444 | 969 | block.replace_by_position(result, std::move(col_res)); | 445 | 969 | } else if (!left_is_const && right_is_const) { | 446 | 163 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 163 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 163 | vec_res.resize(col_left->size()); | 450 | 163 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 163 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 163 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 163 | col_right->get_element(0), vec_res); | 454 | | | 455 | 163 | block.replace_by_position(result, std::move(col_res)); | 456 | 163 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.13k | return Status::OK(); | 469 | 1.13k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 122 | const ColumnPtr& col_right_ptr) const { | 426 | 122 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 122 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 122 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 122 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 122 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 122 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 122 | } else if (!left_is_const && right_is_const) { | 446 | 122 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 122 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 122 | vec_res.resize(col_left->size()); | 450 | 122 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 122 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 122 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 122 | col_right->get_element(0), vec_res); | 454 | | | 455 | 122 | block.replace_by_position(result, std::move(col_res)); | 456 | 122 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 122 | return Status::OK(); | 469 | 122 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.38k | const ColumnPtr& col_right_ptr) const { | 426 | 1.38k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.38k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.38k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.38k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.38k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.38k | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.34k | } else if (!left_is_const && right_is_const) { | 446 | 1.12k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.12k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.12k | vec_res.resize(col_left->size()); | 450 | 1.12k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.12k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.12k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.12k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.12k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.12k | } else if (left_is_const && !right_is_const) { | 457 | 228 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 228 | vec_res.resize(col_right->size()); | 461 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 228 | col_right->get_data(), vec_res); | 465 | | | 466 | 228 | block.replace_by_position(result, std::move(col_res)); | 467 | 228 | } | 468 | 1.38k | return Status::OK(); | 469 | 1.38k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.79k | const ColumnPtr& col_right_ptr) const { | 426 | 1.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.79k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.79k | if (!left_is_const && !right_is_const) { | 435 | 112 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 112 | vec_res.resize(col_left->get_data().size()); | 439 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 112 | vec_res); | 443 | | | 444 | 112 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.68k | } else if (!left_is_const && right_is_const) { | 446 | 1.45k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.45k | vec_res.resize(col_left->size()); | 450 | 1.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.45k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.45k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.45k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.45k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.45k | } else if (left_is_const && !right_is_const) { | 457 | 221 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 221 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 221 | vec_res.resize(col_right->size()); | 461 | 221 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 221 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 221 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 221 | col_right->get_data(), vec_res); | 465 | | | 466 | 221 | block.replace_by_position(result, std::move(col_res)); | 467 | 221 | } | 468 | 1.79k | return Status::OK(); | 469 | 1.79k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 23.2k | const ColumnPtr& col_right_ptr) const { | 426 | 23.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 23.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 23.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 23.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 23.2k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 23.2k | if (!left_is_const && !right_is_const) { | 435 | 63 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 63 | vec_res.resize(col_left->get_data().size()); | 439 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 63 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 63 | vec_res); | 443 | | | 444 | 63 | block.replace_by_position(result, std::move(col_res)); | 445 | 23.1k | } else if (!left_is_const && right_is_const) { | 446 | 19.8k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 19.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 19.8k | vec_res.resize(col_left->size()); | 450 | 19.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 19.8k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 19.8k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 19.8k | col_right->get_element(0), vec_res); | 454 | | | 455 | 19.8k | block.replace_by_position(result, std::move(col_res)); | 456 | 19.8k | } else if (left_is_const && !right_is_const) { | 457 | 3.33k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 3.33k | vec_res.resize(col_right->size()); | 461 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 3.33k | col_right->get_data(), vec_res); | 465 | | | 466 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 467 | 3.33k | } | 468 | 23.2k | return Status::OK(); | 469 | 23.2k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13.9k | const ColumnPtr& col_right_ptr) const { | 426 | 13.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13.9k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13.9k | if (!left_is_const && !right_is_const) { | 435 | 64 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 64 | vec_res.resize(col_left->get_data().size()); | 439 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 64 | vec_res); | 443 | | | 444 | 64 | block.replace_by_position(result, std::move(col_res)); | 445 | 13.8k | } else if (!left_is_const && right_is_const) { | 446 | 13.3k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13.3k | vec_res.resize(col_left->size()); | 450 | 13.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13.3k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13.3k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13.3k | col_right->get_element(0), vec_res); | 454 | | | 455 | 13.3k | block.replace_by_position(result, std::move(col_res)); | 456 | 13.3k | } else if (left_is_const && !right_is_const) { | 457 | 512 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 512 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 512 | vec_res.resize(col_right->size()); | 461 | 512 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 512 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 512 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 512 | col_right->get_data(), vec_res); | 465 | | | 466 | 512 | block.replace_by_position(result, std::move(col_res)); | 467 | 512 | } | 468 | 13.9k | return Status::OK(); | 469 | 13.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 249 | const ColumnPtr& col_right_ptr) const { | 426 | 249 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 249 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 249 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 249 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 249 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 249 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 247 | } else if (!left_is_const && right_is_const) { | 446 | 201 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 201 | vec_res.resize(col_left->size()); | 450 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 201 | col_right->get_element(0), vec_res); | 454 | | | 455 | 201 | block.replace_by_position(result, std::move(col_res)); | 456 | 201 | } else if (left_is_const && !right_is_const) { | 457 | 46 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 46 | vec_res.resize(col_right->size()); | 461 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 46 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 46 | col_right->get_data(), vec_res); | 465 | | | 466 | 46 | block.replace_by_position(result, std::move(col_res)); | 467 | 46 | } | 468 | 249 | return Status::OK(); | 469 | 249 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 3 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3 | vec_res.resize(col_left->size()); | 450 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3 | col_right->get_element(0), vec_res); | 454 | | | 455 | 3 | block.replace_by_position(result, std::move(col_res)); | 456 | 3 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 236 | const ColumnPtr& col_right_ptr) const { | 426 | 236 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 236 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 236 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 236 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 236 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 236 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 216 | } else if (!left_is_const && right_is_const) { | 446 | 216 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 216 | vec_res.resize(col_left->size()); | 450 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 216 | col_right->get_element(0), vec_res); | 454 | | | 455 | 216 | block.replace_by_position(result, std::move(col_res)); | 456 | 216 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 236 | return Status::OK(); | 469 | 236 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.39k | const ColumnPtr& col_right_ptr) const { | 426 | 2.39k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.39k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.39k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.39k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.39k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.39k | if (!left_is_const && !right_is_const) { | 435 | 26 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 26 | vec_res.resize(col_left->get_data().size()); | 439 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 26 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 26 | vec_res); | 443 | | | 444 | 26 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.36k | } else if (!left_is_const && right_is_const) { | 446 | 2.36k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.36k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.36k | vec_res.resize(col_left->size()); | 450 | 2.36k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.36k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.36k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.36k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.36k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.36k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.39k | return Status::OK(); | 469 | 2.39k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 111 | const ColumnPtr& col_right_ptr) const { | 426 | 111 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 111 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 111 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 111 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 111 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 111 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 111 | } else if (!left_is_const && right_is_const) { | 446 | 111 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 111 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 111 | vec_res.resize(col_left->size()); | 450 | 111 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 111 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 111 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 111 | col_right->get_element(0), vec_res); | 454 | | | 455 | 111 | block.replace_by_position(result, std::move(col_res)); | 456 | 111 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 111 | return Status::OK(); | 469 | 111 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.36k | const ColumnPtr& col_right_ptr) const { | 426 | 2.36k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.36k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.36k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.36k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.36k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.36k | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.36k | } else if (!left_is_const && right_is_const) { | 446 | 2.35k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.35k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.35k | vec_res.resize(col_left->size()); | 450 | 2.35k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.35k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.35k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.35k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.35k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.35k | } else if (left_is_const && !right_is_const) { | 457 | 6 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 6 | vec_res.resize(col_right->size()); | 461 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 6 | col_right->get_data(), vec_res); | 465 | | | 466 | 6 | block.replace_by_position(result, std::move(col_res)); | 467 | 6 | } | 468 | 2.36k | return Status::OK(); | 469 | 2.36k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 772 | const ColumnPtr& col_right_ptr) const { | 426 | 772 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 772 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 772 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 772 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 772 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 772 | if (!left_is_const && !right_is_const) { | 435 | 6 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 6 | vec_res.resize(col_left->get_data().size()); | 439 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 6 | vec_res); | 443 | | | 444 | 6 | block.replace_by_position(result, std::move(col_res)); | 445 | 766 | } else if (!left_is_const && right_is_const) { | 446 | 766 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 766 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 766 | vec_res.resize(col_left->size()); | 450 | 766 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 766 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 766 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 766 | col_right->get_element(0), vec_res); | 454 | | | 455 | 766 | block.replace_by_position(result, std::move(col_res)); | 456 | 766 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 772 | return Status::OK(); | 469 | 772 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 53 | const ColumnPtr& col_right_ptr) const { | 426 | 53 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 53 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 53 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 53 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 53 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 53 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 53 | } else if (!left_is_const && right_is_const) { | 446 | 53 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 53 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 53 | vec_res.resize(col_left->size()); | 450 | 53 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 53 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 53 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 53 | col_right->get_element(0), vec_res); | 454 | | | 455 | 53 | block.replace_by_position(result, std::move(col_res)); | 456 | 53 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 53 | return Status::OK(); | 469 | 53 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 54 | const ColumnPtr& col_right_ptr) const { | 426 | 54 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 54 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 54 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 54 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 54 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 54 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 54 | } else if (!left_is_const && right_is_const) { | 446 | 54 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 54 | vec_res.resize(col_left->size()); | 450 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 54 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 54 | col_right->get_element(0), vec_res); | 454 | | | 455 | 54 | block.replace_by_position(result, std::move(col_res)); | 456 | 54 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 54 | return Status::OK(); | 469 | 54 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16.9k | const ColumnPtr& col_right_ptr) const { | 426 | 16.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16.9k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16.9k | if (!left_is_const && !right_is_const) { | 435 | 11 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 11 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 11 | vec_res.resize(col_left->get_data().size()); | 439 | 11 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 11 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 11 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 11 | vec_res); | 443 | | | 444 | 11 | block.replace_by_position(result, std::move(col_res)); | 445 | 16.8k | } else if (!left_is_const && right_is_const) { | 446 | 16.8k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 16.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 16.8k | vec_res.resize(col_left->size()); | 450 | 16.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 16.8k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 16.8k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 16.8k | col_right->get_element(0), vec_res); | 454 | | | 455 | 16.8k | block.replace_by_position(result, std::move(col_res)); | 456 | 16.8k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16.9k | return Status::OK(); | 469 | 16.9k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 480 | const ColumnPtr& col_right_ptr) const { | 426 | 480 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 480 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 480 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 480 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 480 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 480 | if (!left_is_const && !right_is_const) { | 435 | 8 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 8 | vec_res.resize(col_left->get_data().size()); | 439 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 8 | vec_res); | 443 | | | 444 | 8 | block.replace_by_position(result, std::move(col_res)); | 445 | 472 | } else if (!left_is_const && right_is_const) { | 446 | 472 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 472 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 472 | vec_res.resize(col_left->size()); | 450 | 472 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 472 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 472 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 472 | col_right->get_element(0), vec_res); | 454 | | | 455 | 472 | block.replace_by_position(result, std::move(col_res)); | 456 | 472 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 480 | return Status::OK(); | 469 | 480 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 53 | const ColumnPtr& col_right_ptr) const { | 426 | 53 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 53 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 53 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 53 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 53 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 53 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 53 | } else if (!left_is_const && right_is_const) { | 446 | 53 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 53 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 53 | vec_res.resize(col_left->size()); | 450 | 53 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 53 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 53 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 53 | col_right->get_element(0), vec_res); | 454 | | | 455 | 53 | block.replace_by_position(result, std::move(col_res)); | 456 | 53 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 53 | return Status::OK(); | 469 | 53 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 11 | const ColumnPtr& col_right_ptr) const { | 426 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 11 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 11 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 11 | return Status::OK(); | 469 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 184 | const ColumnPtr& col_right_ptr) const { | 426 | 184 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 184 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 184 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 184 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 184 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 184 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 164 | } else if (!left_is_const && right_is_const) { | 446 | 164 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 164 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 164 | vec_res.resize(col_left->size()); | 450 | 164 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 164 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 164 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 164 | col_right->get_element(0), vec_res); | 454 | | | 455 | 164 | block.replace_by_position(result, std::move(col_res)); | 456 | 164 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 184 | return Status::OK(); | 469 | 184 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 140 | const ColumnPtr& col_right_ptr) const { | 426 | 140 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 140 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 140 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 140 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 140 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 140 | if (!left_is_const && !right_is_const) { | 435 | 21 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 21 | vec_res.resize(col_left->get_data().size()); | 439 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 21 | vec_res); | 443 | | | 444 | 21 | block.replace_by_position(result, std::move(col_res)); | 445 | 119 | } else if (!left_is_const && right_is_const) { | 446 | 119 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 119 | vec_res.resize(col_left->size()); | 450 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 119 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 119 | col_right->get_element(0), vec_res); | 454 | | | 455 | 119 | block.replace_by_position(result, std::move(col_res)); | 456 | 119 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 140 | return Status::OK(); | 469 | 140 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 101 | const ColumnPtr& col_right_ptr) const { | 426 | 101 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 101 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 101 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 101 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 101 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 101 | if (!left_is_const && !right_is_const) { | 435 | 101 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 101 | vec_res.resize(col_left->get_data().size()); | 439 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 101 | vec_res); | 443 | | | 444 | 101 | block.replace_by_position(result, std::move(col_res)); | 445 | 101 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 101 | return Status::OK(); | 469 | 101 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.14k | const ColumnPtr& col_right_ptr) const { | 426 | 2.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.14k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.14k | if (!left_is_const && !right_is_const) { | 435 | 1.65k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.65k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.65k | vec_res.resize(col_left->get_data().size()); | 439 | 1.65k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.65k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.65k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.65k | vec_res); | 443 | | | 444 | 1.65k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.65k | } else if (!left_is_const && right_is_const) { | 446 | 488 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 488 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 488 | vec_res.resize(col_left->size()); | 450 | 488 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 488 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 488 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 488 | col_right->get_element(0), vec_res); | 454 | | | 455 | 488 | block.replace_by_position(result, std::move(col_res)); | 456 | 488 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.14k | return Status::OK(); | 469 | 2.14k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 653 | const ColumnPtr& col_right_ptr) const { | 426 | 653 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 653 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 653 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 653 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 653 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 653 | if (!left_is_const && !right_is_const) { | 435 | 254 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 254 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 254 | vec_res.resize(col_left->get_data().size()); | 439 | 254 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 254 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 254 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 254 | vec_res); | 443 | | | 444 | 254 | block.replace_by_position(result, std::move(col_res)); | 445 | 399 | } else if (!left_is_const && right_is_const) { | 446 | 399 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 399 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 399 | vec_res.resize(col_left->size()); | 450 | 399 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 399 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 399 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 399 | col_right->get_element(0), vec_res); | 454 | | | 455 | 399 | block.replace_by_position(result, std::move(col_res)); | 456 | 399 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 653 | return Status::OK(); | 469 | 653 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 1 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1 | vec_res.resize(col_left->size()); | 450 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1 | col_right->get_element(0), vec_res); | 454 | | | 455 | 1 | block.replace_by_position(result, std::move(col_res)); | 456 | 1 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.14k | const ColumnPtr& col_right_ptr) const { | 426 | 2.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.14k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.14k | if (!left_is_const && !right_is_const) { | 435 | 142 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 142 | vec_res.resize(col_left->get_data().size()); | 439 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 142 | vec_res); | 443 | | | 444 | 142 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.00k | } else if (!left_is_const && right_is_const) { | 446 | 1.77k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.77k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.77k | vec_res.resize(col_left->size()); | 450 | 1.77k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.77k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.77k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.77k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.77k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.77k | } else if (left_is_const && !right_is_const) { | 457 | 228 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 228 | vec_res.resize(col_right->size()); | 461 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 228 | col_right->get_data(), vec_res); | 465 | | | 466 | 228 | block.replace_by_position(result, std::move(col_res)); | 467 | 228 | } | 468 | 2.14k | return Status::OK(); | 469 | 2.14k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 383 | const ColumnPtr& col_right_ptr) const { | 426 | 383 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 383 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 383 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 383 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 383 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 383 | if (!left_is_const && !right_is_const) { | 435 | 121 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 121 | vec_res.resize(col_left->get_data().size()); | 439 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 121 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 121 | vec_res); | 443 | | | 444 | 121 | block.replace_by_position(result, std::move(col_res)); | 445 | 262 | } else if (!left_is_const && right_is_const) { | 446 | 262 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 262 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 262 | vec_res.resize(col_left->size()); | 450 | 262 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 262 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 262 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 262 | col_right->get_element(0), vec_res); | 454 | | | 455 | 262 | block.replace_by_position(result, std::move(col_res)); | 456 | 262 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 383 | return Status::OK(); | 469 | 383 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3.31k | const ColumnPtr& col_right_ptr) const { | 426 | 3.31k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3.31k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3.31k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3.31k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3.31k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3.31k | if (!left_is_const && !right_is_const) { | 435 | 160 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 160 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 160 | vec_res.resize(col_left->get_data().size()); | 439 | 160 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 160 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 160 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 160 | vec_res); | 443 | | | 444 | 160 | block.replace_by_position(result, std::move(col_res)); | 445 | 3.15k | } else if (!left_is_const && right_is_const) { | 446 | 3.03k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3.03k | vec_res.resize(col_left->size()); | 450 | 3.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3.03k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3.03k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3.03k | col_right->get_element(0), vec_res); | 454 | | | 455 | 3.03k | block.replace_by_position(result, std::move(col_res)); | 456 | 3.03k | } else if (left_is_const && !right_is_const) { | 457 | 121 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 121 | vec_res.resize(col_right->size()); | 461 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 121 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 121 | col_right->get_data(), vec_res); | 465 | | | 466 | 121 | block.replace_by_position(result, std::move(col_res)); | 467 | 121 | } | 468 | 3.31k | return Status::OK(); | 469 | 3.31k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.70k | const ColumnPtr& col_right_ptr) const { | 426 | 1.70k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.70k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.70k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.70k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.70k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.70k | if (!left_is_const && !right_is_const) { | 435 | 208 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 208 | vec_res.resize(col_left->get_data().size()); | 439 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 208 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 208 | vec_res); | 443 | | | 444 | 208 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.49k | } else if (!left_is_const && right_is_const) { | 446 | 1.41k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.41k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.41k | vec_res.resize(col_left->size()); | 450 | 1.41k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.41k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.41k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.41k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.41k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.41k | } else if (left_is_const && !right_is_const) { | 457 | 79 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 79 | vec_res.resize(col_right->size()); | 461 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 79 | col_right->get_data(), vec_res); | 465 | | | 466 | 79 | block.replace_by_position(result, std::move(col_res)); | 467 | 79 | } | 468 | 1.70k | return Status::OK(); | 469 | 1.70k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 276 | const ColumnPtr& col_right_ptr) const { | 426 | 276 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 276 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 276 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 276 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 276 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 276 | if (!left_is_const && !right_is_const) { | 435 | 142 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 142 | vec_res.resize(col_left->get_data().size()); | 439 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 142 | vec_res); | 443 | | | 444 | 142 | block.replace_by_position(result, std::move(col_res)); | 445 | 142 | } else if (!left_is_const && right_is_const) { | 446 | 46 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 46 | vec_res.resize(col_left->size()); | 450 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 46 | col_right->get_element(0), vec_res); | 454 | | | 455 | 46 | block.replace_by_position(result, std::move(col_res)); | 456 | 88 | } else if (left_is_const && !right_is_const) { | 457 | 88 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 88 | vec_res.resize(col_right->size()); | 461 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 88 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 88 | col_right->get_data(), vec_res); | 465 | | | 466 | 88 | block.replace_by_position(result, std::move(col_res)); | 467 | 88 | } | 468 | 276 | return Status::OK(); | 469 | 276 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16 | const ColumnPtr& col_right_ptr) const { | 426 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16 | return Status::OK(); | 469 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 170 | const ColumnPtr& col_right_ptr) const { | 426 | 170 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 170 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 170 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 170 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 170 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 170 | if (!left_is_const && !right_is_const) { | 435 | 137 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 137 | vec_res.resize(col_left->get_data().size()); | 439 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 137 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 137 | vec_res); | 443 | | | 444 | 137 | block.replace_by_position(result, std::move(col_res)); | 445 | 137 | } else if (!left_is_const && right_is_const) { | 446 | 32 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 32 | vec_res.resize(col_left->size()); | 450 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 32 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 32 | col_right->get_element(0), vec_res); | 454 | | | 455 | 32 | block.replace_by_position(result, std::move(col_res)); | 456 | 32 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 170 | return Status::OK(); | 469 | 170 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 364 | const ColumnPtr& col_right_ptr) const { | 426 | 364 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 364 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 364 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 364 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 364 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 365 | if (!left_is_const && !right_is_const) { | 435 | 144 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 144 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 144 | vec_res.resize(col_left->get_data().size()); | 439 | 144 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 144 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 144 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 144 | vec_res); | 443 | | | 444 | 144 | block.replace_by_position(result, std::move(col_res)); | 445 | 221 | } else if (!left_is_const && right_is_const) { | 446 | 221 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 221 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 221 | vec_res.resize(col_left->size()); | 450 | 221 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 221 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 221 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 221 | col_right->get_element(0), vec_res); | 454 | | | 455 | 221 | block.replace_by_position(result, std::move(col_res)); | 456 | 18.4E | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 364 | return Status::OK(); | 469 | 364 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 119 | const ColumnPtr& col_right_ptr) const { | 426 | 119 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 119 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 119 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 119 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 119 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 119 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 119 | } else if (!left_is_const && right_is_const) { | 446 | 119 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 119 | vec_res.resize(col_left->size()); | 450 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 119 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 119 | col_right->get_element(0), vec_res); | 454 | | | 455 | 119 | block.replace_by_position(result, std::move(col_res)); | 456 | 119 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 119 | return Status::OK(); | 469 | 119 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 28.9k | const ColumnPtr& col_right_ptr) const { | 426 | 28.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 28.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 28.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 28.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 28.9k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 28.9k | if (!left_is_const && !right_is_const) { | 435 | 406 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 406 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 406 | vec_res.resize(col_left->get_data().size()); | 439 | 406 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 406 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 406 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 406 | vec_res); | 443 | | | 444 | 406 | block.replace_by_position(result, std::move(col_res)); | 445 | 28.5k | } else if (!left_is_const && right_is_const) { | 446 | 28.5k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28.5k | vec_res.resize(col_left->size()); | 450 | 28.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28.5k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28.5k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28.5k | col_right->get_element(0), vec_res); | 454 | | | 455 | 28.5k | block.replace_by_position(result, std::move(col_res)); | 456 | 28.5k | } else if (left_is_const && !right_is_const) { | 457 | 5 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 5 | vec_res.resize(col_right->size()); | 461 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 5 | col_right->get_data(), vec_res); | 465 | | | 466 | 5 | block.replace_by_position(result, std::move(col_res)); | 467 | 5 | } | 468 | 28.9k | return Status::OK(); | 469 | 28.9k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 419 | const ColumnPtr& col_right_ptr) const { | 426 | 419 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 419 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 419 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 419 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 419 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 419 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 419 | } else if (!left_is_const && right_is_const) { | 446 | 419 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 419 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 419 | vec_res.resize(col_left->size()); | 450 | 419 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 419 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 419 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 419 | col_right->get_element(0), vec_res); | 454 | | | 455 | 419 | block.replace_by_position(result, std::move(col_res)); | 456 | 419 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 419 | return Status::OK(); | 469 | 419 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 67 | const ColumnPtr& col_right_ptr) const { | 426 | 67 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 67 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 67 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 67 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 67 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 67 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 66 | } else if (!left_is_const && right_is_const) { | 446 | 66 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 66 | vec_res.resize(col_left->size()); | 450 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 66 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 66 | col_right->get_element(0), vec_res); | 454 | | | 455 | 66 | block.replace_by_position(result, std::move(col_res)); | 456 | 66 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 67 | return Status::OK(); | 469 | 67 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 83 | const ColumnPtr& col_right_ptr) const { | 426 | 83 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 83 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 83 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 83 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 83 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 83 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 83 | } else if (!left_is_const && right_is_const) { | 446 | 83 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 83 | vec_res.resize(col_left->size()); | 450 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 83 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 83 | col_right->get_element(0), vec_res); | 454 | | | 455 | 83 | block.replace_by_position(result, std::move(col_res)); | 456 | 83 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 83 | return Status::OK(); | 469 | 83 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 25.4k | const ColumnPtr& col_right_ptr) const { | 426 | 25.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 25.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 25.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 25.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 25.4k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 25.4k | if (!left_is_const && !right_is_const) { | 435 | 23 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 23 | vec_res.resize(col_left->get_data().size()); | 439 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 23 | vec_res); | 443 | | | 444 | 23 | block.replace_by_position(result, std::move(col_res)); | 445 | 25.4k | } else if (!left_is_const && right_is_const) { | 446 | 25.0k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 25.0k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 25.0k | vec_res.resize(col_left->size()); | 450 | 25.0k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 25.0k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 25.0k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 25.0k | col_right->get_element(0), vec_res); | 454 | | | 455 | 25.0k | block.replace_by_position(result, std::move(col_res)); | 456 | 25.0k | } else if (left_is_const && !right_is_const) { | 457 | 357 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 357 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 357 | vec_res.resize(col_right->size()); | 461 | 357 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 357 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 357 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 357 | col_right->get_data(), vec_res); | 465 | | | 466 | 357 | block.replace_by_position(result, std::move(col_res)); | 467 | 357 | } | 468 | 25.4k | return Status::OK(); | 469 | 25.4k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.22k | const ColumnPtr& col_right_ptr) const { | 426 | 1.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.22k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.22k | if (!left_is_const && !right_is_const) { | 435 | 31 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 31 | vec_res.resize(col_left->get_data().size()); | 439 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 31 | vec_res); | 443 | | | 444 | 31 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.19k | } else if (!left_is_const && right_is_const) { | 446 | 1.14k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.14k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.14k | vec_res.resize(col_left->size()); | 450 | 1.14k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.14k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.14k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.14k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.14k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.14k | } else if (left_is_const && !right_is_const) { | 457 | 48 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 48 | vec_res.resize(col_right->size()); | 461 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 48 | col_right->get_data(), vec_res); | 465 | | | 466 | 48 | block.replace_by_position(result, std::move(col_res)); | 467 | 48 | } | 468 | 1.22k | return Status::OK(); | 469 | 1.22k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 69 | const ColumnPtr& col_right_ptr) const { | 426 | 69 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 69 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 69 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 69 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 69 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 69 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 69 | } else if (!left_is_const && right_is_const) { | 446 | 69 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 69 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 69 | vec_res.resize(col_left->size()); | 450 | 69 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 69 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 69 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 69 | col_right->get_element(0), vec_res); | 454 | | | 455 | 69 | block.replace_by_position(result, std::move(col_res)); | 456 | 69 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 69 | return Status::OK(); | 469 | 69 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 10 | const ColumnPtr& col_right_ptr) const { | 426 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 10 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 10 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 10 | return Status::OK(); | 469 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 180 | const ColumnPtr& col_right_ptr) const { | 426 | 180 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 180 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 180 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 180 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 180 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 180 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 160 | } else if (!left_is_const && right_is_const) { | 446 | 160 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 160 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 160 | vec_res.resize(col_left->size()); | 450 | 160 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 160 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 160 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 160 | col_right->get_element(0), vec_res); | 454 | | | 455 | 160 | block.replace_by_position(result, std::move(col_res)); | 456 | 160 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 180 | return Status::OK(); | 469 | 180 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 144 | const ColumnPtr& col_right_ptr) const { | 426 | 144 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 144 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 144 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 144 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 144 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 144 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 124 | } else if (!left_is_const && right_is_const) { | 446 | 123 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 123 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 123 | vec_res.resize(col_left->size()); | 450 | 123 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 123 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 123 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 123 | col_right->get_element(0), vec_res); | 454 | | | 455 | 123 | block.replace_by_position(result, std::move(col_res)); | 456 | 123 | } else if (left_is_const && !right_is_const) { | 457 | 1 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1 | vec_res.resize(col_right->size()); | 461 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1 | col_right->get_data(), vec_res); | 465 | | | 466 | 1 | block.replace_by_position(result, std::move(col_res)); | 467 | 1 | } | 468 | 144 | return Status::OK(); | 469 | 144 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
470 | | |
471 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
472 | 24.9k | const ColumnWithTypeAndName& col_right) const { |
473 | 24.9k | auto call = [&](const auto& type) -> bool { |
474 | 24.9k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 24.9k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 24.9k | block, result, col_left, col_right); |
477 | 24.9k | return true; |
478 | 24.9k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 219 | auto call = [&](const auto& type) -> bool { | 474 | 219 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 219 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 219 | block, result, col_left, col_right); | 477 | 219 | return true; | 478 | 219 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 258 | auto call = [&](const auto& type) -> bool { | 474 | 258 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 258 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 258 | block, result, col_left, col_right); | 477 | 258 | return true; | 478 | 258 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.15k | auto call = [&](const auto& type) -> bool { | 474 | 1.15k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.15k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.15k | block, result, col_left, col_right); | 477 | 1.15k | return true; | 478 | 1.15k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 66 | auto call = [&](const auto& type) -> bool { | 474 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 66 | block, result, col_left, col_right); | 477 | 66 | return true; | 478 | 66 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 324 | auto call = [&](const auto& type) -> bool { | 474 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 324 | block, result, col_left, col_right); | 477 | 324 | return true; | 478 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 46 | auto call = [&](const auto& type) -> bool { | 474 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 46 | block, result, col_left, col_right); | 477 | 46 | return true; | 478 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 16.9k | auto call = [&](const auto& type) -> bool { | 474 | 16.9k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16.9k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16.9k | block, result, col_left, col_right); | 477 | 16.9k | return true; | 478 | 16.9k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.33k | auto call = [&](const auto& type) -> bool { | 474 | 1.33k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.33k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.33k | block, result, col_left, col_right); | 477 | 1.33k | return true; | 478 | 1.33k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 2 | auto call = [&](const auto& type) -> bool { | 474 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2 | block, result, col_left, col_right); | 477 | 2 | return true; | 478 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 9 | auto call = [&](const auto& type) -> bool { | 474 | 9 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 9 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 9 | block, result, col_left, col_right); | 477 | 9 | return true; | 478 | 9 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 265 | auto call = [&](const auto& type) -> bool { | 474 | 265 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 265 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 265 | block, result, col_left, col_right); | 477 | 265 | return true; | 478 | 265 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 54 | auto call = [&](const auto& type) -> bool { | 474 | 54 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 54 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 54 | block, result, col_left, col_right); | 477 | 54 | return true; | 478 | 54 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 21 | auto call = [&](const auto& type) -> bool { | 474 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 21 | block, result, col_left, col_right); | 477 | 21 | return true; | 478 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 190 | auto call = [&](const auto& type) -> bool { | 474 | 190 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 190 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 190 | block, result, col_left, col_right); | 477 | 190 | return true; | 478 | 190 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 229 | auto call = [&](const auto& type) -> bool { | 474 | 229 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 229 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 229 | block, result, col_left, col_right); | 477 | 229 | return true; | 478 | 229 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 593 | auto call = [&](const auto& type) -> bool { | 474 | 593 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 593 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 593 | block, result, col_left, col_right); | 477 | 593 | return true; | 478 | 593 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 1 | auto call = [&](const auto& type) -> bool { | 474 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1 | block, result, col_left, col_right); | 477 | 1 | return true; | 478 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 4 | auto call = [&](const auto& type) -> bool { | 474 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 4 | block, result, col_left, col_right); | 477 | 4 | return true; | 478 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 2.17k | auto call = [&](const auto& type) -> bool { | 474 | 2.17k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2.17k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2.17k | block, result, col_left, col_right); | 477 | 2.17k | return true; | 478 | 2.17k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 955 | auto call = [&](const auto& type) -> bool { | 474 | 955 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 955 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 955 | block, result, col_left, col_right); | 477 | 955 | return true; | 478 | 955 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 16 | auto call = [&](const auto& type) -> bool { | 474 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16 | block, result, col_left, col_right); | 477 | 16 | return true; | 478 | 16 | }; |
|
479 | | |
480 | 24.9k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
481 | 0 | return Status::RuntimeError( |
482 | 0 | "type of left column {} is not equal to type of right column {}", |
483 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
484 | 0 | } |
485 | | |
486 | 24.9k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
488 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
489 | 0 | } |
490 | 24.9k | return Status::OK(); |
491 | 24.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.66k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.66k | auto call = [&](const auto& type) -> bool { | 474 | 1.66k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.66k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.66k | block, result, col_left, col_right); | 477 | 1.66k | return true; | 478 | 1.66k | }; | 479 | | | 480 | 1.66k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.66k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.66k | return Status::OK(); | 491 | 1.66k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 420 | const ColumnWithTypeAndName& col_right) const { | 473 | 420 | auto call = [&](const auto& type) -> bool { | 474 | 420 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 420 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 420 | block, result, col_left, col_right); | 477 | 420 | return true; | 478 | 420 | }; | 479 | | | 480 | 420 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 420 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 420 | return Status::OK(); | 491 | 420 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 18.3k | const ColumnWithTypeAndName& col_right) const { | 473 | 18.3k | auto call = [&](const auto& type) -> bool { | 474 | 18.3k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 18.3k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 18.3k | block, result, col_left, col_right); | 477 | 18.3k | return true; | 478 | 18.3k | }; | 479 | | | 480 | 18.3k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 18.3k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 18.3k | return Status::OK(); | 491 | 18.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 349 | const ColumnWithTypeAndName& col_right) const { | 473 | 349 | auto call = [&](const auto& type) -> bool { | 474 | 349 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 349 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 349 | block, result, col_left, col_right); | 477 | 349 | return true; | 478 | 349 | }; | 479 | | | 480 | 349 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 349 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 349 | return Status::OK(); | 491 | 349 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.01k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.01k | auto call = [&](const auto& type) -> bool { | 474 | 1.01k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.01k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.01k | block, result, col_left, col_right); | 477 | 1.01k | return true; | 478 | 1.01k | }; | 479 | | | 480 | 1.01k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.01k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.01k | return Status::OK(); | 491 | 1.01k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 3.14k | const ColumnWithTypeAndName& col_right) const { | 473 | 3.14k | auto call = [&](const auto& type) -> bool { | 474 | 3.14k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 3.14k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 3.14k | block, result, col_left, col_right); | 477 | 3.14k | return true; | 478 | 3.14k | }; | 479 | | | 480 | 3.14k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 3.14k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 3.14k | return Status::OK(); | 491 | 3.14k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
494 | 30.2k | const IColumn* c1) const { |
495 | 30.2k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
496 | 30.2k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
497 | 30.2k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
498 | 30.2k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
499 | 30.2k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
501 | 0 | c0->get_name(), c1->get_name(), name); |
502 | 0 | } |
503 | 30.2k | DCHECK(!(c0_const && c1_const)); |
504 | 30.2k | const ColumnString::Chars* c0_const_chars = nullptr; |
505 | 30.2k | const ColumnString::Chars* c1_const_chars = nullptr; |
506 | 30.2k | ColumnString::Offset c0_const_size = 0; |
507 | 30.2k | ColumnString::Offset c1_const_size = 0; |
508 | | |
509 | 30.2k | if (c0_const) { |
510 | 6 | const ColumnString* c0_const_string = |
511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
512 | | |
513 | 6 | if (c0_const_string) { |
514 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
516 | 6 | } else { |
517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
518 | 0 | c0->get_name(), name); |
519 | 0 | } |
520 | 6 | } |
521 | | |
522 | 30.2k | if (c1_const) { |
523 | 28.6k | const ColumnString* c1_const_string = |
524 | 28.6k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 28.6k | if (c1_const_string) { |
527 | 28.6k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 28.6k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 28.6k | } else { |
530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 0 | c1->get_name(), name); |
532 | 0 | } |
533 | 28.6k | } |
534 | | |
535 | 30.2k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
536 | | |
537 | 30.2k | auto c_res = ColumnUInt8::create(); |
538 | 30.2k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
539 | 30.2k | vec_res.resize(c0->size()); |
540 | | |
541 | 30.2k | if (c0_string && c1_string) { |
542 | 1.59k | StringImpl::string_vector_string_vector( |
543 | 1.59k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 1.59k | c1_string->get_offsets(), vec_res); |
545 | 28.6k | } else if (c0_string && c1_const) { |
546 | 28.6k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 28.6k | *c1_const_chars, c1_const_size, vec_res); |
548 | 28.6k | } else if (c0_const && c1_string) { |
549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
551 | 6 | vec_res); |
552 | 18.4E | } else { |
553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
554 | 18.4E | c0->get_name(), c1->get_name(), name); |
555 | 18.4E | } |
556 | 30.2k | block.replace_by_position(result, std::move(c_res)); |
557 | 30.2k | return Status::OK(); |
558 | 30.2k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 25.5k | const IColumn* c1) const { | 495 | 25.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 25.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 25.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 25.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 25.5k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 25.5k | DCHECK(!(c0_const && c1_const)); | 504 | 25.5k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 25.5k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 25.5k | ColumnString::Offset c0_const_size = 0; | 507 | 25.5k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 25.5k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 25.5k | if (c1_const) { | 523 | 24.5k | const ColumnString* c1_const_string = | 524 | 24.5k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 24.5k | if (c1_const_string) { | 527 | 24.5k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 24.5k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 24.5k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 24.5k | } | 534 | | | 535 | 25.5k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 25.5k | auto c_res = ColumnUInt8::create(); | 538 | 25.5k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 25.5k | vec_res.resize(c0->size()); | 540 | | | 541 | 25.5k | if (c0_string && c1_string) { | 542 | 1.03k | StringImpl::string_vector_string_vector( | 543 | 1.03k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 1.03k | c1_string->get_offsets(), vec_res); | 545 | 24.5k | } else if (c0_string && c1_const) { | 546 | 24.5k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 24.5k | *c1_const_chars, c1_const_size, vec_res); | 548 | 24.5k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 25.5k | block.replace_by_position(result, std::move(c_res)); | 557 | 25.5k | return Status::OK(); | 558 | 25.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 2.44k | const IColumn* c1) const { | 495 | 2.44k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 2.44k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 2.44k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 2.44k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 2.44k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 2.44k | DCHECK(!(c0_const && c1_const)); | 504 | 2.44k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 2.44k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 2.44k | ColumnString::Offset c0_const_size = 0; | 507 | 2.44k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 2.44k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 2.44k | if (c1_const) { | 523 | 2.41k | const ColumnString* c1_const_string = | 524 | 2.41k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 2.41k | if (c1_const_string) { | 527 | 2.41k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 2.41k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 2.41k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 2.41k | } | 534 | | | 535 | 2.44k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 2.44k | auto c_res = ColumnUInt8::create(); | 538 | 2.44k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 2.44k | vec_res.resize(c0->size()); | 540 | | | 541 | 2.44k | if (c0_string && c1_string) { | 542 | 27 | StringImpl::string_vector_string_vector( | 543 | 27 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 27 | c1_string->get_offsets(), vec_res); | 545 | 2.41k | } else if (c0_string && c1_const) { | 546 | 2.41k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 2.41k | *c1_const_chars, c1_const_size, vec_res); | 548 | 2.41k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 2.44k | block.replace_by_position(result, std::move(c_res)); | 557 | 2.44k | return Status::OK(); | 558 | 2.44k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 175 | const IColumn* c1) const { | 495 | 175 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 175 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 175 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 175 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 175 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 175 | DCHECK(!(c0_const && c1_const)); | 504 | 175 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 175 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 175 | ColumnString::Offset c0_const_size = 0; | 507 | 175 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 175 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 175 | if (c1_const) { | 523 | 173 | const ColumnString* c1_const_string = | 524 | 173 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 173 | if (c1_const_string) { | 527 | 173 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 173 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 173 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 173 | } | 534 | | | 535 | 175 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 175 | auto c_res = ColumnUInt8::create(); | 538 | 175 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 175 | vec_res.resize(c0->size()); | 540 | | | 541 | 175 | if (c0_string && c1_string) { | 542 | 2 | StringImpl::string_vector_string_vector( | 543 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 2 | c1_string->get_offsets(), vec_res); | 545 | 173 | } else if (c0_string && c1_const) { | 546 | 173 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 173 | *c1_const_chars, c1_const_size, vec_res); | 548 | 173 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 175 | block.replace_by_position(result, std::move(c_res)); | 557 | 175 | return Status::OK(); | 558 | 175 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 623 | const IColumn* c1) const { | 495 | 623 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 623 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 623 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 623 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 623 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 623 | DCHECK(!(c0_const && c1_const)); | 504 | 623 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 623 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 623 | ColumnString::Offset c0_const_size = 0; | 507 | 623 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 623 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 623 | if (c1_const) { | 523 | 571 | const ColumnString* c1_const_string = | 524 | 571 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 571 | if (c1_const_string) { | 527 | 571 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 571 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 571 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 571 | } | 534 | | | 535 | 623 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 623 | auto c_res = ColumnUInt8::create(); | 538 | 623 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 623 | vec_res.resize(c0->size()); | 540 | | | 541 | 623 | if (c0_string && c1_string) { | 542 | 52 | StringImpl::string_vector_string_vector( | 543 | 52 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 52 | c1_string->get_offsets(), vec_res); | 545 | 571 | } else if (c0_string && c1_const) { | 546 | 571 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 571 | *c1_const_chars, c1_const_size, vec_res); | 548 | 571 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 623 | block.replace_by_position(result, std::move(c_res)); | 557 | 623 | return Status::OK(); | 558 | 623 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 643 | const IColumn* c1) const { | 495 | 643 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 643 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 643 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 643 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 644 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 643 | DCHECK(!(c0_const && c1_const)); | 504 | 643 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 643 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 643 | ColumnString::Offset c0_const_size = 0; | 507 | 643 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 643 | if (c0_const) { | 510 | 6 | const ColumnString* c0_const_string = | 511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | | | 513 | 6 | if (c0_const_string) { | 514 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 6 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 6 | } | 521 | | | 522 | 643 | if (c1_const) { | 523 | 243 | const ColumnString* c1_const_string = | 524 | 243 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 243 | if (c1_const_string) { | 527 | 243 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 243 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 243 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 243 | } | 534 | | | 535 | 643 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 643 | auto c_res = ColumnUInt8::create(); | 538 | 643 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 643 | vec_res.resize(c0->size()); | 540 | | | 541 | 643 | if (c0_string && c1_string) { | 542 | 395 | StringImpl::string_vector_string_vector( | 543 | 395 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 395 | c1_string->get_offsets(), vec_res); | 545 | 395 | } else if (c0_string && c1_const) { | 546 | 243 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 243 | *c1_const_chars, c1_const_size, vec_res); | 548 | 243 | } else if (c0_const && c1_string) { | 549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 6 | vec_res); | 552 | 18.4E | } else { | 553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 18.4E | c0->get_name(), c1->get_name(), name); | 555 | 18.4E | } | 556 | 644 | block.replace_by_position(result, std::move(c_res)); | 557 | 644 | return Status::OK(); | 558 | 643 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 822 | const IColumn* c1) const { | 495 | 822 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 822 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 822 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 822 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 822 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 822 | DCHECK(!(c0_const && c1_const)); | 504 | 822 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 822 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 822 | ColumnString::Offset c0_const_size = 0; | 507 | 822 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 822 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 822 | if (c1_const) { | 523 | 742 | const ColumnString* c1_const_string = | 524 | 742 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 742 | if (c1_const_string) { | 527 | 742 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 742 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 742 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 742 | } | 534 | | | 535 | 822 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 822 | auto c_res = ColumnUInt8::create(); | 538 | 822 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 822 | vec_res.resize(c0->size()); | 540 | | | 541 | 822 | if (c0_string && c1_string) { | 542 | 80 | StringImpl::string_vector_string_vector( | 543 | 80 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 80 | c1_string->get_offsets(), vec_res); | 545 | 742 | } else if (c0_string && c1_const) { | 546 | 742 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 742 | *c1_const_chars, c1_const_size, vec_res); | 548 | 742 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 822 | block.replace_by_position(result, std::move(c_res)); | 557 | 822 | return Status::OK(); | 558 | 822 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 160 | const IColumn* c1) const { |
562 | 160 | bool c0_const = is_column_const(*c0); |
563 | 160 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 160 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 160 | auto c_res = ColumnUInt8::create(); |
568 | 160 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 160 | vec_res.resize(c0->size()); |
570 | | |
571 | 160 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 160 | } else if (c1_const) { |
574 | 151 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 151 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 160 | block.replace_by_position(result, std::move(c_res)); |
580 | 160 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 17 | const IColumn* c1) const { | 562 | 17 | bool c0_const = is_column_const(*c0); | 563 | 17 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 17 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 17 | auto c_res = ColumnUInt8::create(); | 568 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 17 | vec_res.resize(c0->size()); | 570 | | | 571 | 17 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 17 | } else if (c1_const) { | 574 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 13 | } else { | 576 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 4 | } | 578 | | | 579 | 17 | block.replace_by_position(result, std::move(c_res)); | 580 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 8 | const IColumn* c1) const { | 562 | 8 | bool c0_const = is_column_const(*c0); | 563 | 8 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 8 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 8 | auto c_res = ColumnUInt8::create(); | 568 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 8 | vec_res.resize(c0->size()); | 570 | | | 571 | 8 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 8 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 8 | block.replace_by_position(result, std::move(c_res)); | 580 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 9 | const IColumn* c1) const { | 562 | 9 | bool c0_const = is_column_const(*c0); | 563 | 9 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 9 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 9 | auto c_res = ColumnUInt8::create(); | 568 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 9 | vec_res.resize(c0->size()); | 570 | | | 571 | 9 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 9 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 9 | block.replace_by_position(result, std::move(c_res)); | 580 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 66 | const IColumn* c1) const { | 562 | 66 | bool c0_const = is_column_const(*c0); | 563 | 66 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 66 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 66 | auto c_res = ColumnUInt8::create(); | 568 | 66 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 66 | vec_res.resize(c0->size()); | 570 | | | 571 | 66 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 66 | } else if (c1_const) { | 574 | 65 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 65 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 66 | block.replace_by_position(result, std::move(c_res)); | 580 | 66 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 11 | const IColumn* c1) const { | 562 | 11 | bool c0_const = is_column_const(*c0); | 563 | 11 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 11 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 11 | auto c_res = ColumnUInt8::create(); | 568 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 11 | vec_res.resize(c0->size()); | 570 | | | 571 | 11 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 11 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 3 | } | 578 | | | 579 | 11 | block.replace_by_position(result, std::move(c_res)); | 580 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 49 | const IColumn* c1) const { | 562 | 49 | bool c0_const = is_column_const(*c0); | 563 | 49 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 49 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 49 | auto c_res = ColumnUInt8::create(); | 568 | 49 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 49 | vec_res.resize(c0->size()); | 570 | | | 571 | 49 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 49 | } else if (c1_const) { | 574 | 49 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 49 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 49 | block.replace_by_position(result, std::move(c_res)); | 580 | 49 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 160 | const ColumnWithTypeAndName& c1) const { |
584 | 160 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 160 | return Status::OK(); |
586 | 160 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 17 | const ColumnWithTypeAndName& c1) const { | 584 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 17 | return Status::OK(); | 586 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 8 | const ColumnWithTypeAndName& c1) const { | 584 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 8 | return Status::OK(); | 586 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 9 | const ColumnWithTypeAndName& c1) const { | 584 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 9 | return Status::OK(); | 586 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 66 | const ColumnWithTypeAndName& c1) const { | 584 | 66 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 66 | return Status::OK(); | 586 | 66 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 11 | const ColumnWithTypeAndName& c1) const { | 584 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 11 | return Status::OK(); | 586 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 49 | const ColumnWithTypeAndName& c1) const { | 584 | 49 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 49 | return Status::OK(); | 586 | 49 | } |
|
587 | | |
588 | | public: |
589 | 216 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 61 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 35 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
|
590 | | |
591 | 540k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 449k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 2.75k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 42.9k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 14.7k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 4.51k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 26.0k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 33.5k | const VExprSPtrs& arguments) const override { |
595 | 33.5k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 33.5k | DORIS_CHECK(op.has_value()); |
597 | 33.5k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 33.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.28k | const VExprSPtrs& arguments) const override { | 595 | 9.28k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.28k | DORIS_CHECK(op.has_value()); | 597 | 9.28k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.28k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.17k | const VExprSPtrs& arguments) const override { | 595 | 1.17k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.17k | DORIS_CHECK(op.has_value()); | 597 | 1.17k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.17k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 4.44k | const VExprSPtrs& arguments) const override { | 595 | 4.44k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 4.44k | DORIS_CHECK(op.has_value()); | 597 | 4.44k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 4.44k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 6.69k | const VExprSPtrs& arguments) const override { | 595 | 6.69k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 6.69k | DORIS_CHECK(op.has_value()); | 597 | 6.69k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 6.69k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 2.39k | const VExprSPtrs& arguments) const override { | 595 | 2.39k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 2.39k | DORIS_CHECK(op.has_value()); | 597 | 2.39k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 2.39k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.59k | const VExprSPtrs& arguments) const override { | 595 | 9.59k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.59k | DORIS_CHECK(op.has_value()); | 597 | 9.59k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.59k | } |
|
599 | | |
600 | 103k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 103k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 103k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 103k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 40.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 40.7k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 40.7k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 40.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 3.94k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 3.94k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 3.94k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 3.94k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 14.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 14.7k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 14.7k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 14.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 16.3k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 16.3k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 16.3k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 16.3k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 7.93k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 7.93k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 7.93k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 7.93k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 20.0k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 20.0k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 20.0k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 20.0k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 596 | const VExprSPtrs& arguments) const override { |
607 | 596 | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 596 | DORIS_CHECK(op.has_value()); |
609 | 596 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 596 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 596 | const VExprSPtrs& arguments) const override { | 607 | 596 | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 596 | DORIS_CHECK(op.has_value()); | 609 | 596 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 596 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
611 | | |
612 | 10.2k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 10.2k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 10.2k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 10.2k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 6.54k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 6.54k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 6.54k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 6.54k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 695 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 695 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 695 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 695 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 1.72k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 1.72k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 1.72k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 1.72k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 432 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 432 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 432 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 432 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 640 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 640 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 640 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 640 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 244 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 244 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 244 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 244 | } |
|
616 | | |
617 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
618 | 14 | const VExprSPtrs& arguments) const override { |
619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
620 | 14 | DORIS_CHECK(op.has_value()); |
621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
622 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 618 | 14 | const VExprSPtrs& arguments) const override { | 619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); | 620 | 14 | DORIS_CHECK(op.has_value()); | 621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 622 | 14 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
623 | | |
624 | 8.52k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 8.52k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 8.52k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 8.52k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 4.95k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 4.95k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 4.95k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 4.95k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 695 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 695 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 695 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 695 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 1.67k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 1.67k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 1.67k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 1.67k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 432 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 432 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 432 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 432 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 518 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 518 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 518 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 518 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 244 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 244 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 244 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 244 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 540k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 540k | return std::make_shared<DataTypeUInt8>(); |
632 | 540k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 449k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 449k | return std::make_shared<DataTypeUInt8>(); | 632 | 449k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 2.75k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 2.75k | return std::make_shared<DataTypeUInt8>(); | 632 | 2.75k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 42.9k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 42.9k | return std::make_shared<DataTypeUInt8>(); | 632 | 42.9k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 14.7k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 14.7k | return std::make_shared<DataTypeUInt8>(); | 632 | 14.7k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 4.51k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 4.51k | return std::make_shared<DataTypeUInt8>(); | 632 | 4.51k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 26.1k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 26.1k | return std::make_shared<DataTypeUInt8>(); | 632 | 26.1k | } |
|
633 | | |
634 | | Status evaluate_inverted_index( |
635 | | const ColumnsWithTypeAndName& arguments, |
636 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
637 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
638 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
639 | 1.37k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.37k | DCHECK(arguments.size() == 1); |
641 | 1.37k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.37k | DCHECK(iterators.size() == 1); |
643 | 1.37k | auto* iter = iterators[0]; |
644 | 1.37k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.37k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.37k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 310 | return Status::OK(); |
650 | 310 | } |
651 | 1.06k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.06k | std::string_view name_view(name); |
653 | 1.06k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 736 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 736 | } else if (name_view == NameLess::name) { |
656 | 77 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 250 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 169 | } else if (name_view == NameGreater::name) { |
660 | 72 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 97 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 95 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 95 | } else { |
664 | 2 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 2 | } |
666 | | |
667 | 1.06k | if (segment_v2::is_range_query(query_type) && |
668 | 1.06k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 928 | Field param_value; |
673 | 928 | arguments[0].column->get(0, param_value); |
674 | 928 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 926 | segment_v2::InvertedIndexParam param; |
678 | 926 | param.column_name = data_type_with_name.first; |
679 | 926 | param.column_type = data_type_with_name.second; |
680 | 926 | param.query_value = param_value; |
681 | 926 | param.query_type = query_type; |
682 | 926 | param.num_rows = num_rows; |
683 | 926 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 926 | param.analyzer_ctx = analyzer_ctx; |
685 | 926 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 759 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 762 | if (iter->has_null()) { |
688 | 762 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 762 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 762 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 762 | } |
692 | 759 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 759 | bitmap_result = result; |
694 | 759 | bitmap_result.mask_out_null(); |
695 | | |
696 | 759 | if (name_view == NameNotEquals::name) { |
697 | 58 | roaring::Roaring full_result; |
698 | 58 | full_result.addRange(0, num_rows); |
699 | 58 | bitmap_result.op_not(&full_result); |
700 | 58 | } |
701 | | |
702 | 759 | return Status::OK(); |
703 | 759 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 713 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 713 | DCHECK(arguments.size() == 1); | 641 | 713 | DCHECK(data_type_with_names.size() == 1); | 642 | 713 | DCHECK(iterators.size() == 1); | 643 | 713 | auto* iter = iterators[0]; | 644 | 713 | auto data_type_with_name = data_type_with_names[0]; | 645 | 713 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 713 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 42 | return Status::OK(); | 650 | 42 | } | 651 | 671 | segment_v2::InvertedIndexQueryType query_type; | 652 | 671 | std::string_view name_view(name); | 653 | 671 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 670 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 670 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 1 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 1 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 1 | } else { | 664 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 1 | } | 666 | | | 667 | 670 | if (segment_v2::is_range_query(query_type) && | 668 | 670 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 670 | Field param_value; | 673 | 670 | arguments[0].column->get(0, param_value); | 674 | 670 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 668 | segment_v2::InvertedIndexParam param; | 678 | 668 | param.column_name = data_type_with_name.first; | 679 | 668 | param.column_type = data_type_with_name.second; | 680 | 668 | param.query_value = param_value; | 681 | 668 | param.query_type = query_type; | 682 | 668 | param.num_rows = num_rows; | 683 | 668 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 668 | param.analyzer_ctx = analyzer_ctx; | 685 | 668 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 610 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 612 | if (iter->has_null()) { | 688 | 612 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 612 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 612 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 612 | } | 692 | 610 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 610 | bitmap_result = result; | 694 | 610 | bitmap_result.mask_out_null(); | 695 | | | 696 | 610 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 610 | return Status::OK(); | 703 | 610 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 71 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 71 | DCHECK(arguments.size() == 1); | 641 | 71 | DCHECK(data_type_with_names.size() == 1); | 642 | 71 | DCHECK(iterators.size() == 1); | 643 | 71 | auto* iter = iterators[0]; | 644 | 71 | auto data_type_with_name = data_type_with_names[0]; | 645 | 71 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 71 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 6 | return Status::OK(); | 650 | 6 | } | 651 | 65 | segment_v2::InvertedIndexQueryType query_type; | 652 | 65 | std::string_view name_view(name); | 653 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 18.4E | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 18.4E | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 66 | if (segment_v2::is_range_query(query_type) && | 668 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 66 | Field param_value; | 673 | 66 | arguments[0].column->get(0, param_value); | 674 | 66 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 66 | segment_v2::InvertedIndexParam param; | 678 | 66 | param.column_name = data_type_with_name.first; | 679 | 66 | param.column_type = data_type_with_name.second; | 680 | 66 | param.query_value = param_value; | 681 | 66 | param.query_type = query_type; | 682 | 66 | param.num_rows = num_rows; | 683 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 66 | param.analyzer_ctx = analyzer_ctx; | 685 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 59 | if (iter->has_null()) { | 688 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 58 | } | 692 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 59 | bitmap_result = result; | 694 | 59 | bitmap_result.mask_out_null(); | 695 | | | 696 | 59 | if (name_view == NameNotEquals::name) { | 697 | 58 | roaring::Roaring full_result; | 698 | 58 | full_result.addRange(0, num_rows); | 699 | 58 | bitmap_result.op_not(&full_result); | 700 | 58 | } | 701 | | | 702 | 59 | return Status::OK(); | 703 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 112 | DCHECK(arguments.size() == 1); | 641 | 112 | DCHECK(data_type_with_names.size() == 1); | 642 | 112 | DCHECK(iterators.size() == 1); | 643 | 112 | auto* iter = iterators[0]; | 644 | 112 | auto data_type_with_name = data_type_with_names[0]; | 645 | 112 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 39 | return Status::OK(); | 650 | 39 | } | 651 | 73 | segment_v2::InvertedIndexQueryType query_type; | 652 | 73 | std::string_view name_view(name); | 653 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 73 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 73 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 73 | } else if (name_view == NameGreater::name) { | 660 | 72 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 72 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 1 | } else { | 664 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 1 | } | 666 | | | 667 | 72 | if (segment_v2::is_range_query(query_type) && | 668 | 72 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 17 | return Status::OK(); | 671 | 17 | } | 672 | 55 | Field param_value; | 673 | 55 | arguments[0].column->get(0, param_value); | 674 | 55 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 55 | segment_v2::InvertedIndexParam param; | 678 | 55 | param.column_name = data_type_with_name.first; | 679 | 55 | param.column_type = data_type_with_name.second; | 680 | 55 | param.query_value = param_value; | 681 | 55 | param.query_type = query_type; | 682 | 55 | param.num_rows = num_rows; | 683 | 55 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 55 | param.analyzer_ctx = analyzer_ctx; | 685 | 55 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 36 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 37 | if (iter->has_null()) { | 688 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 37 | } | 692 | 36 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 36 | bitmap_result = result; | 694 | 36 | bitmap_result.mask_out_null(); | 695 | | | 696 | 36 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 36 | return Status::OK(); | 703 | 36 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 181 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 181 | DCHECK(arguments.size() == 1); | 641 | 181 | DCHECK(data_type_with_names.size() == 1); | 642 | 181 | DCHECK(iterators.size() == 1); | 643 | 181 | auto* iter = iterators[0]; | 644 | 181 | auto data_type_with_name = data_type_with_names[0]; | 645 | 181 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 181 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 86 | return Status::OK(); | 650 | 86 | } | 651 | 95 | segment_v2::InvertedIndexQueryType query_type; | 652 | 95 | std::string_view name_view(name); | 653 | 95 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 95 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 95 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 95 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 95 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 95 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 95 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 95 | if (segment_v2::is_range_query(query_type) && | 668 | 95 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 47 | return Status::OK(); | 671 | 47 | } | 672 | 48 | Field param_value; | 673 | 48 | arguments[0].column->get(0, param_value); | 674 | 48 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 48 | segment_v2::InvertedIndexParam param; | 678 | 48 | param.column_name = data_type_with_name.first; | 679 | 48 | param.column_type = data_type_with_name.second; | 680 | 48 | param.query_value = param_value; | 681 | 48 | param.query_type = query_type; | 682 | 48 | param.num_rows = num_rows; | 683 | 48 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 48 | param.analyzer_ctx = analyzer_ctx; | 685 | 48 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 7 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 7 | if (iter->has_null()) { | 688 | 7 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 7 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 7 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 7 | } | 692 | 7 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 7 | bitmap_result = result; | 694 | 7 | bitmap_result.mask_out_null(); | 695 | | | 696 | 7 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 7 | return Status::OK(); | 703 | 7 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 121 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 121 | DCHECK(arguments.size() == 1); | 641 | 121 | DCHECK(data_type_with_names.size() == 1); | 642 | 121 | DCHECK(iterators.size() == 1); | 643 | 121 | auto* iter = iterators[0]; | 644 | 121 | auto data_type_with_name = data_type_with_names[0]; | 645 | 121 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 121 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 43 | return Status::OK(); | 650 | 43 | } | 651 | 78 | segment_v2::InvertedIndexQueryType query_type; | 652 | 78 | std::string_view name_view(name); | 653 | 78 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 78 | } else if (name_view == NameLess::name) { | 656 | 77 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 77 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 1 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 1 | } else { | 664 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 1 | } | 666 | | | 667 | 77 | if (segment_v2::is_range_query(query_type) && | 668 | 77 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 18 | return Status::OK(); | 671 | 18 | } | 672 | 59 | Field param_value; | 673 | 59 | arguments[0].column->get(0, param_value); | 674 | 59 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 59 | segment_v2::InvertedIndexParam param; | 678 | 59 | param.column_name = data_type_with_name.first; | 679 | 59 | param.column_type = data_type_with_name.second; | 680 | 59 | param.query_value = param_value; | 681 | 59 | param.query_type = query_type; | 682 | 59 | param.num_rows = num_rows; | 683 | 59 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 59 | param.analyzer_ctx = analyzer_ctx; | 685 | 59 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 38 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 39 | if (iter->has_null()) { | 688 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 39 | } | 692 | 38 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 38 | bitmap_result = result; | 694 | 38 | bitmap_result.mask_out_null(); | 695 | | | 696 | 38 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 38 | return Status::OK(); | 703 | 38 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 175 | DCHECK(arguments.size() == 1); | 641 | 175 | DCHECK(data_type_with_names.size() == 1); | 642 | 175 | DCHECK(iterators.size() == 1); | 643 | 175 | auto* iter = iterators[0]; | 644 | 175 | auto data_type_with_name = data_type_with_names[0]; | 645 | 175 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 94 | return Status::OK(); | 650 | 94 | } | 651 | 81 | segment_v2::InvertedIndexQueryType query_type; | 652 | 81 | std::string_view name_view(name); | 653 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 81 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 81 | } else if (name_view == NameLessOrEquals::name) { | 658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 81 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 81 | if (segment_v2::is_range_query(query_type) && | 668 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 51 | return Status::OK(); | 671 | 51 | } | 672 | 30 | Field param_value; | 673 | 30 | arguments[0].column->get(0, param_value); | 674 | 30 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 30 | segment_v2::InvertedIndexParam param; | 678 | 30 | param.column_name = data_type_with_name.first; | 679 | 30 | param.column_type = data_type_with_name.second; | 680 | 30 | param.query_value = param_value; | 681 | 30 | param.query_type = query_type; | 682 | 30 | param.num_rows = num_rows; | 683 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 30 | param.analyzer_ctx = analyzer_ctx; | 685 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 9 | if (iter->has_null()) { | 688 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 9 | } | 692 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 9 | bitmap_result = result; | 694 | 9 | bitmap_result.mask_out_null(); | 695 | | | 696 | 9 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 9 | return Status::OK(); | 703 | 9 | } |
|
704 | | |
705 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
706 | 249k | uint32_t result, size_t input_rows_count) const override { |
707 | 249k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 249k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 249k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 249k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 249k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 249k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 249k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 249k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
717 | | |
718 | | /// The case when arguments are the same (tautological comparison). Return constant. |
719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
721 | 249k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 249k | col_left_untyped == col_right_untyped) { |
723 | | /// Always true: =, <=, >= |
724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
728 | 0 | block.get_by_position(result).column = |
729 | 0 | DataTypeUInt8() |
730 | 0 | .create_column_const(input_rows_count, |
731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
732 | 0 | ->convert_to_full_column_if_const(); |
733 | 0 | return Status::OK(); |
734 | 0 | } else { |
735 | 0 | block.get_by_position(result).column = |
736 | 0 | DataTypeUInt8() |
737 | 0 | .create_column_const(input_rows_count, |
738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
739 | 0 | ->convert_to_full_column_if_const(); |
740 | 0 | return Status::OK(); |
741 | 0 | } |
742 | 0 | } |
743 | | |
744 | 444k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 444k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 444k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 137k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 137k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 137k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 14.5k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 14.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 14.5k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 107k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 107k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 107k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 43.3k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 43.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 43.3k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 24.2k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 24.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 24.2k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 117k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 117k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 117k | }; |
|
747 | | |
748 | 249k | if (can_compare(left_type->get_primitive_type()) && |
749 | 249k | can_compare(right_type->get_primitive_type())) { |
750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
751 | 194k | if (!left_type->equals_ignore_precision(*right_type)) { |
752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
753 | 0 | get_name(), left_type->get_name(), |
754 | 0 | right_type->get_name()); |
755 | 0 | } |
756 | 194k | } |
757 | | |
758 | 249k | auto compare_type = left_type->get_primitive_type(); |
759 | 249k | switch (compare_type) { |
760 | 1.97k | case TYPE_BOOLEAN: |
761 | 1.97k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 36.1k | case TYPE_DATEV2: |
763 | 36.1k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 2.57k | case TYPE_DATETIMEV2: |
765 | 2.57k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 7 | case TYPE_TIMESTAMPTZ: |
767 | 7 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 10.7k | case TYPE_TINYINT: |
769 | 10.7k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 3.93k | case TYPE_SMALLINT: |
771 | 3.93k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 84.0k | case TYPE_INT: |
773 | 84.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 49.2k | case TYPE_BIGINT: |
775 | 49.2k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 788 | case TYPE_LARGEINT: |
777 | 788 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 63 | case TYPE_IPV4: |
779 | 63 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
780 | 37 | case TYPE_IPV6: |
781 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
782 | 903 | case TYPE_FLOAT: |
783 | 903 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 4.05k | case TYPE_DOUBLE: |
785 | 4.05k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
786 | 4 | case TYPE_TIMEV2: |
787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
788 | 0 | case TYPE_DECIMALV2: |
789 | 468 | case TYPE_DECIMAL32: |
790 | 20.4k | case TYPE_DECIMAL64: |
791 | 24.8k | case TYPE_DECIMAL128I: |
792 | 24.9k | case TYPE_DECIMAL256: |
793 | 24.9k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 24.9k | col_with_type_and_name_right); |
795 | 958 | case TYPE_CHAR: |
796 | 9.79k | case TYPE_VARCHAR: |
797 | 30.2k | case TYPE_STRING: |
798 | 30.2k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 160 | default: |
800 | 160 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 160 | col_with_type_and_name_right); |
802 | 249k | } |
803 | 0 | return Status::OK(); |
804 | 249k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 82.3k | uint32_t result, size_t input_rows_count) const override { | 707 | 82.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 82.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 82.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 82.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 82.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 82.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 82.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 82.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 82.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 82.3k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 82.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 82.3k | }; | 747 | | | 748 | 82.3k | if (can_compare(left_type->get_primitive_type()) && | 749 | 82.3k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 55.0k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 55.0k | } | 757 | | | 758 | 82.3k | auto compare_type = left_type->get_primitive_type(); | 759 | 82.3k | switch (compare_type) { | 760 | 1.64k | case TYPE_BOOLEAN: | 761 | 1.64k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.48k | case TYPE_DATEV2: | 763 | 1.48k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 609 | case TYPE_DATETIMEV2: | 765 | 609 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 6.95k | case TYPE_TINYINT: | 769 | 6.95k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.59k | case TYPE_SMALLINT: | 771 | 1.59k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 12.3k | case TYPE_INT: | 773 | 12.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 29.2k | case TYPE_BIGINT: | 775 | 29.2k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 141 | case TYPE_LARGEINT: | 777 | 141 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 20 | case TYPE_IPV4: | 779 | 20 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 19 | case TYPE_IPV6: | 781 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 86 | case TYPE_FLOAT: | 783 | 86 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 956 | case TYPE_DOUBLE: | 785 | 956 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 4 | case TYPE_TIMEV2: | 787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 219 | case TYPE_DECIMAL32: | 790 | 477 | case TYPE_DECIMAL64: | 791 | 1.63k | case TYPE_DECIMAL128I: | 792 | 1.66k | case TYPE_DECIMAL256: | 793 | 1.66k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.66k | col_with_type_and_name_right); | 795 | 634 | case TYPE_CHAR: | 796 | 8.38k | case TYPE_VARCHAR: | 797 | 25.5k | case TYPE_STRING: | 798 | 25.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 17 | default: | 800 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 17 | col_with_type_and_name_right); | 802 | 82.3k | } | 803 | 0 | return Status::OK(); | 804 | 82.3k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 8.69k | uint32_t result, size_t input_rows_count) const override { | 707 | 8.69k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 8.69k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 8.69k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 8.69k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 8.69k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 8.69k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 8.69k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 8.69k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 8.69k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 8.69k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 8.69k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 8.69k | }; | 747 | | | 748 | 8.69k | if (can_compare(left_type->get_primitive_type()) && | 749 | 8.69k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 5.82k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 5.82k | } | 757 | | | 758 | 8.69k | auto compare_type = left_type->get_primitive_type(); | 759 | 8.69k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 78 | case TYPE_DATEV2: | 763 | 78 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 4 | case TYPE_DATETIMEV2: | 765 | 4 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 0 | case TYPE_TIMESTAMPTZ: | 767 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 100 | case TYPE_TINYINT: | 769 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 26 | case TYPE_SMALLINT: | 771 | 26 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.79k | case TYPE_INT: | 773 | 2.79k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 2.71k | case TYPE_BIGINT: | 775 | 2.71k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 0 | case TYPE_LARGEINT: | 777 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 0 | case TYPE_IPV4: | 779 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 48 | case TYPE_FLOAT: | 783 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 60 | case TYPE_DOUBLE: | 785 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 0 | case TYPE_DECIMAL32: | 790 | 66 | case TYPE_DECIMAL64: | 791 | 390 | case TYPE_DECIMAL128I: | 792 | 420 | case TYPE_DECIMAL256: | 793 | 420 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 420 | col_with_type_and_name_right); | 795 | 9 | case TYPE_CHAR: | 796 | 286 | case TYPE_VARCHAR: | 797 | 2.44k | case TYPE_STRING: | 798 | 2.44k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 8 | default: | 800 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 8 | col_with_type_and_name_right); | 802 | 8.69k | } | 803 | 0 | return Status::OK(); | 804 | 8.69k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 63.0k | uint32_t result, size_t input_rows_count) const override { | 707 | 63.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 63.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 63.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 63.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 63.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 63.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 63.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 63.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 63.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 63.0k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 63.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 63.0k | }; | 747 | | | 748 | 63.0k | if (can_compare(left_type->get_primitive_type()) && | 749 | 63.0k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 44.5k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 44.5k | } | 757 | | | 758 | 63.0k | auto compare_type = left_type->get_primitive_type(); | 759 | 63.0k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.13k | case TYPE_DATEV2: | 763 | 1.13k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 122 | case TYPE_DATETIMEV2: | 765 | 122 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 1 | case TYPE_TIMESTAMPTZ: | 767 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 1.38k | case TYPE_TINYINT: | 769 | 1.38k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.79k | case TYPE_SMALLINT: | 771 | 1.79k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 23.2k | case TYPE_INT: | 773 | 23.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 13.9k | case TYPE_BIGINT: | 775 | 13.9k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 249 | case TYPE_LARGEINT: | 777 | 249 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 4 | case TYPE_IPV4: | 779 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 236 | case TYPE_FLOAT: | 783 | 236 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 2.39k | case TYPE_DOUBLE: | 785 | 2.39k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 46 | case TYPE_DECIMAL32: | 790 | 16.9k | case TYPE_DECIMAL64: | 791 | 18.3k | case TYPE_DECIMAL128I: | 792 | 18.3k | case TYPE_DECIMAL256: | 793 | 18.3k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 18.3k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 175 | case TYPE_STRING: | 798 | 175 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 9 | default: | 800 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 9 | col_with_type_and_name_right); | 802 | 63.0k | } | 803 | 0 | return Status::OK(); | 804 | 63.0k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 22.1k | uint32_t result, size_t input_rows_count) const override { | 707 | 22.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 22.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 22.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 22.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 22.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 22.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 22.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 22.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 22.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 22.1k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 22.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 22.1k | }; | 747 | | | 748 | 22.1k | if (can_compare(left_type->get_primitive_type()) && | 749 | 22.1k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 21.1k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 21.1k | } | 757 | | | 758 | 22.1k | auto compare_type = left_type->get_primitive_type(); | 759 | 22.1k | switch (compare_type) { | 760 | 111 | case TYPE_BOOLEAN: | 761 | 111 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.36k | case TYPE_DATEV2: | 763 | 2.36k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 772 | case TYPE_DATETIMEV2: | 765 | 772 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 1 | case TYPE_TIMESTAMPTZ: | 767 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 53 | case TYPE_TINYINT: | 769 | 53 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 54 | case TYPE_SMALLINT: | 771 | 54 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 16.9k | case TYPE_INT: | 773 | 16.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 480 | case TYPE_BIGINT: | 775 | 480 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 53 | case TYPE_LARGEINT: | 777 | 53 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 11 | case TYPE_IPV4: | 779 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 184 | case TYPE_FLOAT: | 783 | 184 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 140 | case TYPE_DOUBLE: | 785 | 140 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 9 | case TYPE_DECIMAL32: | 790 | 274 | case TYPE_DECIMAL64: | 791 | 328 | case TYPE_DECIMAL128I: | 792 | 349 | case TYPE_DECIMAL256: | 793 | 349 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 349 | col_with_type_and_name_right); | 795 | 36 | case TYPE_CHAR: | 796 | 286 | case TYPE_VARCHAR: | 797 | 623 | case TYPE_STRING: | 798 | 623 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 66 | default: | 800 | 66 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 66 | col_with_type_and_name_right); | 802 | 22.1k | } | 803 | 0 | return Status::OK(); | 804 | 22.1k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 12.9k | uint32_t result, size_t input_rows_count) const override { | 707 | 12.9k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 12.9k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 12.9k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 12.9k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 12.9k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 12.9k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 12.9k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 12.9k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 12.9k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 12.9k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 12.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 12.9k | }; | 747 | | | 748 | 12.9k | if (can_compare(left_type->get_primitive_type()) && | 749 | 12.9k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 11.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 11.2k | } | 757 | | | 758 | 12.9k | auto compare_type = left_type->get_primitive_type(); | 759 | 12.9k | switch (compare_type) { | 760 | 101 | case TYPE_BOOLEAN: | 761 | 101 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.14k | case TYPE_DATEV2: | 763 | 2.14k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 653 | case TYPE_DATETIMEV2: | 765 | 653 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.14k | case TYPE_TINYINT: | 769 | 2.14k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 383 | case TYPE_SMALLINT: | 771 | 383 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 3.31k | case TYPE_INT: | 773 | 3.31k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.70k | case TYPE_BIGINT: | 775 | 1.70k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 276 | case TYPE_LARGEINT: | 777 | 276 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 16 | case TYPE_IPV6: | 781 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 169 | case TYPE_FLOAT: | 783 | 169 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 364 | case TYPE_DOUBLE: | 785 | 364 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 190 | case TYPE_DECIMAL32: | 790 | 419 | case TYPE_DECIMAL64: | 791 | 1.01k | case TYPE_DECIMAL128I: | 792 | 1.01k | case TYPE_DECIMAL256: | 793 | 1.01k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.01k | col_with_type_and_name_right); | 795 | 172 | case TYPE_CHAR: | 796 | 343 | case TYPE_VARCHAR: | 797 | 643 | case TYPE_STRING: | 798 | 643 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 11 | default: | 800 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 11 | col_with_type_and_name_right); | 802 | 12.9k | } | 803 | 0 | return Status::OK(); | 804 | 12.9k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 60.7k | uint32_t result, size_t input_rows_count) const override { | 707 | 60.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 60.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 60.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 60.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 60.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 60.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 60.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 60.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 60.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 60.7k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 60.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 60.7k | }; | 747 | | | 748 | 60.7k | if (can_compare(left_type->get_primitive_type()) && | 749 | 60.7k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 56.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 56.7k | } | 757 | | | 758 | 60.7k | auto compare_type = left_type->get_primitive_type(); | 759 | 60.7k | switch (compare_type) { | 760 | 119 | case TYPE_BOOLEAN: | 761 | 119 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 28.9k | case TYPE_DATEV2: | 763 | 28.9k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 419 | case TYPE_DATETIMEV2: | 765 | 419 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 1 | case TYPE_TIMESTAMPTZ: | 767 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 67 | case TYPE_TINYINT: | 769 | 67 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 83 | case TYPE_SMALLINT: | 771 | 83 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 25.4k | case TYPE_INT: | 773 | 25.4k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.22k | case TYPE_BIGINT: | 775 | 1.22k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 69 | case TYPE_LARGEINT: | 777 | 69 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 10 | case TYPE_IPV4: | 779 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 180 | case TYPE_FLOAT: | 783 | 180 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 144 | case TYPE_DOUBLE: | 785 | 144 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 4 | case TYPE_DECIMAL32: | 790 | 2.17k | case TYPE_DECIMAL64: | 791 | 3.13k | case TYPE_DECIMAL128I: | 792 | 3.14k | case TYPE_DECIMAL256: | 793 | 3.14k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 3.14k | col_with_type_and_name_right); | 795 | 93 | case TYPE_CHAR: | 796 | 419 | case TYPE_VARCHAR: | 797 | 822 | case TYPE_STRING: | 798 | 822 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 49 | default: | 800 | 49 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 49 | col_with_type_and_name_right); | 802 | 60.7k | } | 803 | 0 | return Status::OK(); | 804 | 60.7k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |