be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 11.4k | PaddedPODArray<UInt8>& c) { |
72 | 11.4k | size_t size = a.size(); |
73 | 11.4k | const A* __restrict a_pos = a.data(); |
74 | 11.4k | const B* __restrict b_pos = b.data(); |
75 | 11.4k | UInt8* __restrict c_pos = c.data(); |
76 | 11.4k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 4.80M | while (a_pos < a_end) { |
79 | 4.79M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 4.79M | ++a_pos; |
81 | 4.79M | ++b_pos; |
82 | 4.79M | ++c_pos; |
83 | 4.79M | } |
84 | 11.4k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 76 | PaddedPODArray<UInt8>& c) { | 72 | 76 | size_t size = a.size(); | 73 | 76 | const A* __restrict a_pos = a.data(); | 74 | 76 | const B* __restrict b_pos = b.data(); | 75 | 76 | UInt8* __restrict c_pos = c.data(); | 76 | 76 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 152 | while (a_pos < a_end) { | 79 | 76 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 76 | ++a_pos; | 81 | 76 | ++b_pos; | 82 | 76 | ++c_pos; | 83 | 76 | } | 84 | 76 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 731 | PaddedPODArray<UInt8>& c) { | 72 | 731 | size_t size = a.size(); | 73 | 731 | const A* __restrict a_pos = a.data(); | 74 | 731 | const B* __restrict b_pos = b.data(); | 75 | 731 | UInt8* __restrict c_pos = c.data(); | 76 | 731 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.31k | while (a_pos < a_end) { | 79 | 1.58k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.58k | ++a_pos; | 81 | 1.58k | ++b_pos; | 82 | 1.58k | ++c_pos; | 83 | 1.58k | } | 84 | 731 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 408 | PaddedPODArray<UInt8>& c) { | 72 | 408 | size_t size = a.size(); | 73 | 408 | const A* __restrict a_pos = a.data(); | 74 | 408 | const B* __restrict b_pos = b.data(); | 75 | 408 | UInt8* __restrict c_pos = c.data(); | 76 | 408 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 834 | while (a_pos < a_end) { | 79 | 426 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 426 | ++a_pos; | 81 | 426 | ++b_pos; | 82 | 426 | ++c_pos; | 83 | 426 | } | 84 | 408 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 13 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 177 | PaddedPODArray<UInt8>& c) { | 72 | 177 | size_t size = a.size(); | 73 | 177 | const A* __restrict a_pos = a.data(); | 74 | 177 | const B* __restrict b_pos = b.data(); | 75 | 177 | UInt8* __restrict c_pos = c.data(); | 76 | 177 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 496 | while (a_pos < a_end) { | 79 | 319 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 319 | ++a_pos; | 81 | 319 | ++b_pos; | 82 | 319 | ++c_pos; | 83 | 319 | } | 84 | 177 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 98 | PaddedPODArray<UInt8>& c) { | 72 | 98 | size_t size = a.size(); | 73 | 98 | const A* __restrict a_pos = a.data(); | 74 | 98 | const B* __restrict b_pos = b.data(); | 75 | 98 | UInt8* __restrict c_pos = c.data(); | 76 | 98 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 196 | while (a_pos < a_end) { | 79 | 98 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 98 | ++a_pos; | 81 | 98 | ++b_pos; | 82 | 98 | ++c_pos; | 83 | 98 | } | 84 | 98 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.03k | PaddedPODArray<UInt8>& c) { | 72 | 1.03k | size_t size = a.size(); | 73 | 1.03k | const A* __restrict a_pos = a.data(); | 74 | 1.03k | const B* __restrict b_pos = b.data(); | 75 | 1.03k | UInt8* __restrict c_pos = c.data(); | 76 | 1.03k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.40k | while (a_pos < a_end) { | 79 | 2.36k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.36k | ++a_pos; | 81 | 2.36k | ++b_pos; | 82 | 2.36k | ++c_pos; | 83 | 2.36k | } | 84 | 1.03k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 273 | PaddedPODArray<UInt8>& c) { | 72 | 273 | size_t size = a.size(); | 73 | 273 | const A* __restrict a_pos = a.data(); | 74 | 273 | const B* __restrict b_pos = b.data(); | 75 | 273 | UInt8* __restrict c_pos = c.data(); | 76 | 273 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.79k | 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 | 273 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 86 | PaddedPODArray<UInt8>& c) { | 72 | 86 | size_t size = a.size(); | 73 | 86 | const A* __restrict a_pos = a.data(); | 74 | 86 | const B* __restrict b_pos = b.data(); | 75 | 86 | UInt8* __restrict c_pos = c.data(); | 76 | 86 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 172 | while (a_pos < a_end) { | 79 | 86 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 86 | ++a_pos; | 81 | 86 | ++b_pos; | 82 | 86 | ++c_pos; | 83 | 86 | } | 84 | 86 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 24 | PaddedPODArray<UInt8>& c) { | 72 | 24 | size_t size = a.size(); | 73 | 24 | const A* __restrict a_pos = a.data(); | 74 | 24 | const B* __restrict b_pos = b.data(); | 75 | 24 | UInt8* __restrict c_pos = c.data(); | 76 | 24 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 48 | while (a_pos < a_end) { | 79 | 24 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 24 | ++a_pos; | 81 | 24 | ++b_pos; | 82 | 24 | ++c_pos; | 83 | 24 | } | 84 | 24 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 106 | PaddedPODArray<UInt8>& c) { | 72 | 106 | size_t size = a.size(); | 73 | 106 | const A* __restrict a_pos = a.data(); | 74 | 106 | const B* __restrict b_pos = b.data(); | 75 | 106 | UInt8* __restrict c_pos = c.data(); | 76 | 106 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 231 | while (a_pos < a_end) { | 79 | 125 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 125 | ++a_pos; | 81 | 125 | ++b_pos; | 82 | 125 | ++c_pos; | 83 | 125 | } | 84 | 106 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 109 | PaddedPODArray<UInt8>& c) { | 72 | 109 | size_t size = a.size(); | 73 | 109 | const A* __restrict a_pos = a.data(); | 74 | 109 | const B* __restrict b_pos = b.data(); | 75 | 109 | UInt8* __restrict c_pos = c.data(); | 76 | 109 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 239 | while (a_pos < a_end) { | 79 | 130 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 130 | ++a_pos; | 81 | 130 | ++b_pos; | 82 | 130 | ++c_pos; | 83 | 130 | } | 84 | 109 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 47 | PaddedPODArray<UInt8>& c) { | 72 | 47 | size_t size = a.size(); | 73 | 47 | const A* __restrict a_pos = a.data(); | 74 | 47 | const B* __restrict b_pos = b.data(); | 75 | 47 | UInt8* __restrict c_pos = c.data(); | 76 | 47 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 77 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 77 | ++a_pos; | 81 | 77 | ++b_pos; | 82 | 77 | ++c_pos; | 83 | 77 | } | 84 | 47 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 2.11k | PaddedPODArray<UInt8>& c) { | 72 | 2.11k | size_t size = a.size(); | 73 | 2.11k | const A* __restrict a_pos = a.data(); | 74 | 2.11k | const B* __restrict b_pos = b.data(); | 75 | 2.11k | UInt8* __restrict c_pos = c.data(); | 76 | 2.11k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 299k | while (a_pos < a_end) { | 79 | 297k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 297k | ++a_pos; | 81 | 297k | ++b_pos; | 82 | 297k | ++c_pos; | 83 | 297k | } | 84 | 2.11k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 327 | PaddedPODArray<UInt8>& c) { | 72 | 327 | size_t size = a.size(); | 73 | 327 | const A* __restrict a_pos = a.data(); | 74 | 327 | const B* __restrict b_pos = b.data(); | 75 | 327 | UInt8* __restrict c_pos = c.data(); | 76 | 327 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.19k | while (a_pos < a_end) { | 79 | 5.86k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.86k | ++a_pos; | 81 | 5.86k | ++b_pos; | 82 | 5.86k | ++c_pos; | 83 | 5.86k | } | 84 | 327 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.04k | PaddedPODArray<UInt8>& c) { | 72 | 1.04k | size_t size = a.size(); | 73 | 1.04k | const A* __restrict a_pos = a.data(); | 74 | 1.04k | const B* __restrict b_pos = b.data(); | 75 | 1.04k | UInt8* __restrict c_pos = c.data(); | 76 | 1.04k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.66M | while (a_pos < a_end) { | 79 | 2.66M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.66M | ++a_pos; | 81 | 2.66M | ++b_pos; | 82 | 2.66M | ++c_pos; | 83 | 2.66M | } | 84 | 1.04k | } |
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 | 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 | 11 | 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 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 38 | PaddedPODArray<UInt8>& c) { | 72 | 38 | size_t size = a.size(); | 73 | 38 | const A* __restrict a_pos = a.data(); | 74 | 38 | const B* __restrict b_pos = b.data(); | 75 | 38 | UInt8* __restrict c_pos = c.data(); | 76 | 38 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 322 | 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 | 38 | } |
_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 | 79 | PaddedPODArray<UInt8>& c) { | 72 | 79 | size_t size = a.size(); | 73 | 79 | const A* __restrict a_pos = a.data(); | 74 | 79 | const B* __restrict b_pos = b.data(); | 75 | 79 | UInt8* __restrict c_pos = c.data(); | 76 | 79 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 331 | while (a_pos < a_end) { | 79 | 252 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 252 | ++a_pos; | 81 | 252 | ++b_pos; | 82 | 252 | ++c_pos; | 83 | 252 | } | 84 | 79 | } |
_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 | 583 | while (a_pos < a_end) { | 79 | 519 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 519 | ++a_pos; | 81 | 519 | ++b_pos; | 82 | 519 | ++c_pos; | 83 | 519 | } | 84 | 64 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 9 | while (a_pos < a_end) { | 79 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6 | ++a_pos; | 81 | 6 | ++b_pos; | 82 | 6 | ++c_pos; | 83 | 6 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 25 | PaddedPODArray<UInt8>& c) { | 72 | 25 | size_t size = a.size(); | 73 | 25 | const A* __restrict a_pos = a.data(); | 74 | 25 | const B* __restrict b_pos = b.data(); | 75 | 25 | UInt8* __restrict c_pos = c.data(); | 76 | 25 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 95 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 25 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | 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 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_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 | 62 | while (a_pos < a_end) { | 79 | 31 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 31 | ++a_pos; | 81 | 31 | ++b_pos; | 82 | 31 | ++c_pos; | 83 | 31 | } | 84 | 31 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 66 | PaddedPODArray<UInt8>& c) { | 72 | 66 | size_t size = a.size(); | 73 | 66 | const A* __restrict a_pos = a.data(); | 74 | 66 | const B* __restrict b_pos = b.data(); | 75 | 66 | UInt8* __restrict c_pos = c.data(); | 76 | 66 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 185 | while (a_pos < a_end) { | 79 | 119 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 119 | ++a_pos; | 81 | 119 | ++b_pos; | 82 | 119 | ++c_pos; | 83 | 119 | } | 84 | 66 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_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 | 11 | 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 | 2 | } |
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 | 49 | PaddedPODArray<UInt8>& c) { | 72 | 49 | size_t size = a.size(); | 73 | 49 | const A* __restrict a_pos = a.data(); | 74 | 49 | const B* __restrict b_pos = b.data(); | 75 | 49 | UInt8* __restrict c_pos = c.data(); | 76 | 49 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 99 | while (a_pos < a_end) { | 79 | 50 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 50 | ++a_pos; | 81 | 50 | ++b_pos; | 82 | 50 | ++c_pos; | 83 | 50 | } | 84 | 49 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 9 | PaddedPODArray<UInt8>& c) { | 72 | 9 | size_t size = a.size(); | 73 | 9 | const A* __restrict a_pos = a.data(); | 74 | 9 | const B* __restrict b_pos = b.data(); | 75 | 9 | UInt8* __restrict c_pos = c.data(); | 76 | 9 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 65 | while (a_pos < a_end) { | 79 | 56 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 56 | ++a_pos; | 81 | 56 | ++b_pos; | 82 | 56 | ++c_pos; | 83 | 56 | } | 84 | 9 | } |
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 | 50 | PaddedPODArray<UInt8>& c) { | 72 | 50 | size_t size = a.size(); | 73 | 50 | const A* __restrict a_pos = a.data(); | 74 | 50 | const B* __restrict b_pos = b.data(); | 75 | 50 | UInt8* __restrict c_pos = c.data(); | 76 | 50 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 119 | while (a_pos < a_end) { | 79 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 69 | ++a_pos; | 81 | 69 | ++b_pos; | 82 | 69 | ++c_pos; | 83 | 69 | } | 84 | 50 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 23 | PaddedPODArray<UInt8>& c) { | 72 | 23 | size_t size = a.size(); | 73 | 23 | const A* __restrict a_pos = a.data(); | 74 | 23 | const B* __restrict b_pos = b.data(); | 75 | 23 | UInt8* __restrict c_pos = c.data(); | 76 | 23 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 66 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 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.88k | PaddedPODArray<UInt8>& c) { | 72 | 1.88k | size_t size = a.size(); | 73 | 1.88k | const A* __restrict a_pos = a.data(); | 74 | 1.88k | const B* __restrict b_pos = b.data(); | 75 | 1.88k | UInt8* __restrict c_pos = c.data(); | 76 | 1.88k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.80M | while (a_pos < a_end) { | 79 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.80M | ++a_pos; | 81 | 1.80M | ++b_pos; | 82 | 1.80M | ++c_pos; | 83 | 1.80M | } | 84 | 1.88k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 270 | PaddedPODArray<UInt8>& c) { | 72 | 270 | size_t size = a.size(); | 73 | 270 | const A* __restrict a_pos = a.data(); | 74 | 270 | const B* __restrict b_pos = b.data(); | 75 | 270 | UInt8* __restrict c_pos = c.data(); | 76 | 270 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 888 | while (a_pos < a_end) { | 79 | 618 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 618 | ++a_pos; | 81 | 618 | ++b_pos; | 82 | 618 | ++c_pos; | 83 | 618 | } | 84 | 270 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_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 | 11 | 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 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 158 | PaddedPODArray<UInt8>& c) { | 72 | 158 | size_t size = a.size(); | 73 | 158 | const A* __restrict a_pos = a.data(); | 74 | 158 | const B* __restrict b_pos = b.data(); | 75 | 158 | UInt8* __restrict c_pos = c.data(); | 76 | 158 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 490 | while (a_pos < a_end) { | 79 | 332 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 332 | ++a_pos; | 81 | 332 | ++b_pos; | 82 | 332 | ++c_pos; | 83 | 332 | } | 84 | 158 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_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 | 452 | while (a_pos < a_end) { | 79 | 314 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 314 | ++a_pos; | 81 | 314 | ++b_pos; | 82 | 314 | ++c_pos; | 83 | 314 | } | 84 | 138 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 173 | PaddedPODArray<UInt8>& c) { | 72 | 173 | size_t size = a.size(); | 73 | 173 | const A* __restrict a_pos = a.data(); | 74 | 173 | const B* __restrict b_pos = b.data(); | 75 | 173 | UInt8* __restrict c_pos = c.data(); | 76 | 173 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.03k | while (a_pos < a_end) { | 79 | 862 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 862 | ++a_pos; | 81 | 862 | ++b_pos; | 82 | 862 | ++c_pos; | 83 | 862 | } | 84 | 173 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 210 | PaddedPODArray<UInt8>& c) { | 72 | 210 | size_t size = a.size(); | 73 | 210 | const A* __restrict a_pos = a.data(); | 74 | 210 | const B* __restrict b_pos = b.data(); | 75 | 210 | UInt8* __restrict c_pos = c.data(); | 76 | 210 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.41k | while (a_pos < a_end) { | 79 | 5.20k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.20k | ++a_pos; | 81 | 5.20k | ++b_pos; | 82 | 5.20k | ++c_pos; | 83 | 5.20k | } | 84 | 210 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_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 | 462 | while (a_pos < a_end) { | 79 | 318 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 318 | ++a_pos; | 81 | 318 | ++b_pos; | 82 | 318 | ++c_pos; | 83 | 318 | } | 84 | 144 | } |
_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 | 140 | PaddedPODArray<UInt8>& c) { | 72 | 140 | size_t size = a.size(); | 73 | 140 | const A* __restrict a_pos = a.data(); | 74 | 140 | const B* __restrict b_pos = b.data(); | 75 | 140 | UInt8* __restrict c_pos = c.data(); | 76 | 140 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 473 | while (a_pos < a_end) { | 79 | 333 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 333 | ++a_pos; | 81 | 333 | ++b_pos; | 82 | 333 | ++c_pos; | 83 | 333 | } | 84 | 140 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 148 | PaddedPODArray<UInt8>& c) { | 72 | 148 | size_t size = a.size(); | 73 | 148 | const A* __restrict a_pos = a.data(); | 74 | 148 | const B* __restrict b_pos = b.data(); | 75 | 148 | UInt8* __restrict c_pos = c.data(); | 76 | 148 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 498 | while (a_pos < a_end) { | 79 | 350 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 350 | ++a_pos; | 81 | 350 | ++b_pos; | 82 | 350 | ++c_pos; | 83 | 350 | } | 84 | 148 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | 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 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 439 | PaddedPODArray<UInt8>& c) { | 72 | 439 | size_t size = a.size(); | 73 | 439 | const A* __restrict a_pos = a.data(); | 74 | 439 | const B* __restrict b_pos = b.data(); | 75 | 439 | UInt8* __restrict c_pos = c.data(); | 76 | 439 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.55k | while (a_pos < a_end) { | 79 | 6.12k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.12k | ++a_pos; | 81 | 6.12k | ++b_pos; | 82 | 6.12k | ++c_pos; | 83 | 6.12k | } | 84 | 439 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 120 | while (a_pos < a_end) { | 79 | 60 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 60 | ++a_pos; | 81 | 60 | ++b_pos; | 82 | 60 | ++c_pos; | 83 | 60 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_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 | 11 | 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 | 2 | } |
_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 | 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 | 93 | while (a_pos < a_end) { | 79 | 53 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 53 | ++a_pos; | 81 | 53 | ++b_pos; | 82 | 53 | ++c_pos; | 83 | 53 | } | 84 | 40 | } |
_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 | 50 | PaddedPODArray<UInt8>& c) { | 72 | 50 | size_t size = a.size(); | 73 | 50 | const A* __restrict a_pos = a.data(); | 74 | 50 | const B* __restrict b_pos = b.data(); | 75 | 50 | UInt8* __restrict c_pos = c.data(); | 76 | 50 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 119 | while (a_pos < a_end) { | 79 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 69 | ++a_pos; | 81 | 69 | ++b_pos; | 82 | 69 | ++c_pos; | 83 | 69 | } | 84 | 50 | } |
_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 | 191k | PaddedPODArray<UInt8>& c) { |
88 | 191k | size_t size = a.size(); |
89 | 191k | const A* __restrict a_pos = a.data(); |
90 | 191k | UInt8* __restrict c_pos = c.data(); |
91 | 191k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 129M | while (a_pos < a_end) { |
94 | 129M | *c_pos = Op::apply(*a_pos, b); |
95 | 129M | ++a_pos; |
96 | 129M | ++c_pos; |
97 | 129M | } |
98 | 191k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 804 | PaddedPODArray<UInt8>& c) { | 88 | 804 | size_t size = a.size(); | 89 | 804 | const A* __restrict a_pos = a.data(); | 90 | 804 | UInt8* __restrict c_pos = c.data(); | 91 | 804 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.23k | while (a_pos < a_end) { | 94 | 2.43k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.43k | ++a_pos; | 96 | 2.43k | ++c_pos; | 97 | 2.43k | } | 98 | 804 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 938 | PaddedPODArray<UInt8>& c) { | 88 | 938 | size_t size = a.size(); | 89 | 938 | const A* __restrict a_pos = a.data(); | 90 | 938 | UInt8* __restrict c_pos = c.data(); | 91 | 938 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 207k | while (a_pos < a_end) { | 94 | 206k | *c_pos = Op::apply(*a_pos, b); | 95 | 206k | ++a_pos; | 96 | 206k | ++c_pos; | 97 | 206k | } | 98 | 938 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 288 | PaddedPODArray<UInt8>& c) { | 88 | 288 | size_t size = a.size(); | 89 | 288 | const A* __restrict a_pos = a.data(); | 90 | 288 | UInt8* __restrict c_pos = c.data(); | 91 | 288 | 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 | 288 | } |
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 | 8.06k | PaddedPODArray<UInt8>& c) { | 88 | 8.06k | size_t size = a.size(); | 89 | 8.06k | const A* __restrict a_pos = a.data(); | 90 | 8.06k | UInt8* __restrict c_pos = c.data(); | 91 | 8.06k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.34M | while (a_pos < a_end) { | 94 | 9.33M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.33M | ++a_pos; | 96 | 9.33M | ++c_pos; | 97 | 9.33M | } | 98 | 8.06k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.33k | PaddedPODArray<UInt8>& c) { | 88 | 1.33k | size_t size = a.size(); | 89 | 1.33k | const A* __restrict a_pos = a.data(); | 90 | 1.33k | UInt8* __restrict c_pos = c.data(); | 91 | 1.33k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 155k | while (a_pos < a_end) { | 94 | 154k | *c_pos = Op::apply(*a_pos, b); | 95 | 154k | ++a_pos; | 96 | 154k | ++c_pos; | 97 | 154k | } | 98 | 1.33k | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 5.95k | PaddedPODArray<UInt8>& c) { | 88 | 5.95k | size_t size = a.size(); | 89 | 5.95k | const A* __restrict a_pos = a.data(); | 90 | 5.95k | UInt8* __restrict c_pos = c.data(); | 91 | 5.95k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.02M | while (a_pos < a_end) { | 94 | 1.02M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.02M | ++a_pos; | 96 | 1.02M | ++c_pos; | 97 | 1.02M | } | 98 | 5.95k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_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 | 1.84M | while (a_pos < a_end) { | 94 | 1.81M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.81M | ++a_pos; | 96 | 1.81M | ++c_pos; | 97 | 1.81M | } | 98 | 25.0k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 45 | PaddedPODArray<UInt8>& c) { | 88 | 45 | size_t size = a.size(); | 89 | 45 | const A* __restrict a_pos = a.data(); | 90 | 45 | UInt8* __restrict c_pos = c.data(); | 91 | 45 | 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 | 45 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 16 | PaddedPODArray<UInt8>& c) { | 88 | 16 | size_t size = a.size(); | 89 | 16 | const A* __restrict a_pos = a.data(); | 90 | 16 | UInt8* __restrict c_pos = c.data(); | 91 | 16 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130 | while (a_pos < a_end) { | 94 | 114 | *c_pos = Op::apply(*a_pos, b); | 95 | 114 | ++a_pos; | 96 | 114 | ++c_pos; | 97 | 114 | } | 98 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 848 | PaddedPODArray<UInt8>& c) { | 88 | 848 | size_t size = a.size(); | 89 | 848 | const A* __restrict a_pos = a.data(); | 90 | 848 | UInt8* __restrict c_pos = c.data(); | 91 | 848 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 719k | while (a_pos < a_end) { | 94 | 719k | *c_pos = Op::apply(*a_pos, b); | 95 | 719k | ++a_pos; | 96 | 719k | ++c_pos; | 97 | 719k | } | 98 | 848 | } |
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 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4 | while (a_pos < a_end) { | 94 | 2 | *c_pos = Op::apply(*a_pos, b); | 95 | 2 | ++a_pos; | 96 | 2 | ++c_pos; | 97 | 2 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 36 | PaddedPODArray<UInt8>& c) { | 88 | 36 | size_t size = a.size(); | 89 | 36 | const A* __restrict a_pos = a.data(); | 90 | 36 | UInt8* __restrict c_pos = c.data(); | 91 | 36 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 862 | while (a_pos < a_end) { | 94 | 826 | *c_pos = Op::apply(*a_pos, b); | 95 | 826 | ++a_pos; | 96 | 826 | ++c_pos; | 97 | 826 | } | 98 | 36 | } |
_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 | 782 | PaddedPODArray<UInt8>& c) { | 88 | 782 | size_t size = a.size(); | 89 | 782 | const A* __restrict a_pos = a.data(); | 90 | 782 | UInt8* __restrict c_pos = c.data(); | 91 | 782 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 371k | while (a_pos < a_end) { | 94 | 370k | *c_pos = Op::apply(*a_pos, b); | 95 | 370k | ++a_pos; | 96 | 370k | ++c_pos; | 97 | 370k | } | 98 | 782 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.07k | PaddedPODArray<UInt8>& c) { | 88 | 1.07k | size_t size = a.size(); | 89 | 1.07k | const A* __restrict a_pos = a.data(); | 90 | 1.07k | UInt8* __restrict c_pos = c.data(); | 91 | 1.07k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 71.1k | while (a_pos < a_end) { | 94 | 70.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 70.1k | ++a_pos; | 96 | 70.1k | ++c_pos; | 97 | 70.1k | } | 98 | 1.07k | } |
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 | 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 | 4.60k | while (a_pos < a_end) { | 94 | 4.48k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.48k | ++a_pos; | 96 | 4.48k | ++c_pos; | 97 | 4.48k | } | 98 | 119 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 438 | PaddedPODArray<UInt8>& c) { | 88 | 438 | size_t size = a.size(); | 89 | 438 | const A* __restrict a_pos = a.data(); | 90 | 438 | UInt8* __restrict c_pos = c.data(); | 91 | 438 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.34M | while (a_pos < a_end) { | 94 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.34M | ++a_pos; | 96 | 1.34M | ++c_pos; | 97 | 1.34M | } | 98 | 438 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 62 | PaddedPODArray<UInt8>& c) { | 88 | 62 | size_t size = a.size(); | 89 | 62 | const A* __restrict a_pos = a.data(); | 90 | 62 | UInt8* __restrict c_pos = c.data(); | 91 | 62 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 146 | while (a_pos < a_end) { | 94 | 84 | *c_pos = Op::apply(*a_pos, b); | 95 | 84 | ++a_pos; | 96 | 84 | ++c_pos; | 97 | 84 | } | 98 | 62 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 229 | PaddedPODArray<UInt8>& c) { | 88 | 229 | size_t size = a.size(); | 89 | 229 | const A* __restrict a_pos = a.data(); | 90 | 229 | UInt8* __restrict c_pos = c.data(); | 91 | 229 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 29.9k | while (a_pos < a_end) { | 94 | 29.7k | *c_pos = Op::apply(*a_pos, b); | 95 | 29.7k | ++a_pos; | 96 | 29.7k | ++c_pos; | 97 | 29.7k | } | 98 | 229 | } |
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.44k | PaddedPODArray<UInt8>& c) { | 88 | 1.44k | size_t size = a.size(); | 89 | 1.44k | const A* __restrict a_pos = a.data(); | 90 | 1.44k | UInt8* __restrict c_pos = c.data(); | 91 | 1.44k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.44k | while (a_pos < a_end) { | 94 | 5.99k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.99k | ++a_pos; | 96 | 5.99k | ++c_pos; | 97 | 5.99k | } | 98 | 1.44k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.99k | PaddedPODArray<UInt8>& c) { | 88 | 1.99k | size_t size = a.size(); | 89 | 1.99k | const A* __restrict a_pos = a.data(); | 90 | 1.99k | UInt8* __restrict c_pos = c.data(); | 91 | 1.99k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.15k | while (a_pos < a_end) { | 94 | 5.15k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.15k | ++a_pos; | 96 | 5.15k | ++c_pos; | 97 | 5.15k | } | 98 | 1.99k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.45k | PaddedPODArray<UInt8>& c) { | 88 | 1.45k | size_t size = a.size(); | 89 | 1.45k | const A* __restrict a_pos = a.data(); | 90 | 1.45k | UInt8* __restrict c_pos = c.data(); | 91 | 1.45k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.46k | 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.45k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 458 | PaddedPODArray<UInt8>& c) { | 88 | 458 | size_t size = a.size(); | 89 | 458 | const A* __restrict a_pos = a.data(); | 90 | 458 | UInt8* __restrict c_pos = c.data(); | 91 | 458 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.80k | while (a_pos < a_end) { | 94 | 9.34k | *c_pos = Op::apply(*a_pos, b); | 95 | 9.34k | ++a_pos; | 96 | 9.34k | ++c_pos; | 97 | 9.34k | } | 98 | 458 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 12.4k | PaddedPODArray<UInt8>& c) { | 88 | 12.4k | size_t size = a.size(); | 89 | 12.4k | const A* __restrict a_pos = a.data(); | 90 | 12.4k | UInt8* __restrict c_pos = c.data(); | 91 | 12.4k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.12M | while (a_pos < a_end) { | 94 | 2.11M | *c_pos = Op::apply(*a_pos, b); | 95 | 2.11M | ++a_pos; | 96 | 2.11M | ++c_pos; | 97 | 2.11M | } | 98 | 12.4k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 64.5k | PaddedPODArray<UInt8>& c) { | 88 | 64.5k | size_t size = a.size(); | 89 | 64.5k | const A* __restrict a_pos = a.data(); | 90 | 64.5k | UInt8* __restrict c_pos = c.data(); | 91 | 64.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.16M | while (a_pos < a_end) { | 94 | 9.10M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.10M | ++a_pos; | 96 | 9.10M | ++c_pos; | 97 | 9.10M | } | 98 | 64.5k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 8.16k | PaddedPODArray<UInt8>& c) { | 88 | 8.16k | size_t size = a.size(); | 89 | 8.16k | const A* __restrict a_pos = a.data(); | 90 | 8.16k | UInt8* __restrict c_pos = c.data(); | 91 | 8.16k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 149k | while (a_pos < a_end) { | 94 | 140k | *c_pos = Op::apply(*a_pos, b); | 95 | 140k | ++a_pos; | 96 | 140k | ++c_pos; | 97 | 140k | } | 98 | 8.16k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.46k | PaddedPODArray<UInt8>& c) { | 88 | 1.46k | size_t size = a.size(); | 89 | 1.46k | const A* __restrict a_pos = a.data(); | 90 | 1.46k | UInt8* __restrict c_pos = c.data(); | 91 | 1.46k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12.9k | while (a_pos < a_end) { | 94 | 11.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 11.5k | ++a_pos; | 96 | 11.5k | ++c_pos; | 97 | 11.5k | } | 98 | 1.46k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 297 | PaddedPODArray<UInt8>& c) { | 88 | 297 | size_t size = a.size(); | 89 | 297 | const A* __restrict a_pos = a.data(); | 90 | 297 | UInt8* __restrict c_pos = c.data(); | 91 | 297 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.93k | while (a_pos < a_end) { | 94 | 1.64k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.64k | ++a_pos; | 96 | 1.64k | ++c_pos; | 97 | 1.64k | } | 98 | 297 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 90 | PaddedPODArray<UInt8>& c) { | 88 | 90 | size_t size = a.size(); | 89 | 90 | const A* __restrict a_pos = a.data(); | 90 | 90 | UInt8* __restrict c_pos = c.data(); | 91 | 90 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 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 | 90 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 208 | PaddedPODArray<UInt8>& c) { | 88 | 208 | size_t size = a.size(); | 89 | 208 | const A* __restrict a_pos = a.data(); | 90 | 208 | UInt8* __restrict c_pos = c.data(); | 91 | 208 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.06k | while (a_pos < a_end) { | 94 | 2.85k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.85k | ++a_pos; | 96 | 2.85k | ++c_pos; | 97 | 2.85k | } | 98 | 208 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_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 | 64 | while (a_pos < a_end) { | 94 | 38 | *c_pos = Op::apply(*a_pos, b); | 95 | 38 | ++a_pos; | 96 | 38 | ++c_pos; | 97 | 38 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.50k | PaddedPODArray<UInt8>& c) { | 88 | 1.50k | size_t size = a.size(); | 89 | 1.50k | const A* __restrict a_pos = a.data(); | 90 | 1.50k | UInt8* __restrict c_pos = c.data(); | 91 | 1.50k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 288k | while (a_pos < a_end) { | 94 | 286k | *c_pos = Op::apply(*a_pos, b); | 95 | 286k | ++a_pos; | 96 | 286k | ++c_pos; | 97 | 286k | } | 98 | 1.50k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 213 | PaddedPODArray<UInt8>& c) { | 88 | 213 | size_t size = a.size(); | 89 | 213 | const A* __restrict a_pos = a.data(); | 90 | 213 | UInt8* __restrict c_pos = c.data(); | 91 | 213 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 312k | while (a_pos < a_end) { | 94 | 312k | *c_pos = Op::apply(*a_pos, b); | 95 | 312k | ++a_pos; | 96 | 312k | ++c_pos; | 97 | 312k | } | 98 | 213 | } |
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 | 173 | PaddedPODArray<UInt8>& c) { | 88 | 173 | size_t size = a.size(); | 89 | 173 | const A* __restrict a_pos = a.data(); | 90 | 173 | UInt8* __restrict c_pos = c.data(); | 91 | 173 | 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 | 173 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 186 | PaddedPODArray<UInt8>& c) { | 88 | 186 | size_t size = a.size(); | 89 | 186 | const A* __restrict a_pos = a.data(); | 90 | 186 | UInt8* __restrict c_pos = c.data(); | 91 | 186 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 140k | while (a_pos < a_end) { | 94 | 140k | *c_pos = Op::apply(*a_pos, b); | 95 | 140k | ++a_pos; | 96 | 140k | ++c_pos; | 97 | 140k | } | 98 | 186 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 4.52M | while (a_pos < a_end) { | 94 | 4.51M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.51M | ++a_pos; | 96 | 4.51M | ++c_pos; | 97 | 4.51M | } | 98 | 1.46k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 14.3k | PaddedPODArray<UInt8>& c) { | 88 | 14.3k | size_t size = a.size(); | 89 | 14.3k | const A* __restrict a_pos = a.data(); | 90 | 14.3k | UInt8* __restrict c_pos = c.data(); | 91 | 14.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 39.7M | while (a_pos < a_end) { | 94 | 39.7M | *c_pos = Op::apply(*a_pos, b); | 95 | 39.7M | ++a_pos; | 96 | 39.7M | ++c_pos; | 97 | 39.7M | } | 98 | 14.3k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 518 | PaddedPODArray<UInt8>& c) { | 88 | 518 | size_t size = a.size(); | 89 | 518 | const A* __restrict a_pos = a.data(); | 90 | 518 | UInt8* __restrict c_pos = c.data(); | 91 | 518 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 16.0k | while (a_pos < a_end) { | 94 | 15.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.4k | ++a_pos; | 96 | 15.4k | ++c_pos; | 97 | 15.4k | } | 98 | 518 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 313 | PaddedPODArray<UInt8>& c) { | 88 | 313 | size_t size = a.size(); | 89 | 313 | const A* __restrict a_pos = a.data(); | 90 | 313 | UInt8* __restrict c_pos = c.data(); | 91 | 313 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.4k | while (a_pos < a_end) { | 94 | 15.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.1k | ++a_pos; | 96 | 15.1k | ++c_pos; | 97 | 15.1k | } | 98 | 313 | } |
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 | 50 | PaddedPODArray<UInt8>& c) { | 88 | 50 | size_t size = a.size(); | 89 | 50 | const A* __restrict a_pos = a.data(); | 90 | 50 | UInt8* __restrict c_pos = c.data(); | 91 | 50 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 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 | 50 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 51 | PaddedPODArray<UInt8>& c) { | 88 | 51 | size_t size = a.size(); | 89 | 51 | const A* __restrict a_pos = a.data(); | 90 | 51 | UInt8* __restrict c_pos = c.data(); | 91 | 51 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 120k | while (a_pos < a_end) { | 94 | 120k | *c_pos = Op::apply(*a_pos, b); | 95 | 120k | ++a_pos; | 96 | 120k | ++c_pos; | 97 | 120k | } | 98 | 51 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_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 | 102k | while (a_pos < a_end) { | 94 | 102k | *c_pos = Op::apply(*a_pos, b); | 95 | 102k | ++a_pos; | 96 | 102k | ++c_pos; | 97 | 102k | } | 98 | 40 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 57 | PaddedPODArray<UInt8>& c) { | 88 | 57 | size_t size = a.size(); | 89 | 57 | const A* __restrict a_pos = a.data(); | 90 | 57 | UInt8* __restrict c_pos = c.data(); | 91 | 57 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130k | while (a_pos < a_end) { | 94 | 130k | *c_pos = Op::apply(*a_pos, b); | 95 | 130k | ++a_pos; | 96 | 130k | ++c_pos; | 97 | 130k | } | 98 | 57 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_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 | 25.8M | while (a_pos < a_end) { | 94 | 25.8M | *c_pos = Op::apply(*a_pos, b); | 95 | 25.8M | ++a_pos; | 96 | 25.8M | ++c_pos; | 97 | 25.8M | } | 98 | 11.7k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 19.7k | PaddedPODArray<UInt8>& c) { | 88 | 19.7k | size_t size = a.size(); | 89 | 19.7k | const A* __restrict a_pos = a.data(); | 90 | 19.7k | UInt8* __restrict c_pos = c.data(); | 91 | 19.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.1M | while (a_pos < a_end) { | 94 | 30.1M | *c_pos = Op::apply(*a_pos, b); | 95 | 30.1M | ++a_pos; | 96 | 30.1M | ++c_pos; | 97 | 30.1M | } | 98 | 19.7k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_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 | 29.6k | while (a_pos < a_end) { | 94 | 29.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 29.2k | ++a_pos; | 96 | 29.2k | ++c_pos; | 97 | 29.2k | } | 98 | 488 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 850 | PaddedPODArray<UInt8>& c) { | 88 | 850 | size_t size = a.size(); | 89 | 850 | const A* __restrict a_pos = a.data(); | 90 | 850 | UInt8* __restrict c_pos = c.data(); | 91 | 850 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 26.1k | while (a_pos < a_end) { | 94 | 25.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 25.3k | ++a_pos; | 96 | 25.3k | ++c_pos; | 97 | 25.3k | } | 98 | 850 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_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 | 133k | while (a_pos < a_end) { | 94 | 133k | *c_pos = Op::apply(*a_pos, b); | 95 | 133k | ++a_pos; | 96 | 133k | ++c_pos; | 97 | 133k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 63 | PaddedPODArray<UInt8>& c) { | 88 | 63 | size_t size = a.size(); | 89 | 63 | const A* __restrict a_pos = a.data(); | 90 | 63 | UInt8* __restrict c_pos = c.data(); | 91 | 63 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 162k | while (a_pos < a_end) { | 94 | 162k | *c_pos = Op::apply(*a_pos, b); | 95 | 162k | ++a_pos; | 96 | 162k | ++c_pos; | 97 | 162k | } | 98 | 63 | } |
_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 | 168 | PaddedPODArray<UInt8>& c) { | 88 | 168 | size_t size = a.size(); | 89 | 168 | const A* __restrict a_pos = a.data(); | 90 | 168 | UInt8* __restrict c_pos = c.data(); | 91 | 168 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 338 | while (a_pos < a_end) { | 94 | 170 | *c_pos = Op::apply(*a_pos, b); | 95 | 170 | ++a_pos; | 96 | 170 | ++c_pos; | 97 | 170 | } | 98 | 168 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_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 | 328 | 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 | 164 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 133 | PaddedPODArray<UInt8>& c) { | 88 | 133 | size_t size = a.size(); | 89 | 133 | const A* __restrict a_pos = a.data(); | 90 | 133 | UInt8* __restrict c_pos = c.data(); | 91 | 133 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 356k | while (a_pos < a_end) { | 94 | 356k | *c_pos = Op::apply(*a_pos, b); | 95 | 356k | ++a_pos; | 96 | 356k | ++c_pos; | 97 | 356k | } | 98 | 133 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 113 | PaddedPODArray<UInt8>& c) { | 88 | 113 | size_t size = a.size(); | 89 | 113 | const A* __restrict a_pos = a.data(); | 90 | 113 | UInt8* __restrict c_pos = c.data(); | 91 | 113 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 275k | while (a_pos < a_end) { | 94 | 275k | *c_pos = Op::apply(*a_pos, b); | 95 | 275k | ++a_pos; | 96 | 275k | ++c_pos; | 97 | 275k | } | 98 | 113 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 65.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 65.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 65.5k | } 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 | 300 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 300 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 300 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 102 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 102 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 102 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 510 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 510 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 510 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 8 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 8 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 56 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 56 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 56 | } |
Unexecuted instantiation: _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 | 252 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 252 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 252 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 62.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 62.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 62.5k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 508 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 508 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 508 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_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 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 264 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 191 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 191 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 191 | } |
_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 | 96 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 96 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 96 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _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 | 281 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 281 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 281 | } |
_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 | 158 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 158 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 570k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 570k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 570k | } |
119 | 158 | } _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 | 46 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 46 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 230k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 230k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 230k | } | 119 | 46 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 75 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 75 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 339k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 339k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 339k | } | 119 | 75 | } |
|
120 | | |
121 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
122 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
123 | 0 | } Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
124 | | }; |
125 | | |
126 | | template <typename Op> |
127 | | struct StringComparisonImpl { |
128 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
129 | | const ColumnString::Offsets& a_offsets, |
130 | | const ColumnString::Chars& b_data, |
131 | | const ColumnString::Offsets& b_offsets, |
132 | 641 | PaddedPODArray<UInt8>& c) { |
133 | 641 | size_t size = a_offsets.size(); |
134 | 641 | ColumnString::Offset prev_a_offset = 0; |
135 | 641 | ColumnString::Offset prev_b_offset = 0; |
136 | 641 | const auto* a_pos = a_data.data(); |
137 | 641 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 2.00k | for (size_t i = 0; i < size; ++i) { |
140 | 1.36k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.36k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.36k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.36k | 0); |
144 | | |
145 | 1.36k | prev_a_offset = a_offsets[i]; |
146 | 1.36k | prev_b_offset = b_offsets[i]; |
147 | 1.36k | } |
148 | 641 | } _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 | 94 | PaddedPODArray<UInt8>& c) { | 133 | 94 | size_t size = a_offsets.size(); | 134 | 94 | ColumnString::Offset prev_a_offset = 0; | 135 | 94 | ColumnString::Offset prev_b_offset = 0; | 136 | 94 | const auto* a_pos = a_data.data(); | 137 | 94 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 346 | for (size_t i = 0; i < size; ++i) { | 140 | 252 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 252 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 252 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 252 | 0); | 144 | | | 145 | 252 | prev_a_offset = a_offsets[i]; | 146 | 252 | prev_b_offset = b_offsets[i]; | 147 | 252 | } | 148 | 94 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 399 | PaddedPODArray<UInt8>& c) { | 133 | 399 | size_t size = a_offsets.size(); | 134 | 399 | ColumnString::Offset prev_a_offset = 0; | 135 | 399 | ColumnString::Offset prev_b_offset = 0; | 136 | 399 | const auto* a_pos = a_data.data(); | 137 | 399 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.32k | for (size_t i = 0; i < size; ++i) { | 140 | 921 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 921 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 921 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 921 | 0); | 144 | | | 145 | 921 | prev_a_offset = a_offsets[i]; | 146 | 921 | prev_b_offset = b_offsets[i]; | 147 | 921 | } | 148 | 399 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 146 | PaddedPODArray<UInt8>& c) { | 133 | 146 | size_t size = a_offsets.size(); | 134 | 146 | ColumnString::Offset prev_a_offset = 0; | 135 | 146 | ColumnString::Offset prev_b_offset = 0; | 136 | 146 | const auto* a_pos = a_data.data(); | 137 | 146 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 292 | for (size_t i = 0; i < size; ++i) { | 140 | 146 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 146 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 146 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 146 | 0); | 144 | | | 145 | 146 | prev_a_offset = a_offsets[i]; | 146 | 146 | prev_b_offset = b_offsets[i]; | 147 | 146 | } | 148 | 146 | } |
|
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.59k | PaddedPODArray<UInt8>& c) { |
155 | 1.59k | size_t size = a_offsets.size(); |
156 | 1.59k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.59k | const auto* a_pos = a_data.data(); |
158 | 1.59k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.60M | for (size_t i = 0; i < size; ++i) { |
161 | 1.60M | c[i] = Op::apply( |
162 | 1.60M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.60M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.60M | 0); |
165 | | |
166 | 1.60M | prev_a_offset = a_offsets[i]; |
167 | 1.60M | } |
168 | 1.59k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 178 | PaddedPODArray<UInt8>& c) { | 155 | 178 | size_t size = a_offsets.size(); | 156 | 178 | ColumnString::Offset prev_a_offset = 0; | 157 | 178 | const auto* a_pos = a_data.data(); | 158 | 178 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 325k | for (size_t i = 0; i < size; ++i) { | 161 | 325k | c[i] = Op::apply( | 162 | 325k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 325k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 325k | 0); | 165 | | | 166 | 325k | prev_a_offset = a_offsets[i]; | 167 | 325k | } | 168 | 178 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 189 | PaddedPODArray<UInt8>& c) { | 155 | 189 | size_t size = a_offsets.size(); | 156 | 189 | ColumnString::Offset prev_a_offset = 0; | 157 | 189 | const auto* a_pos = a_data.data(); | 158 | 189 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 73.1k | for (size_t i = 0; i < size; ++i) { | 161 | 72.9k | c[i] = Op::apply( | 162 | 72.9k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 72.9k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 72.9k | 0); | 165 | | | 166 | 72.9k | prev_a_offset = a_offsets[i]; | 167 | 72.9k | } | 168 | 189 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 535 | PaddedPODArray<UInt8>& c) { | 155 | 535 | size_t size = a_offsets.size(); | 156 | 535 | ColumnString::Offset prev_a_offset = 0; | 157 | 535 | const auto* a_pos = a_data.data(); | 158 | 535 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 593k | for (size_t i = 0; i < size; ++i) { | 161 | 593k | c[i] = Op::apply( | 162 | 593k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 593k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 593k | 0); | 165 | | | 166 | 593k | prev_a_offset = a_offsets[i]; | 167 | 593k | } | 168 | 535 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 691 | PaddedPODArray<UInt8>& c) { | 155 | 691 | size_t size = a_offsets.size(); | 156 | 691 | ColumnString::Offset prev_a_offset = 0; | 157 | 691 | const auto* a_pos = a_data.data(); | 158 | 691 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 613k | for (size_t i = 0; i < size; ++i) { | 161 | 612k | c[i] = Op::apply( | 162 | 612k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 612k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 612k | 0); | 165 | | | 166 | 612k | prev_a_offset = a_offsets[i]; | 167 | 612k | } | 168 | 691 | } |
|
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.45k | PaddedPODArray<UInt8>& c) { |
187 | 1.45k | size_t size = a_offsets.size(); |
188 | 1.45k | ColumnString::Offset prev_a_offset = 0; |
189 | 1.45k | ColumnString::Offset prev_b_offset = 0; |
190 | 1.45k | const auto* a_pos = a_data.data(); |
191 | 1.45k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 3.36k | for (size_t i = 0; i < size; ++i) { |
194 | 1.90k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.90k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.90k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.90k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.90k | prev_a_offset = a_offsets[i]; |
201 | 1.90k | prev_b_offset = b_offsets[i]; |
202 | 1.90k | } |
203 | 1.45k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1.40k | PaddedPODArray<UInt8>& c) { | 187 | 1.40k | size_t size = a_offsets.size(); | 188 | 1.40k | ColumnString::Offset prev_a_offset = 0; | 189 | 1.40k | ColumnString::Offset prev_b_offset = 0; | 190 | 1.40k | const auto* a_pos = a_data.data(); | 191 | 1.40k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 3.24k | for (size_t i = 0; i < size; ++i) { | 194 | 1.84k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.84k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.84k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.84k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.84k | prev_a_offset = a_offsets[i]; | 201 | 1.84k | prev_b_offset = b_offsets[i]; | 202 | 1.84k | } | 203 | 1.40k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 52 | PaddedPODArray<UInt8>& c) { | 187 | 52 | size_t size = a_offsets.size(); | 188 | 52 | ColumnString::Offset prev_a_offset = 0; | 189 | 52 | ColumnString::Offset prev_b_offset = 0; | 190 | 52 | const auto* a_pos = a_data.data(); | 191 | 52 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 113 | for (size_t i = 0; i < size; ++i) { | 194 | 61 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 61 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 61 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 61 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 61 | prev_a_offset = a_offsets[i]; | 201 | 61 | prev_b_offset = b_offsets[i]; | 202 | 61 | } | 203 | 52 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 21.8k | PaddedPODArray<UInt8>& c) { |
210 | 21.8k | size_t size = a_offsets.size(); |
211 | 21.8k | if (b_size == 0) { |
212 | 2 | auto* __restrict data = c.data(); |
213 | 2 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 2 | ColumnString::Offset prev_a_offset = 0; |
216 | 10 | for (size_t i = 0; i < size; ++i) { |
217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 8 | prev_a_offset = offsets[i]; |
219 | 8 | } |
220 | 21.8k | } else { |
221 | 21.8k | ColumnString::Offset prev_a_offset = 0; |
222 | 21.8k | const auto* a_pos = a_data.data(); |
223 | 21.8k | const auto* b_pos = b_data.data(); |
224 | 11.3M | for (size_t i = 0; i < size; ++i) { |
225 | 11.3M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 11.3M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 11.3M | b_pos, b_size); |
228 | 11.3M | prev_a_offset = a_offsets[i]; |
229 | 11.3M | } |
230 | 21.8k | } |
231 | 21.8k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 20.4k | PaddedPODArray<UInt8>& c) { | 210 | 20.4k | size_t size = a_offsets.size(); | 211 | 20.4k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 20.4k | } else { | 221 | 20.4k | ColumnString::Offset prev_a_offset = 0; | 222 | 20.4k | const auto* a_pos = a_data.data(); | 223 | 20.4k | const auto* b_pos = b_data.data(); | 224 | 8.15M | for (size_t i = 0; i < size; ++i) { | 225 | 8.13M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.13M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.13M | b_pos, b_size); | 228 | 8.13M | prev_a_offset = a_offsets[i]; | 229 | 8.13M | } | 230 | 20.4k | } | 231 | 20.4k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 1.42k | PaddedPODArray<UInt8>& c) { | 210 | 1.42k | size_t size = a_offsets.size(); | 211 | 1.42k | if (b_size == 0) { | 212 | 2 | auto* __restrict data = c.data(); | 213 | 2 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 2 | ColumnString::Offset prev_a_offset = 0; | 216 | 10 | for (size_t i = 0; i < size; ++i) { | 217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 8 | prev_a_offset = offsets[i]; | 219 | 8 | } | 220 | 1.42k | } else { | 221 | 1.42k | ColumnString::Offset prev_a_offset = 0; | 222 | 1.42k | const auto* a_pos = a_data.data(); | 223 | 1.42k | const auto* b_pos = b_data.data(); | 224 | 3.18M | for (size_t i = 0; i < size; ++i) { | 225 | 3.18M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.18M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.18M | b_pos, b_size); | 228 | 3.18M | prev_a_offset = a_offsets[i]; | 229 | 3.18M | } | 230 | 1.42k | } | 231 | 1.42k | } |
|
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 | 35.6k | Op op) { |
296 | 35.6k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 35.6k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 35.6k | slot_literal->slot_type); |
300 | 35.6k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 35.6k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 35.6k | if (zone_map_ptr == nullptr) { |
305 | 944 | return unsupported_zonemap_filter(ctx); |
306 | 944 | } |
307 | 34.7k | const auto& zone_map = *zone_map_ptr; |
308 | 34.7k | if (!zone_map.has_not_null) { |
309 | 214 | return ZoneMapFilterResult::kNoMatch; |
310 | 214 | } |
311 | 34.5k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 103 | return unsupported_zonemap_filter(ctx); |
313 | 103 | } |
314 | | |
315 | 34.4k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 34.4k | const auto& literal = slot_literal->literal; |
317 | 34.4k | switch (effective_op) { |
318 | 9.10k | case Op::EQ: |
319 | 9.10k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 9.10k | ? ZoneMapFilterResult::kNoMatch |
321 | 9.10k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.11k | case Op::NE: |
323 | 1.11k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.11k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.11k | : ZoneMapFilterResult::kMayMatch; |
326 | 2.97k | case Op::LT: |
327 | 2.97k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 2.97k | : 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 | 5.09k | case Op::GT: |
333 | 5.09k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 5.09k | : ZoneMapFilterResult::kMayMatch; |
335 | 6.69k | case Op::GE: |
336 | 6.69k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 6.69k | : ZoneMapFilterResult::kMayMatch; |
338 | 34.4k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 34.4k | } |
343 | | |
344 | 201k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 201k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 201k | if (!slot_literal.has_value()) { |
347 | 23.6k | return false; |
348 | 23.6k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 177k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 177k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 177k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 177k | 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 | 13 | return false; |
364 | 13 | } |
365 | | |
366 | 177k | return true; |
367 | 177k | } |
368 | | |
369 | 104k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 104k | return op == Op::EQ && can_evaluate(arguments); |
371 | 104k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 90.7k | const VExprSPtrs& arguments, Op op) { |
375 | 90.7k | DORIS_CHECK(op == Op::EQ); |
376 | 90.7k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 90.7k | DORIS_CHECK(slot_literal.has_value()); |
378 | 90.7k | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 90.7k | } |
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 | 335k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 335k | if (name == NameEquals::name) { |
391 | 232k | return Op::EQ; |
392 | 232k | } |
393 | 102k | if (name == NameNotEquals::name) { |
394 | 5.03k | return Op::NE; |
395 | 5.03k | } |
396 | 97.8k | if (name == NameLess::name) { |
397 | 14.2k | return Op::LT; |
398 | 14.2k | } |
399 | 83.6k | if (name == NameLessOrEquals::name) { |
400 | 31.9k | return Op::LE; |
401 | 31.9k | } |
402 | 51.6k | if (name == NameGreater::name) { |
403 | 25.5k | return Op::GT; |
404 | 25.5k | } |
405 | 26.1k | if (name == NameGreaterOrEquals::name) { |
406 | 26.1k | return Op::GE; |
407 | 26.1k | } |
408 | 18.4E | return std::nullopt; |
409 | 26.0k | } |
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 | 525k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 470k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 2.79k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 9.61k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 14.6k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 4.65k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 23.0k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 525k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 470k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 2.79k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 9.62k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 14.6k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 4.65k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 23.0k | FunctionComparison() = default; |
|
419 | | |
420 | 1.26M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 1.24M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 654 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 3.08k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 12.1k | 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 | 8.14k | 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 | 202k | const ColumnPtr& col_right_ptr) const { |
426 | 202k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 202k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 202k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 202k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 202k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 202k | if (!left_is_const && !right_is_const) { |
435 | 11.4k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 11.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 11.4k | vec_res.resize(col_left->get_data().size()); |
439 | 11.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 11.4k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 11.4k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 11.4k | vec_res); |
443 | | |
444 | 11.4k | block.replace_by_position(result, std::move(col_res)); |
445 | 191k | } else if (!left_is_const && right_is_const) { |
446 | 125k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 125k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 125k | vec_res.resize(col_left->size()); |
450 | 125k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 125k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 125k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 125k | col_right->get_element(0), vec_res); |
454 | | |
455 | 125k | block.replace_by_position(result, std::move(col_res)); |
456 | 125k | } else if (left_is_const && !right_is_const) { |
457 | 65.5k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 65.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 65.5k | vec_res.resize(col_right->size()); |
461 | 65.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 65.5k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 65.5k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 65.5k | col_right->get_data(), vec_res); |
465 | | |
466 | 65.5k | block.replace_by_position(result, std::move(col_res)); |
467 | 65.5k | } |
468 | 202k | return Status::OK(); |
469 | 202k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 880 | const ColumnPtr& col_right_ptr) const { | 426 | 880 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 880 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 880 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 880 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 880 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 880 | if (!left_is_const && !right_is_const) { | 435 | 76 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 76 | vec_res.resize(col_left->get_data().size()); | 439 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 76 | vec_res); | 443 | | | 444 | 76 | block.replace_by_position(result, std::move(col_res)); | 445 | 804 | } else if (!left_is_const && right_is_const) { | 446 | 804 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 804 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 804 | vec_res.resize(col_left->size()); | 450 | 804 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 804 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 804 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 804 | col_right->get_element(0), vec_res); | 454 | | | 455 | 804 | block.replace_by_position(result, std::move(col_res)); | 456 | 804 | } 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 | 880 | return Status::OK(); | 469 | 880 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.66k | const ColumnPtr& col_right_ptr) const { | 426 | 1.66k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.66k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.66k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.66k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.66k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.66k | if (!left_is_const && !right_is_const) { | 435 | 731 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 731 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 731 | vec_res.resize(col_left->get_data().size()); | 439 | 731 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 731 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 731 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 731 | vec_res); | 443 | | | 444 | 731 | block.replace_by_position(result, std::move(col_res)); | 445 | 938 | } else if (!left_is_const && right_is_const) { | 446 | 938 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 938 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 938 | vec_res.resize(col_left->size()); | 450 | 938 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 938 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 938 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 938 | col_right->get_element(0), vec_res); | 454 | | | 455 | 938 | block.replace_by_position(result, std::move(col_res)); | 456 | 938 | } 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.66k | return Status::OK(); | 469 | 1.66k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 696 | const ColumnPtr& col_right_ptr) const { | 426 | 696 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 696 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 696 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 696 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 696 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 696 | if (!left_is_const && !right_is_const) { | 435 | 408 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 408 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 408 | vec_res.resize(col_left->get_data().size()); | 439 | 408 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 408 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 408 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 408 | vec_res); | 443 | | | 444 | 408 | block.replace_by_position(result, std::move(col_res)); | 445 | 408 | } else if (!left_is_const && right_is_const) { | 446 | 288 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 288 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 288 | vec_res.resize(col_left->size()); | 450 | 288 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 288 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 288 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 288 | col_right->get_element(0), vec_res); | 454 | | | 455 | 288 | block.replace_by_position(result, std::move(col_res)); | 456 | 288 | } 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 | 696 | return Status::OK(); | 469 | 696 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 8.24k | const ColumnPtr& col_right_ptr) const { | 426 | 8.24k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 8.24k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 8.24k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 8.24k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 8.24k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 8.24k | if (!left_is_const && !right_is_const) { | 435 | 177 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 177 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 177 | vec_res.resize(col_left->get_data().size()); | 439 | 177 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 177 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 177 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 177 | vec_res); | 443 | | | 444 | 177 | block.replace_by_position(result, std::move(col_res)); | 445 | 8.06k | } else if (!left_is_const && right_is_const) { | 446 | 7.76k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 7.76k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 7.76k | vec_res.resize(col_left->size()); | 450 | 7.76k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 7.76k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 7.76k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 7.76k | col_right->get_element(0), vec_res); | 454 | | | 455 | 7.76k | block.replace_by_position(result, std::move(col_res)); | 456 | 7.76k | } else if (left_is_const && !right_is_const) { | 457 | 300 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 300 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 300 | vec_res.resize(col_right->size()); | 461 | 300 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 300 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 300 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 300 | col_right->get_data(), vec_res); | 465 | | | 466 | 300 | block.replace_by_position(result, std::move(col_res)); | 467 | 300 | } | 468 | 8.24k | return Status::OK(); | 469 | 8.24k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.42k | const ColumnPtr& col_right_ptr) const { | 426 | 1.42k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.42k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.42k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.42k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.42k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.42k | if (!left_is_const && !right_is_const) { | 435 | 98 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 98 | vec_res.resize(col_left->get_data().size()); | 439 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 98 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 98 | vec_res); | 443 | | | 444 | 98 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.33k | } else if (!left_is_const && right_is_const) { | 446 | 1.29k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.29k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.29k | vec_res.resize(col_left->size()); | 450 | 1.29k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.29k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.29k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.29k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.29k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.29k | } else if (left_is_const && !right_is_const) { | 457 | 36 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 36 | vec_res.resize(col_right->size()); | 461 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 36 | col_right->get_data(), vec_res); | 465 | | | 466 | 36 | block.replace_by_position(result, std::move(col_res)); | 467 | 36 | } | 468 | 1.42k | return Status::OK(); | 469 | 1.42k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 6.99k | const ColumnPtr& col_right_ptr) const { | 426 | 6.99k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 6.99k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 6.99k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 6.99k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 6.99k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 6.99k | if (!left_is_const && !right_is_const) { | 435 | 1.03k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.03k | vec_res.resize(col_left->get_data().size()); | 439 | 1.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.03k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.03k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.03k | vec_res); | 443 | | | 444 | 1.03k | block.replace_by_position(result, std::move(col_res)); | 445 | 5.95k | } else if (!left_is_const && right_is_const) { | 446 | 5.85k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 5.85k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 5.85k | vec_res.resize(col_left->size()); | 450 | 5.85k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 5.85k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 5.85k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 5.85k | col_right->get_element(0), vec_res); | 454 | | | 455 | 5.85k | block.replace_by_position(result, std::move(col_res)); | 456 | 5.85k | } else if (left_is_const && !right_is_const) { | 457 | 102 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 102 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 102 | vec_res.resize(col_right->size()); | 461 | 102 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 102 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 102 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 102 | col_right->get_data(), vec_res); | 465 | | | 466 | 102 | block.replace_by_position(result, std::move(col_res)); | 467 | 102 | } | 468 | 6.99k | return Status::OK(); | 469 | 6.99k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 25.3k | const ColumnPtr& col_right_ptr) const { | 426 | 25.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 25.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 25.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 25.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 25.3k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 25.3k | if (!left_is_const && !right_is_const) { | 435 | 273 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 273 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 273 | vec_res.resize(col_left->get_data().size()); | 439 | 273 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 273 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 273 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 273 | vec_res); | 443 | | | 444 | 273 | block.replace_by_position(result, std::move(col_res)); | 445 | 25.0k | } else if (!left_is_const && right_is_const) { | 446 | 24.5k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 24.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 24.5k | vec_res.resize(col_left->size()); | 450 | 24.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 24.5k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 24.5k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 24.5k | col_right->get_element(0), vec_res); | 454 | | | 455 | 24.5k | block.replace_by_position(result, std::move(col_res)); | 456 | 24.5k | } else if (left_is_const && !right_is_const) { | 457 | 510 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 510 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 510 | vec_res.resize(col_right->size()); | 461 | 510 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 510 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 510 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 510 | col_right->get_data(), vec_res); | 465 | | | 466 | 510 | block.replace_by_position(result, std::move(col_res)); | 467 | 510 | } | 468 | 25.3k | return Status::OK(); | 469 | 25.3k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 131 | const ColumnPtr& col_right_ptr) const { | 426 | 131 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 131 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 131 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 131 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 131 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 131 | if (!left_is_const && !right_is_const) { | 435 | 86 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 86 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 86 | vec_res.resize(col_left->get_data().size()); | 439 | 86 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 86 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 86 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 86 | vec_res); | 443 | | | 444 | 86 | block.replace_by_position(result, std::move(col_res)); | 445 | 86 | } else if (!left_is_const && right_is_const) { | 446 | 37 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 37 | vec_res.resize(col_left->size()); | 450 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 37 | col_right->get_element(0), vec_res); | 454 | | | 455 | 37 | block.replace_by_position(result, std::move(col_res)); | 456 | 37 | } else if (left_is_const && !right_is_const) { | 457 | 8 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 8 | vec_res.resize(col_right->size()); | 461 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 8 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 8 | col_right->get_data(), vec_res); | 465 | | | 466 | 8 | block.replace_by_position(result, std::move(col_res)); | 467 | 8 | } | 468 | 131 | return Status::OK(); | 469 | 131 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 32 | const ColumnPtr& col_right_ptr) const { | 426 | 32 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 32 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 32 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 32 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 32 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 32 | 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 | 16 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 16 | vec_res.resize(col_left->size()); | 450 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 16 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 16 | col_right->get_element(0), vec_res); | 454 | | | 455 | 16 | block.replace_by_position(result, std::move(col_res)); | 456 | 16 | } 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 | 32 | return Status::OK(); | 469 | 32 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 30 | const ColumnPtr& col_right_ptr) const { | 426 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 30 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 30 | if (!left_is_const && !right_is_const) { | 435 | 24 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 24 | vec_res.resize(col_left->get_data().size()); | 439 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 24 | vec_res); | 443 | | | 444 | 24 | block.replace_by_position(result, std::move(col_res)); | 445 | 24 | } 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 | 30 | return Status::OK(); | 469 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 106 | const ColumnPtr& col_right_ptr) const { | 426 | 106 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 106 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 106 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 106 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 106 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 106 | if (!left_is_const && !right_is_const) { | 435 | 106 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 106 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 106 | vec_res.resize(col_left->get_data().size()); | 439 | 106 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 106 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 106 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 106 | vec_res); | 443 | | | 444 | 106 | block.replace_by_position(result, std::move(col_res)); | 445 | 106 | } 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 | 106 | return Status::OK(); | 469 | 106 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 957 | const ColumnPtr& col_right_ptr) const { | 426 | 957 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 957 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 957 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 957 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 957 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 957 | if (!left_is_const && !right_is_const) { | 435 | 109 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 109 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 109 | vec_res.resize(col_left->get_data().size()); | 439 | 109 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 109 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 109 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 109 | vec_res); | 443 | | | 444 | 109 | block.replace_by_position(result, std::move(col_res)); | 445 | 848 | } else if (!left_is_const && right_is_const) { | 446 | 848 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 848 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 848 | vec_res.resize(col_left->size()); | 450 | 848 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 848 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 848 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 848 | col_right->get_element(0), vec_res); | 454 | | | 455 | 848 | block.replace_by_position(result, std::move(col_res)); | 456 | 848 | } 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 | 957 | return Status::OK(); | 469 | 957 | } |
_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 | 81 | const ColumnPtr& col_right_ptr) const { | 426 | 81 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 81 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 81 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 81 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 81 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 81 | if (!left_is_const && !right_is_const) { | 435 | 47 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 47 | vec_res.resize(col_left->get_data().size()); | 439 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 47 | vec_res); | 443 | | | 444 | 47 | block.replace_by_position(result, std::move(col_res)); | 445 | 47 | } 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 | 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 | 81 | return Status::OK(); | 469 | 81 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_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 | 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 | 2 | } 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 | 2 | return Status::OK(); | 469 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 92 | const ColumnPtr& col_right_ptr) const { | 426 | 92 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 92 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 92 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 92 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 92 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 92 | if (!left_is_const && !right_is_const) { | 435 | 56 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 56 | vec_res.resize(col_left->get_data().size()); | 439 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 56 | vec_res); | 443 | | | 444 | 56 | block.replace_by_position(result, std::move(col_res)); | 445 | 56 | } else if (!left_is_const && right_is_const) { | 446 | 36 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 36 | vec_res.resize(col_left->size()); | 450 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 36 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 36 | col_right->get_element(0), vec_res); | 454 | | | 455 | 36 | block.replace_by_position(result, std::move(col_res)); | 456 | 36 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 92 | return Status::OK(); | 469 | 92 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 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.89k | const ColumnPtr& col_right_ptr) const { | 426 | 2.89k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.89k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.89k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.89k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.89k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.89k | if (!left_is_const && !right_is_const) { | 435 | 2.11k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2.11k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2.11k | vec_res.resize(col_left->get_data().size()); | 439 | 2.11k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2.11k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2.11k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2.11k | vec_res); | 443 | | | 444 | 2.11k | block.replace_by_position(result, std::move(col_res)); | 445 | 2.11k | } else if (!left_is_const && right_is_const) { | 446 | 782 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 782 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 782 | vec_res.resize(col_left->size()); | 450 | 782 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 782 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 782 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 782 | col_right->get_element(0), vec_res); | 454 | | | 455 | 782 | block.replace_by_position(result, std::move(col_res)); | 456 | 782 | } 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.89k | return Status::OK(); | 469 | 2.89k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.40k | const ColumnPtr& col_right_ptr) const { | 426 | 1.40k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.40k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.40k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.40k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.40k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.40k | if (!left_is_const && !right_is_const) { | 435 | 327 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 327 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 327 | vec_res.resize(col_left->get_data().size()); | 439 | 327 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 327 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 327 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 327 | vec_res); | 443 | | | 444 | 327 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.07k | } else if (!left_is_const && right_is_const) { | 446 | 1.01k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.01k | vec_res.resize(col_left->size()); | 450 | 1.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.01k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.01k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.01k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.01k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.01k | } else if (left_is_const && !right_is_const) { | 457 | 56 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 56 | vec_res.resize(col_right->size()); | 461 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 56 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 56 | col_right->get_data(), vec_res); | 465 | | | 466 | 56 | block.replace_by_position(result, std::move(col_res)); | 467 | 56 | } | 468 | 1.40k | return Status::OK(); | 469 | 1.40k | } |
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.16k | const ColumnPtr& col_right_ptr) const { | 426 | 1.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.16k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.16k | if (!left_is_const && !right_is_const) { | 435 | 1.04k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.04k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.04k | vec_res.resize(col_left->get_data().size()); | 439 | 1.04k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.04k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.04k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.04k | vec_res); | 443 | | | 444 | 1.04k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.04k | } 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 | 1.16k | return Status::OK(); | 469 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 62 | const ColumnPtr& col_right_ptr) const { | 426 | 62 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 62 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 62 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 62 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 62 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 62 | 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 | 62 | } else if (!left_is_const && right_is_const) { | 446 | 62 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 62 | vec_res.resize(col_left->size()); | 450 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 62 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 62 | col_right->get_element(0), vec_res); | 454 | | | 455 | 62 | block.replace_by_position(result, std::move(col_res)); | 456 | 62 | } 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 | 62 | return Status::OK(); | 469 | 62 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_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_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.47k | const ColumnPtr& col_right_ptr) const { | 426 | 1.47k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.47k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.47k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.47k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.47k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.47k | if (!left_is_const && !right_is_const) { | 435 | 38 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 38 | vec_res.resize(col_left->get_data().size()); | 439 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 38 | vec_res); | 443 | | | 444 | 38 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.43k | } else if (!left_is_const && right_is_const) { | 446 | 1.18k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.18k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.18k | vec_res.resize(col_left->size()); | 450 | 1.18k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.18k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.18k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.18k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.18k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.18k | } else if (left_is_const && !right_is_const) { | 457 | 252 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 252 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 252 | vec_res.resize(col_right->size()); | 461 | 252 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 252 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 252 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 252 | col_right->get_data(), vec_res); | 465 | | | 466 | 252 | block.replace_by_position(result, std::move(col_res)); | 467 | 252 | } | 468 | 1.47k | return Status::OK(); | 469 | 1.47k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.80k | const ColumnPtr& col_right_ptr) const { | 426 | 1.80k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.80k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.80k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.80k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.80k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.80k | 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.69k | } 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 | 240 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 240 | vec_res.resize(col_right->size()); | 461 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 240 | col_right->get_data(), vec_res); | 465 | | | 466 | 240 | block.replace_by_position(result, std::move(col_res)); | 467 | 240 | } | 468 | 1.80k | return Status::OK(); | 469 | 1.80k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 74.8k | const ColumnPtr& col_right_ptr) const { | 426 | 74.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 74.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 74.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 74.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 74.8k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 74.8k | if (!left_is_const && !right_is_const) { | 435 | 79 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 79 | vec_res.resize(col_left->get_data().size()); | 439 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 79 | vec_res); | 443 | | | 444 | 79 | block.replace_by_position(result, std::move(col_res)); | 445 | 74.8k | } else if (!left_is_const && right_is_const) { | 446 | 12.2k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 12.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 12.2k | vec_res.resize(col_left->size()); | 450 | 12.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 12.2k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 12.2k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 12.2k | col_right->get_element(0), vec_res); | 454 | | | 455 | 12.2k | block.replace_by_position(result, std::move(col_res)); | 456 | 62.5k | } else if (left_is_const && !right_is_const) { | 457 | 62.5k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 62.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 62.5k | vec_res.resize(col_right->size()); | 461 | 62.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 62.5k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 62.5k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 62.5k | col_right->get_data(), vec_res); | 465 | | | 466 | 62.5k | block.replace_by_position(result, std::move(col_res)); | 467 | 62.5k | } | 468 | 74.8k | return Status::OK(); | 469 | 74.8k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 8.66k | const ColumnPtr& col_right_ptr) const { | 426 | 8.66k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 8.66k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 8.66k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 8.66k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 8.66k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 8.66k | 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 | 8.59k | } else if (!left_is_const && right_is_const) { | 446 | 8.08k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 8.08k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 8.08k | vec_res.resize(col_left->size()); | 450 | 8.08k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 8.08k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 8.08k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 8.08k | col_right->get_element(0), vec_res); | 454 | | | 455 | 8.08k | block.replace_by_position(result, std::move(col_res)); | 456 | 8.08k | } else if (left_is_const && !right_is_const) { | 457 | 508 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 508 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 508 | vec_res.resize(col_right->size()); | 461 | 508 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 508 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 508 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 508 | col_right->get_data(), vec_res); | 465 | | | 466 | 508 | block.replace_by_position(result, std::move(col_res)); | 467 | 508 | } | 468 | 8.66k | return Status::OK(); | 469 | 8.66k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 234 | const ColumnPtr& col_right_ptr) const { | 426 | 234 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 234 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 234 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 234 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 234 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 234 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 231 | } 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 | 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 | 234 | return Status::OK(); | 469 | 234 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 3 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3 | vec_res.resize(col_left->size()); | 450 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3 | col_right->get_element(0), vec_res); | 454 | | | 455 | 3 | block.replace_by_position(result, std::move(col_res)); | 456 | 3 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 228 | const ColumnPtr& col_right_ptr) const { | 426 | 228 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 228 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 228 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 228 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 228 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 228 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 208 | } else if (!left_is_const && right_is_const) { | 446 | 208 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 208 | vec_res.resize(col_left->size()); | 450 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 208 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 208 | col_right->get_element(0), vec_res); | 454 | | | 455 | 208 | block.replace_by_position(result, std::move(col_res)); | 456 | 208 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 228 | return Status::OK(); | 469 | 228 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.52k | const ColumnPtr& col_right_ptr) const { | 426 | 1.52k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.52k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.52k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.52k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.52k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.52k | if (!left_is_const && !right_is_const) { | 435 | 25 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 25 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 25 | vec_res.resize(col_left->get_data().size()); | 439 | 25 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 25 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 25 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 25 | vec_res); | 443 | | | 444 | 25 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.50k | } else if (!left_is_const && right_is_const) { | 446 | 1.50k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.50k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.50k | vec_res.resize(col_left->size()); | 450 | 1.50k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.50k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.50k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.50k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.50k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.50k | } 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.52k | return Status::OK(); | 469 | 1.52k | } |
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 | 185 | const ColumnPtr& col_right_ptr) const { | 426 | 185 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 185 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 185 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 185 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 185 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 185 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 173 | } else if (!left_is_const && right_is_const) { | 446 | 173 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 173 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 173 | vec_res.resize(col_left->size()); | 450 | 173 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 173 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 173 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 173 | col_right->get_element(0), vec_res); | 454 | | | 455 | 173 | block.replace_by_position(result, std::move(col_res)); | 456 | 173 | } 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 | 185 | return Status::OK(); | 469 | 185 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.49k | const ColumnPtr& col_right_ptr) const { | 426 | 1.49k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.49k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.49k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.49k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.49k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.49k | 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.46k | } 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 | 6 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 6 | vec_res.resize(col_right->size()); | 461 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 6 | col_right->get_data(), vec_res); | 465 | | | 466 | 6 | block.replace_by_position(result, std::move(col_res)); | 467 | 6 | } | 468 | 1.49k | return Status::OK(); | 469 | 1.49k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 584 | const ColumnPtr& col_right_ptr) const { | 426 | 584 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 584 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 584 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 584 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 584 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 584 | if (!left_is_const && !right_is_const) { | 435 | 66 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 66 | vec_res.resize(col_left->get_data().size()); | 439 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 66 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 66 | vec_res); | 443 | | | 444 | 66 | block.replace_by_position(result, std::move(col_res)); | 445 | 518 | } else if (!left_is_const && right_is_const) { | 446 | 518 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 518 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 518 | vec_res.resize(col_left->size()); | 450 | 518 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 518 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 518 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 518 | col_right->get_element(0), vec_res); | 454 | | | 455 | 518 | block.replace_by_position(result, std::move(col_res)); | 456 | 518 | } 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 | 584 | return Status::OK(); | 469 | 584 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 50 | const ColumnPtr& col_right_ptr) const { | 426 | 50 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 50 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 50 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 50 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 50 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 50 | if (!left_is_const && !right_is_const) { | 435 | 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 | 50 | } else if (!left_is_const && right_is_const) { | 446 | 50 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 50 | vec_res.resize(col_left->size()); | 450 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 50 | col_right->get_element(0), vec_res); | 454 | | | 455 | 50 | block.replace_by_position(result, std::move(col_res)); | 456 | 50 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 50 | return Status::OK(); | 469 | 50 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 40 | const ColumnPtr& col_right_ptr) const { | 426 | 40 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 40 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 40 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 40 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 40 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 40 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 40 | } else if (!left_is_const && right_is_const) { | 446 | 40 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 40 | vec_res.resize(col_left->size()); | 450 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 40 | col_right->get_element(0), vec_res); | 454 | | | 455 | 40 | block.replace_by_position(result, std::move(col_res)); | 456 | 40 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 40 | return Status::OK(); | 469 | 40 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 11.5k | const ColumnPtr& col_right_ptr) const { | 426 | 11.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 11.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 11.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 11.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 11.5k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 11.5k | if (!left_is_const && !right_is_const) { | 435 | 49 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 49 | vec_res.resize(col_left->get_data().size()); | 439 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 49 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 49 | vec_res); | 443 | | | 444 | 49 | block.replace_by_position(result, std::move(col_res)); | 445 | 11.5k | } else if (!left_is_const && right_is_const) { | 446 | 11.5k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 11.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 11.5k | vec_res.resize(col_left->size()); | 450 | 11.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 11.5k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 11.5k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 11.5k | col_right->get_element(0), vec_res); | 454 | | | 455 | 11.5k | block.replace_by_position(result, std::move(col_res)); | 456 | 11.5k | } 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.5k | return Status::OK(); | 469 | 11.5k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 449 | const ColumnPtr& col_right_ptr) const { | 426 | 449 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 449 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 449 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 449 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 449 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 449 | if (!left_is_const && !right_is_const) { | 435 | 9 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 9 | vec_res.resize(col_left->get_data().size()); | 439 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 9 | vec_res); | 443 | | | 444 | 9 | block.replace_by_position(result, std::move(col_res)); | 445 | 440 | } else if (!left_is_const && right_is_const) { | 446 | 440 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 440 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 440 | vec_res.resize(col_left->size()); | 450 | 440 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 440 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 440 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 440 | col_right->get_element(0), vec_res); | 454 | | | 455 | 440 | block.replace_by_position(result, std::move(col_res)); | 456 | 440 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 449 | return Status::OK(); | 469 | 449 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 44 | const ColumnPtr& col_right_ptr) const { | 426 | 44 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 44 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 44 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 44 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 44 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 44 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 44 | } else if (!left_is_const && right_is_const) { | 446 | 44 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 44 | vec_res.resize(col_left->size()); | 450 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 44 | col_right->get_element(0), vec_res); | 454 | | | 455 | 44 | block.replace_by_position(result, std::move(col_res)); | 456 | 44 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 44 | return Status::OK(); | 469 | 44 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_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 | 218 | const ColumnPtr& col_right_ptr) const { | 426 | 218 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 218 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 218 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 218 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 218 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 218 | if (!left_is_const && !right_is_const) { | 435 | 50 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 50 | vec_res.resize(col_left->get_data().size()); | 439 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 50 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 50 | vec_res); | 443 | | | 444 | 50 | block.replace_by_position(result, std::move(col_res)); | 445 | 168 | } else if (!left_is_const && right_is_const) { | 446 | 168 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 168 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 168 | vec_res.resize(col_left->size()); | 450 | 168 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 168 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 168 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 168 | col_right->get_element(0), vec_res); | 454 | | | 455 | 168 | block.replace_by_position(result, std::move(col_res)); | 456 | 168 | } 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 | 218 | return Status::OK(); | 469 | 218 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 155 | const ColumnPtr& col_right_ptr) const { | 426 | 155 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 155 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 155 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 155 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 155 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 155 | 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 | 132 | } else if (!left_is_const && right_is_const) { | 446 | 132 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 132 | vec_res.resize(col_left->size()); | 450 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 132 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 132 | col_right->get_element(0), vec_res); | 454 | | | 455 | 132 | block.replace_by_position(result, std::move(col_res)); | 456 | 132 | } 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 | 155 | return Status::OK(); | 469 | 155 | } |
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.32k | const ColumnPtr& col_right_ptr) const { | 426 | 2.32k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.32k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.32k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.32k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.32k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.32k | if (!left_is_const && !right_is_const) { | 435 | 1.88k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.88k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.88k | vec_res.resize(col_left->get_data().size()); | 439 | 1.88k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.88k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.88k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.88k | vec_res); | 443 | | | 444 | 1.88k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.88k | } else if (!left_is_const && right_is_const) { | 446 | 438 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 438 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 438 | vec_res.resize(col_left->size()); | 450 | 438 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 438 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 438 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 438 | col_right->get_element(0), vec_res); | 454 | | | 455 | 438 | block.replace_by_position(result, std::move(col_res)); | 456 | 438 | } 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.32k | return Status::OK(); | 469 | 2.32k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 499 | const ColumnPtr& col_right_ptr) const { | 426 | 499 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 499 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 499 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 499 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 499 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 499 | if (!left_is_const && !right_is_const) { | 435 | 270 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 270 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 270 | vec_res.resize(col_left->get_data().size()); | 439 | 270 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 270 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 270 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 270 | vec_res); | 443 | | | 444 | 270 | block.replace_by_position(result, std::move(col_res)); | 445 | 270 | } else if (!left_is_const && right_is_const) { | 446 | 229 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 229 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 229 | vec_res.resize(col_left->size()); | 450 | 229 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 229 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 229 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 229 | col_right->get_element(0), vec_res); | 454 | | | 455 | 229 | block.replace_by_position(result, std::move(col_res)); | 456 | 229 | } 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 | 499 | return Status::OK(); | 469 | 499 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 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 | 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 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.16k | const ColumnPtr& col_right_ptr) const { | 426 | 2.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.16k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.16k | if (!left_is_const && !right_is_const) { | 435 | 157 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 157 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 157 | vec_res.resize(col_left->get_data().size()); | 439 | 157 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 157 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 157 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 157 | vec_res); | 443 | | | 444 | 157 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.00k | } else if (!left_is_const && right_is_const) { | 446 | 1.74k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.74k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.74k | vec_res.resize(col_left->size()); | 450 | 1.74k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.74k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.74k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.74k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.74k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.74k | } else if (left_is_const && !right_is_const) { | 457 | 264 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 264 | vec_res.resize(col_right->size()); | 461 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 264 | col_right->get_data(), vec_res); | 465 | | | 466 | 264 | block.replace_by_position(result, std::move(col_res)); | 467 | 264 | } | 468 | 2.16k | return Status::OK(); | 469 | 2.16k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 355 | const ColumnPtr& col_right_ptr) const { | 426 | 355 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 355 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 355 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 355 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 355 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 356 | if (!left_is_const && !right_is_const) { | 435 | 138 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 138 | vec_res.resize(col_left->get_data().size()); | 439 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 138 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 138 | vec_res); | 443 | | | 444 | 138 | block.replace_by_position(result, std::move(col_res)); | 445 | 218 | } else if (!left_is_const && right_is_const) { | 446 | 218 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 218 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 218 | vec_res.resize(col_left->size()); | 450 | 218 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 218 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 218 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 218 | col_right->get_element(0), vec_res); | 454 | | | 455 | 218 | 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 | 355 | return Status::OK(); | 469 | 355 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.40k | const ColumnPtr& col_right_ptr) const { | 426 | 2.40k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.40k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.40k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.40k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.40k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.40k | if (!left_is_const && !right_is_const) { | 435 | 173 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 173 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 173 | vec_res.resize(col_left->get_data().size()); | 439 | 173 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 173 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 173 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 173 | vec_res); | 443 | | | 444 | 173 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.23k | } else if (!left_is_const && right_is_const) { | 446 | 2.04k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.04k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.04k | vec_res.resize(col_left->size()); | 450 | 2.04k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.04k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.04k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.04k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.04k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.04k | } else if (left_is_const && !right_is_const) { | 457 | 191 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 191 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 191 | vec_res.resize(col_right->size()); | 461 | 191 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 191 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 191 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 191 | col_right->get_data(), vec_res); | 465 | | | 466 | 191 | block.replace_by_position(result, std::move(col_res)); | 467 | 191 | } | 468 | 2.40k | return Status::OK(); | 469 | 2.40k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.25k | const ColumnPtr& col_right_ptr) const { | 426 | 1.25k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.25k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.25k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.25k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.25k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.25k | if (!left_is_const && !right_is_const) { | 435 | 210 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 210 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 210 | vec_res.resize(col_left->get_data().size()); | 439 | 210 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 210 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 210 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 210 | vec_res); | 443 | | | 444 | 210 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.04k | } else if (!left_is_const && right_is_const) { | 446 | 961 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 961 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 961 | vec_res.resize(col_left->size()); | 450 | 961 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 961 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 961 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 961 | col_right->get_element(0), vec_res); | 454 | | | 455 | 961 | block.replace_by_position(result, std::move(col_res)); | 456 | 961 | } 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.25k | return Status::OK(); | 469 | 1.25k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 300 | const ColumnPtr& col_right_ptr) const { | 426 | 300 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 300 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 300 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 300 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 300 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 300 | 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 | 156 | } else if (!left_is_const && right_is_const) { | 446 | 60 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 60 | vec_res.resize(col_left->size()); | 450 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 60 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 60 | col_right->get_element(0), vec_res); | 454 | | | 455 | 60 | block.replace_by_position(result, std::move(col_res)); | 456 | 96 | } else if (left_is_const && !right_is_const) { | 457 | 96 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 96 | vec_res.resize(col_right->size()); | 461 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 96 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 96 | col_right->get_data(), vec_res); | 465 | | | 466 | 96 | block.replace_by_position(result, std::move(col_res)); | 467 | 96 | } | 468 | 300 | return Status::OK(); | 469 | 300 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 17 | const ColumnPtr& col_right_ptr) const { | 426 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 17 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 17 | if (!left_is_const && !right_is_const) { | 435 | 15 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 15 | vec_res.resize(col_left->get_data().size()); | 439 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 15 | vec_res); | 443 | | | 444 | 15 | block.replace_by_position(result, std::move(col_res)); | 445 | 15 | } 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 | 17 | return Status::OK(); | 469 | 17 | } |
_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 | 166 | const ColumnPtr& col_right_ptr) const { | 426 | 166 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 166 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 166 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 166 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 166 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 166 | if (!left_is_const && !right_is_const) { | 435 | 140 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 140 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 140 | vec_res.resize(col_left->get_data().size()); | 439 | 140 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 140 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 140 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 140 | vec_res); | 443 | | | 444 | 140 | block.replace_by_position(result, std::move(col_res)); | 445 | 140 | } 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 | 166 | return Status::OK(); | 469 | 166 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 361 | const ColumnPtr& col_right_ptr) const { | 426 | 361 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 361 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 361 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 361 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 361 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 361 | if (!left_is_const && !right_is_const) { | 435 | 148 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 148 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 148 | vec_res.resize(col_left->get_data().size()); | 439 | 148 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 148 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 148 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 148 | vec_res); | 443 | | | 444 | 148 | block.replace_by_position(result, std::move(col_res)); | 445 | 213 | } else if (!left_is_const && right_is_const) { | 446 | 213 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 213 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 213 | vec_res.resize(col_left->size()); | 450 | 213 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 213 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 213 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 213 | col_right->get_element(0), vec_res); | 454 | | | 455 | 213 | block.replace_by_position(result, std::move(col_res)); | 456 | 213 | } 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 | 361 | return Status::OK(); | 469 | 361 | } |
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 | 198 | const ColumnPtr& col_right_ptr) const { | 426 | 198 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 198 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 198 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 198 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 198 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 198 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 186 | } else if (!left_is_const && right_is_const) { | 446 | 186 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 186 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 186 | vec_res.resize(col_left->size()); | 450 | 186 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 186 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 186 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 186 | col_right->get_element(0), vec_res); | 454 | | | 455 | 186 | block.replace_by_position(result, std::move(col_res)); | 456 | 186 | } 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 | 198 | return Status::OK(); | 469 | 198 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 14.7k | const ColumnPtr& col_right_ptr) const { | 426 | 14.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 14.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 14.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 14.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 14.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 14.7k | if (!left_is_const && !right_is_const) { | 435 | 439 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 439 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 439 | vec_res.resize(col_left->get_data().size()); | 439 | 439 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 439 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 439 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 439 | vec_res); | 443 | | | 444 | 439 | block.replace_by_position(result, std::move(col_res)); | 445 | 14.3k | } else if (!left_is_const && right_is_const) { | 446 | 14.3k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 14.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 14.3k | vec_res.resize(col_left->size()); | 450 | 14.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 14.3k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 14.3k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 14.3k | col_right->get_element(0), vec_res); | 454 | | | 455 | 14.3k | block.replace_by_position(result, std::move(col_res)); | 456 | 14.3k | } else if (left_is_const && !right_is_const) { | 457 | 5 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 5 | vec_res.resize(col_right->size()); | 461 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 5 | col_right->get_data(), vec_res); | 465 | | | 466 | 5 | block.replace_by_position(result, std::move(col_res)); | 467 | 5 | } | 468 | 14.7k | return Status::OK(); | 469 | 14.7k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 373 | const ColumnPtr& col_right_ptr) const { | 426 | 373 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 373 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 373 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 373 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 373 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 373 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 313 | } else if (!left_is_const && right_is_const) { | 446 | 313 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 313 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 313 | vec_res.resize(col_left->size()); | 450 | 313 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 313 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 313 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 313 | col_right->get_element(0), vec_res); | 454 | | | 455 | 313 | block.replace_by_position(result, std::move(col_res)); | 456 | 313 | } 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 | 373 | return Status::OK(); | 469 | 373 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 52 | const ColumnPtr& col_right_ptr) const { | 426 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 52 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 52 | if (!left_is_const && !right_is_const) { | 435 | 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 | 51 | } else if (!left_is_const && right_is_const) { | 446 | 51 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 51 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 51 | vec_res.resize(col_left->size()); | 450 | 51 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 51 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 51 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 51 | col_right->get_element(0), vec_res); | 454 | | | 455 | 51 | block.replace_by_position(result, std::move(col_res)); | 456 | 51 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 52 | return Status::OK(); | 469 | 52 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 57 | const ColumnPtr& col_right_ptr) const { | 426 | 57 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 57 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 57 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 57 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 57 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 57 | 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 | 57 | } else if (!left_is_const && right_is_const) { | 446 | 57 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 57 | vec_res.resize(col_left->size()); | 450 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 57 | col_right->get_element(0), vec_res); | 454 | | | 455 | 57 | block.replace_by_position(result, std::move(col_res)); | 456 | 57 | } 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 | 57 | return Status::OK(); | 469 | 57 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 20.0k | const ColumnPtr& col_right_ptr) const { | 426 | 20.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 20.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 20.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 20.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 20.0k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 20.0k | 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 | 20.0k | } else if (!left_is_const && right_is_const) { | 446 | 19.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 19.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 19.7k | vec_res.resize(col_left->size()); | 450 | 19.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 19.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 19.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 19.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 19.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 19.7k | } else if (left_is_const && !right_is_const) { | 457 | 281 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 281 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 281 | vec_res.resize(col_right->size()); | 461 | 281 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 281 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 281 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 281 | col_right->get_data(), vec_res); | 465 | | | 466 | 281 | block.replace_by_position(result, std::move(col_res)); | 467 | 281 | } | 468 | 20.0k | return Status::OK(); | 469 | 20.0k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 929 | const ColumnPtr& col_right_ptr) const { | 426 | 929 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 929 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 929 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 929 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 929 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 929 | if (!left_is_const && !right_is_const) { | 435 | 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 | 898 | } else if (!left_is_const && right_is_const) { | 446 | 850 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 850 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 850 | vec_res.resize(col_left->size()); | 450 | 850 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 850 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 850 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 850 | col_right->get_element(0), vec_res); | 454 | | | 455 | 850 | block.replace_by_position(result, std::move(col_res)); | 456 | 850 | } 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 | 929 | return Status::OK(); | 469 | 929 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 63 | const ColumnPtr& col_right_ptr) const { | 426 | 63 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 63 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 63 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 63 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 63 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 63 | 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 | 63 | } else if (!left_is_const && right_is_const) { | 446 | 63 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 63 | vec_res.resize(col_left->size()); | 450 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 63 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 63 | col_right->get_element(0), vec_res); | 454 | | | 455 | 63 | block.replace_by_position(result, std::move(col_res)); | 456 | 63 | } 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 | 63 | return Status::OK(); | 469 | 63 | } |
_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 | 214 | const ColumnPtr& col_right_ptr) const { | 426 | 214 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 214 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 214 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 214 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 214 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 214 | if (!left_is_const && !right_is_const) { | 435 | 50 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 50 | vec_res.resize(col_left->get_data().size()); | 439 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 50 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 50 | vec_res); | 443 | | | 444 | 50 | 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 | 214 | return Status::OK(); | 469 | 214 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 134 | const ColumnPtr& col_right_ptr) const { | 426 | 134 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 134 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 134 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 134 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 134 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 134 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 114 | } else if (!left_is_const && right_is_const) { | 446 | 113 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 113 | vec_res.resize(col_left->size()); | 450 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 113 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 113 | col_right->get_element(0), vec_res); | 454 | | | 455 | 113 | block.replace_by_position(result, std::move(col_res)); | 456 | 113 | } else if (left_is_const && !right_is_const) { | 457 | 1 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1 | vec_res.resize(col_right->size()); | 461 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1 | col_right->get_data(), vec_res); | 465 | | | 466 | 1 | block.replace_by_position(result, std::move(col_res)); | 467 | 1 | } | 468 | 134 | return Status::OK(); | 469 | 134 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
470 | | |
471 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
472 | 15.5k | const ColumnWithTypeAndName& col_right) const { |
473 | 15.5k | auto call = [&](const auto& type) -> bool { |
474 | 15.5k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 15.5k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 15.5k | block, result, col_left, col_right); |
477 | 15.5k | return true; |
478 | 15.5k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 267 | auto call = [&](const auto& type) -> bool { | 474 | 267 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 267 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 267 | block, result, col_left, col_right); | 477 | 267 | return true; | 478 | 267 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 288 | auto call = [&](const auto& type) -> bool { | 474 | 288 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 288 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 288 | block, result, col_left, col_right); | 477 | 288 | return true; | 478 | 288 | }; |
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.17k | auto call = [&](const auto& type) -> bool { | 474 | 1.17k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.17k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.17k | block, result, col_left, col_right); | 477 | 1.17k | return true; | 478 | 1.17k | }; |
_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 | 71 | auto call = [&](const auto& type) -> bool { | 474 | 71 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 71 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 71 | block, result, col_left, col_right); | 477 | 71 | return true; | 478 | 71 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 176 | auto call = [&](const auto& type) -> bool { | 474 | 176 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 176 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 176 | block, result, col_left, col_right); | 477 | 176 | return true; | 478 | 176 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 28 | auto call = [&](const auto& type) -> bool { | 474 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 28 | block, result, col_left, col_right); | 477 | 28 | return true; | 478 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 8.65k | auto call = [&](const auto& type) -> bool { | 474 | 8.65k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 8.65k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 8.65k | block, result, col_left, col_right); | 477 | 8.65k | return true; | 478 | 8.65k | }; |
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 | 976 | auto call = [&](const auto& type) -> bool { | 474 | 976 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 976 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 976 | block, result, col_left, col_right); | 477 | 976 | return true; | 478 | 976 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 2 | auto call = [&](const auto& type) -> bool { | 474 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2 | block, result, col_left, col_right); | 477 | 2 | return true; | 478 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 5 | auto call = [&](const auto& type) -> bool { | 474 | 5 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 5 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 5 | block, result, col_left, col_right); | 477 | 5 | return true; | 478 | 5 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 294 | auto call = [&](const auto& type) -> bool { | 474 | 294 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 294 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 294 | block, result, col_left, col_right); | 477 | 294 | return true; | 478 | 294 | }; |
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 | 92 | auto call = [&](const auto& type) -> bool { | 474 | 92 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 92 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 92 | block, result, col_left, col_right); | 477 | 92 | return true; | 478 | 92 | }; |
_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 | 202 | auto call = [&](const auto& type) -> bool { | 474 | 202 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 202 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 202 | block, result, col_left, col_right); | 477 | 202 | return true; | 478 | 202 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 245 | auto call = [&](const auto& type) -> bool { | 474 | 245 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 245 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 245 | block, result, col_left, col_right); | 477 | 245 | return true; | 478 | 245 | }; |
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 | 451 | auto call = [&](const auto& type) -> bool { | 474 | 451 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 451 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 451 | block, result, col_left, col_right); | 477 | 451 | return true; | 478 | 451 | }; |
_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 | 6 | auto call = [&](const auto& type) -> bool { | 474 | 6 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 6 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 6 | block, result, col_left, col_right); | 477 | 6 | return true; | 478 | 6 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 1.97k | auto call = [&](const auto& type) -> bool { | 474 | 1.97k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.97k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.97k | block, result, col_left, col_right); | 477 | 1.97k | return true; | 478 | 1.97k | }; |
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 | 524 | auto call = [&](const auto& type) -> bool { | 474 | 524 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 524 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 524 | block, result, col_left, col_right); | 477 | 524 | return true; | 478 | 524 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 20 | auto call = [&](const auto& type) -> bool { | 474 | 20 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 20 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 20 | block, result, col_left, col_right); | 477 | 20 | return true; | 478 | 20 | }; |
|
479 | | |
480 | 15.5k | 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 | 15.5k | 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 | 15.5k | return Status::OK(); |
491 | 15.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.75k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.75k | auto call = [&](const auto& type) -> bool { | 474 | 1.75k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.75k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.75k | block, result, col_left, col_right); | 477 | 1.75k | return true; | 478 | 1.75k | }; | 479 | | | 480 | 1.75k | 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.75k | 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.75k | return Status::OK(); | 491 | 1.75k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 277 | const ColumnWithTypeAndName& col_right) const { | 473 | 277 | auto call = [&](const auto& type) -> bool { | 474 | 277 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 277 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 277 | block, result, col_left, col_right); | 477 | 277 | return true; | 478 | 277 | }; | 479 | | | 480 | 277 | 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 | 277 | 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 | 277 | return Status::OK(); | 491 | 277 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 9.65k | const ColumnWithTypeAndName& col_right) const { | 473 | 9.65k | auto call = [&](const auto& type) -> bool { | 474 | 9.65k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 9.65k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 9.65k | block, result, col_left, col_right); | 477 | 9.65k | return true; | 478 | 9.65k | }; | 479 | | | 480 | 9.65k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 9.65k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 9.65k | return Status::OK(); | 491 | 9.65k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 412 | const ColumnWithTypeAndName& col_right) const { | 473 | 412 | auto call = [&](const auto& type) -> bool { | 474 | 412 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 412 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 412 | block, result, col_left, col_right); | 477 | 412 | return true; | 478 | 412 | }; | 479 | | | 480 | 412 | 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 | 412 | 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 | 412 | return Status::OK(); | 491 | 412 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 899 | const ColumnWithTypeAndName& col_right) const { | 473 | 899 | auto call = [&](const auto& type) -> bool { | 474 | 899 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 899 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 899 | block, result, col_left, col_right); | 477 | 899 | return true; | 478 | 899 | }; | 479 | | | 480 | 899 | 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 | 899 | 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 | 899 | return Status::OK(); | 491 | 899 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 2.52k | const ColumnWithTypeAndName& col_right) const { | 473 | 2.52k | auto call = [&](const auto& type) -> bool { | 474 | 2.52k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2.52k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2.52k | block, result, col_left, col_right); | 477 | 2.52k | return true; | 478 | 2.52k | }; | 479 | | | 480 | 2.52k | 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 | 2.52k | 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 | 2.52k | return Status::OK(); | 491 | 2.52k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
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 | 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 | 25.5k | if (c1_const) { |
523 | 23.4k | const ColumnString* c1_const_string = |
524 | 23.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 23.4k | if (c1_const_string) { |
527 | 23.4k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 23.4k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 23.4k | } else { |
530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 0 | c1->get_name(), name); |
532 | 0 | } |
533 | 23.4k | } |
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 | 2.09k | StringImpl::string_vector_string_vector( |
543 | 2.09k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 2.09k | c1_string->get_offsets(), vec_res); |
545 | 23.4k | } else if (c0_string && c1_const) { |
546 | 23.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 23.4k | *c1_const_chars, c1_const_size, vec_res); |
548 | 23.4k | } 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 | 6 | } 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_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 21.8k | const IColumn* c1) const { | 495 | 21.8k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 21.8k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 21.8k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 21.8k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 21.8k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 21.8k | DCHECK(!(c0_const && c1_const)); | 504 | 21.8k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 21.8k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 21.8k | ColumnString::Offset c0_const_size = 0; | 507 | 21.8k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 21.8k | 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 | 21.8k | if (c1_const) { | 523 | 20.4k | const ColumnString* c1_const_string = | 524 | 20.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 20.4k | if (c1_const_string) { | 527 | 20.4k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 20.4k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 20.4k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 20.4k | } | 534 | | | 535 | 21.8k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 21.8k | auto c_res = ColumnUInt8::create(); | 538 | 21.8k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 21.8k | vec_res.resize(c0->size()); | 540 | | | 541 | 21.8k | if (c0_string && c1_string) { | 542 | 1.40k | StringImpl::string_vector_string_vector( | 543 | 1.40k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 1.40k | c1_string->get_offsets(), vec_res); | 545 | 20.4k | } else if (c0_string && c1_const) { | 546 | 20.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 20.4k | *c1_const_chars, c1_const_size, vec_res); | 548 | 20.4k | } 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 | 21.8k | block.replace_by_position(result, std::move(c_res)); | 557 | 21.8k | return Status::OK(); | 558 | 21.8k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 1.47k | const IColumn* c1) const { | 495 | 1.47k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 1.47k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 1.47k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 1.47k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 1.47k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 1.47k | DCHECK(!(c0_const && c1_const)); | 504 | 1.47k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 1.47k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 1.47k | ColumnString::Offset c0_const_size = 0; | 507 | 1.47k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 1.47k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 1.47k | if (c1_const) { | 523 | 1.42k | const ColumnString* c1_const_string = | 524 | 1.42k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 1.42k | if (c1_const_string) { | 527 | 1.42k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 1.42k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 1.42k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 1.42k | } | 534 | | | 535 | 1.47k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 1.47k | auto c_res = ColumnUInt8::create(); | 538 | 1.47k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 1.47k | vec_res.resize(c0->size()); | 540 | | | 541 | 1.47k | 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 | 1.42k | } else if (c0_string && c1_const) { | 546 | 1.42k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 1.42k | *c1_const_chars, c1_const_size, vec_res); | 548 | 1.42k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 1.47k | block.replace_by_position(result, std::move(c_res)); | 557 | 1.47k | return Status::OK(); | 558 | 1.47k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 174 | const IColumn* c1) const { | 495 | 174 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 174 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 174 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 174 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 174 | 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 | 174 | DCHECK(!(c0_const && c1_const)); | 504 | 174 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 174 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 174 | ColumnString::Offset c0_const_size = 0; | 507 | 174 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 174 | 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 | 174 | if (c1_const) { | 523 | 172 | const ColumnString* c1_const_string = | 524 | 172 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 172 | if (c1_const_string) { | 527 | 172 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 172 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 172 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 172 | } | 534 | | | 535 | 174 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 174 | auto c_res = ColumnUInt8::create(); | 538 | 174 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 174 | vec_res.resize(c0->size()); | 540 | | | 541 | 174 | 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 | 172 | } else if (c0_string && c1_const) { | 546 | 172 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 172 | *c1_const_chars, c1_const_size, vec_res); | 548 | 172 | } 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 | 174 | block.replace_by_position(result, std::move(c_res)); | 557 | 174 | return Status::OK(); | 558 | 174 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 629 | const IColumn* c1) const { | 495 | 629 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 629 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 629 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 629 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 629 | 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 | 629 | DCHECK(!(c0_const && c1_const)); | 504 | 629 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 629 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 629 | ColumnString::Offset c0_const_size = 0; | 507 | 629 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 629 | 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 | 629 | if (c1_const) { | 523 | 535 | const ColumnString* c1_const_string = | 524 | 535 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 535 | if (c1_const_string) { | 527 | 535 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 535 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 535 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 535 | } | 534 | | | 535 | 629 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 629 | auto c_res = ColumnUInt8::create(); | 538 | 629 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 629 | vec_res.resize(c0->size()); | 540 | | | 541 | 629 | if (c0_string && c1_string) { | 542 | 94 | StringImpl::string_vector_string_vector( | 543 | 94 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 94 | c1_string->get_offsets(), vec_res); | 545 | 535 | } else if (c0_string && c1_const) { | 546 | 535 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 535 | *c1_const_chars, c1_const_size, vec_res); | 548 | 535 | } 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 | 629 | block.replace_by_position(result, std::move(c_res)); | 557 | 629 | return Status::OK(); | 558 | 629 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 594 | const IColumn* c1) const { | 495 | 594 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 594 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 594 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 594 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 594 | 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 | 594 | DCHECK(!(c0_const && c1_const)); | 504 | 594 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 594 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 594 | ColumnString::Offset c0_const_size = 0; | 507 | 594 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 594 | 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 | 594 | if (c1_const) { | 523 | 189 | const ColumnString* c1_const_string = | 524 | 189 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 189 | if (c1_const_string) { | 527 | 189 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 189 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 189 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 189 | } | 534 | | | 535 | 594 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 594 | auto c_res = ColumnUInt8::create(); | 538 | 594 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 594 | vec_res.resize(c0->size()); | 540 | | | 541 | 594 | if (c0_string && c1_string) { | 542 | 399 | StringImpl::string_vector_string_vector( | 543 | 399 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 399 | c1_string->get_offsets(), vec_res); | 545 | 399 | } else if (c0_string && c1_const) { | 546 | 189 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 189 | *c1_const_chars, c1_const_size, vec_res); | 548 | 189 | } 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 | 6 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 594 | block.replace_by_position(result, std::move(c_res)); | 557 | 594 | return Status::OK(); | 558 | 594 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 837 | const IColumn* c1) const { | 495 | 837 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 837 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 837 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 837 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 837 | 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 | 837 | DCHECK(!(c0_const && c1_const)); | 504 | 837 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 837 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 837 | ColumnString::Offset c0_const_size = 0; | 507 | 837 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 837 | 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 | 837 | if (c1_const) { | 523 | 691 | const ColumnString* c1_const_string = | 524 | 691 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 691 | if (c1_const_string) { | 527 | 691 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 691 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 691 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 691 | } | 534 | | | 535 | 837 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 837 | auto c_res = ColumnUInt8::create(); | 538 | 837 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 837 | vec_res.resize(c0->size()); | 540 | | | 541 | 837 | if (c0_string && c1_string) { | 542 | 146 | StringImpl::string_vector_string_vector( | 543 | 146 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 146 | c1_string->get_offsets(), vec_res); | 545 | 691 | } else if (c0_string && c1_const) { | 546 | 691 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 691 | *c1_const_chars, c1_const_size, vec_res); | 548 | 691 | } 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 | 837 | block.replace_by_position(result, std::move(c_res)); | 557 | 837 | return Status::OK(); | 558 | 837 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 167 | const IColumn* c1) const { |
562 | 167 | bool c0_const = is_column_const(*c0); |
563 | 167 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 167 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 167 | auto c_res = ColumnUInt8::create(); |
568 | 167 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 167 | vec_res.resize(c0->size()); |
570 | | |
571 | 167 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 167 | } else if (c1_const) { |
574 | 158 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 158 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 167 | block.replace_by_position(result, std::move(c_res)); |
580 | 167 | } _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 | 76 | const IColumn* c1) const { | 562 | 76 | bool c0_const = is_column_const(*c0); | 563 | 76 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 76 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 76 | auto c_res = ColumnUInt8::create(); | 568 | 76 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 76 | vec_res.resize(c0->size()); | 570 | | | 571 | 76 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 76 | } else if (c1_const) { | 574 | 75 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 75 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 76 | block.replace_by_position(result, std::move(c_res)); | 580 | 76 | } |
_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 | 46 | const IColumn* c1) const { | 562 | 46 | bool c0_const = is_column_const(*c0); | 563 | 46 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 46 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 46 | auto c_res = ColumnUInt8::create(); | 568 | 46 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 46 | vec_res.resize(c0->size()); | 570 | | | 571 | 46 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 46 | } else if (c1_const) { | 574 | 46 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 46 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 46 | block.replace_by_position(result, std::move(c_res)); | 580 | 46 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 167 | const ColumnWithTypeAndName& c1) const { |
584 | 167 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 167 | return Status::OK(); |
586 | 167 | } _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 | 76 | const ColumnWithTypeAndName& c1) const { | 584 | 76 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 76 | return Status::OK(); | 586 | 76 | } |
_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 | 46 | const ColumnWithTypeAndName& c1) const { | 584 | 46 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 46 | return Status::OK(); | 586 | 46 | } |
|
587 | | |
588 | | public: |
589 | 218 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 63 | 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 | 525k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 470k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 2.78k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 9.59k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 14.5k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 4.64k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 22.9k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 35.6k | const VExprSPtrs& arguments) const override { |
595 | 35.6k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 35.6k | DORIS_CHECK(op.has_value()); |
597 | 35.6k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 35.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.26k | const VExprSPtrs& arguments) const override { | 595 | 9.26k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.26k | DORIS_CHECK(op.has_value()); | 597 | 9.26k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.26k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.16k | const VExprSPtrs& arguments) const override { | 595 | 1.16k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.16k | DORIS_CHECK(op.has_value()); | 597 | 1.16k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.09k | const VExprSPtrs& arguments) const override { | 595 | 5.09k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.09k | DORIS_CHECK(op.has_value()); | 597 | 5.09k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.09k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 7.11k | const VExprSPtrs& arguments) const override { | 595 | 7.11k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 7.11k | DORIS_CHECK(op.has_value()); | 597 | 7.11k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 7.11k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 3.04k | const VExprSPtrs& arguments) const override { | 595 | 3.04k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 3.04k | DORIS_CHECK(op.has_value()); | 597 | 3.04k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 3.04k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.98k | const VExprSPtrs& arguments) const override { | 595 | 9.98k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.98k | DORIS_CHECK(op.has_value()); | 597 | 9.98k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.98k | } |
|
599 | | |
600 | 104k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 104k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 104k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 104k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 35.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 35.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 35.8k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 35.8k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 3.23k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 3.23k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 3.23k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 3.23k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 16.4k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 16.4k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 16.4k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 16.4k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 17.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 17.7k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 17.7k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 17.7k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 9.76k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 9.76k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 9.76k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 9.76k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 21.3k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 21.3k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 21.3k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 21.3k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 90.7k | const VExprSPtrs& arguments) const override { |
607 | 90.7k | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 90.7k | DORIS_CHECK(op.has_value()); |
609 | 90.7k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 90.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 90.7k | const VExprSPtrs& arguments) const override { | 607 | 90.7k | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 90.7k | DORIS_CHECK(op.has_value()); | 609 | 90.7k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 90.7k | } |
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 | 100k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 100k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 100k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 100k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 95.1k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 95.1k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 95.1k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 95.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 425 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 425 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 425 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 425 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 2.72k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 2.72k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 2.72k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 2.72k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 870 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 870 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 872 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 870 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 932 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 932 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 934 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 932 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 338 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 338 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 338 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 338 | } |
|
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 | 4.43k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 4.43k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 4.43k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 4.43k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 1.69k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 1.69k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 1.69k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 1.69k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 219 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 219 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 219 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 219 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 1.35k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 1.35k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 1.35k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 1.35k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 434 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 434 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 436 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 434 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 498 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 498 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 498 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 498 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 242 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 242 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 242 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 242 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 525k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 525k | return std::make_shared<DataTypeUInt8>(); |
632 | 525k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 470k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 470k | return std::make_shared<DataTypeUInt8>(); | 632 | 470k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 2.78k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 2.78k | return std::make_shared<DataTypeUInt8>(); | 632 | 2.78k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 9.60k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 9.60k | return std::make_shared<DataTypeUInt8>(); | 632 | 9.60k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 14.6k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 14.6k | return std::make_shared<DataTypeUInt8>(); | 632 | 14.6k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 4.64k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 4.64k | return std::make_shared<DataTypeUInt8>(); | 632 | 4.64k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 23.0k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 23.0k | return std::make_shared<DataTypeUInt8>(); | 632 | 23.0k | } |
|
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.33k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.33k | DCHECK(arguments.size() == 1); |
641 | 1.33k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.33k | DCHECK(iterators.size() == 1); |
643 | 1.33k | auto* iter = iterators[0]; |
644 | 1.33k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.33k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.33k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 304 | return Status::OK(); |
650 | 304 | } |
651 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.03k | std::string_view name_view(name); |
653 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 709 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 709 | } else if (name_view == NameLess::name) { |
656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 249 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 168 | } else if (name_view == NameGreater::name) { |
660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 95 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 93 | } else { |
664 | 2 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 2 | } |
666 | | |
667 | 1.03k | if (segment_v2::is_range_query(query_type) && |
668 | 1.03k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 899 | Field param_value; |
673 | 899 | arguments[0].column->get(0, param_value); |
674 | 899 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 897 | segment_v2::InvertedIndexParam param; |
678 | 897 | param.column_name = data_type_with_name.first; |
679 | 897 | param.column_type = data_type_with_name.second; |
680 | 897 | param.query_value = param_value; |
681 | 897 | param.query_type = query_type; |
682 | 897 | param.num_rows = num_rows; |
683 | 897 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 897 | param.analyzer_ctx = analyzer_ctx; |
685 | 897 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 747 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 747 | if (iter->has_null()) { |
688 | 747 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 747 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 747 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 747 | } |
692 | 747 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 747 | bitmap_result = result; |
694 | 747 | bitmap_result.mask_out_null(); |
695 | | |
696 | 747 | if (name_view == NameNotEquals::name) { |
697 | 59 | roaring::Roaring full_result; |
698 | 59 | full_result.addRange(0, num_rows); |
699 | 59 | bitmap_result.op_not(&full_result); |
700 | 59 | } |
701 | | |
702 | 747 | return Status::OK(); |
703 | 747 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 680 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 680 | DCHECK(arguments.size() == 1); | 641 | 680 | DCHECK(data_type_with_names.size() == 1); | 642 | 680 | DCHECK(iterators.size() == 1); | 643 | 680 | auto* iter = iterators[0]; | 644 | 680 | auto data_type_with_name = data_type_with_names[0]; | 645 | 680 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 680 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 36 | return Status::OK(); | 650 | 36 | } | 651 | 644 | segment_v2::InvertedIndexQueryType query_type; | 652 | 644 | std::string_view name_view(name); | 653 | 644 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 643 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 643 | } 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 | 643 | if (segment_v2::is_range_query(query_type) && | 668 | 643 | 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 | 643 | Field param_value; | 673 | 643 | arguments[0].column->get(0, param_value); | 674 | 643 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 641 | segment_v2::InvertedIndexParam param; | 678 | 641 | param.column_name = data_type_with_name.first; | 679 | 641 | param.column_type = data_type_with_name.second; | 680 | 641 | param.query_value = param_value; | 681 | 641 | param.query_type = query_type; | 682 | 641 | param.num_rows = num_rows; | 683 | 641 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 641 | param.analyzer_ctx = analyzer_ctx; | 685 | 641 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 598 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 598 | if (iter->has_null()) { | 688 | 598 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 598 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 598 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 598 | } | 692 | 598 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 598 | bitmap_result = result; | 694 | 598 | bitmap_result.mask_out_null(); | 695 | | | 696 | 598 | 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 | 598 | return Status::OK(); | 703 | 598 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 72 | DCHECK(arguments.size() == 1); | 641 | 72 | DCHECK(data_type_with_names.size() == 1); | 642 | 72 | DCHECK(iterators.size() == 1); | 643 | 72 | auto* iter = iterators[0]; | 644 | 72 | auto data_type_with_name = data_type_with_names[0]; | 645 | 72 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 6 | return Status::OK(); | 650 | 6 | } | 651 | 66 | segment_v2::InvertedIndexQueryType query_type; | 652 | 66 | std::string_view name_view(name); | 653 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 66 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 0 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 66 | if (segment_v2::is_range_query(query_type) && | 668 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 66 | Field param_value; | 673 | 66 | arguments[0].column->get(0, param_value); | 674 | 66 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 66 | segment_v2::InvertedIndexParam param; | 678 | 66 | param.column_name = data_type_with_name.first; | 679 | 66 | param.column_type = data_type_with_name.second; | 680 | 66 | param.query_value = param_value; | 681 | 66 | param.query_type = query_type; | 682 | 66 | param.num_rows = num_rows; | 683 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 66 | param.analyzer_ctx = analyzer_ctx; | 685 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 59 | if (iter->has_null()) { | 688 | 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 | 59 | roaring::Roaring full_result; | 698 | 59 | full_result.addRange(0, num_rows); | 699 | 59 | bitmap_result.op_not(&full_result); | 700 | 59 | } | 701 | | | 702 | 59 | return Status::OK(); | 703 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 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 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 73 | } 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 | 73 | if (segment_v2::is_range_query(query_type) && | 668 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 17 | return Status::OK(); | 671 | 17 | } | 672 | 56 | Field param_value; | 673 | 56 | arguments[0].column->get(0, param_value); | 674 | 56 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 56 | segment_v2::InvertedIndexParam param; | 678 | 56 | param.column_name = data_type_with_name.first; | 679 | 56 | param.column_type = data_type_with_name.second; | 680 | 56 | param.query_value = param_value; | 681 | 56 | param.query_type = query_type; | 682 | 56 | param.num_rows = num_rows; | 683 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 56 | param.analyzer_ctx = analyzer_ctx; | 685 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 37 | if (iter->has_null()) { | 688 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 37 | } | 692 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 37 | bitmap_result = result; | 694 | 37 | bitmap_result.mask_out_null(); | 695 | | | 696 | 37 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 37 | return Status::OK(); | 703 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 179 | DCHECK(arguments.size() == 1); | 641 | 179 | DCHECK(data_type_with_names.size() == 1); | 642 | 179 | DCHECK(iterators.size() == 1); | 643 | 179 | auto* iter = iterators[0]; | 644 | 179 | auto data_type_with_name = data_type_with_names[0]; | 645 | 179 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 86 | return Status::OK(); | 650 | 86 | } | 651 | 93 | segment_v2::InvertedIndexQueryType query_type; | 652 | 93 | std::string_view name_view(name); | 653 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 93 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 93 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 93 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 93 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 93 | if (segment_v2::is_range_query(query_type) && | 668 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 47 | return Status::OK(); | 671 | 47 | } | 672 | 46 | Field param_value; | 673 | 46 | arguments[0].column->get(0, param_value); | 674 | 46 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 46 | segment_v2::InvertedIndexParam param; | 678 | 46 | param.column_name = data_type_with_name.first; | 679 | 46 | param.column_type = data_type_with_name.second; | 680 | 46 | param.query_value = param_value; | 681 | 46 | param.query_type = query_type; | 682 | 46 | param.num_rows = num_rows; | 683 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 46 | param.analyzer_ctx = analyzer_ctx; | 685 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 5 | if (iter->has_null()) { | 688 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 5 | } | 692 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 5 | bitmap_result = result; | 694 | 5 | bitmap_result.mask_out_null(); | 695 | | | 696 | 5 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 5 | return Status::OK(); | 703 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 120 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 120 | DCHECK(arguments.size() == 1); | 641 | 120 | DCHECK(data_type_with_names.size() == 1); | 642 | 120 | DCHECK(iterators.size() == 1); | 643 | 120 | auto* iter = iterators[0]; | 644 | 120 | auto data_type_with_name = data_type_with_names[0]; | 645 | 120 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 120 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 43 | return Status::OK(); | 650 | 43 | } | 651 | 77 | segment_v2::InvertedIndexQueryType query_type; | 652 | 77 | std::string_view name_view(name); | 653 | 77 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 77 | } else if (name_view == NameLess::name) { | 656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 76 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 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 | 76 | if (segment_v2::is_range_query(query_type) && | 668 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 18 | return Status::OK(); | 671 | 18 | } | 672 | 58 | Field param_value; | 673 | 58 | arguments[0].column->get(0, param_value); | 674 | 58 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 58 | segment_v2::InvertedIndexParam param; | 678 | 58 | param.column_name = data_type_with_name.first; | 679 | 58 | param.column_type = data_type_with_name.second; | 680 | 58 | param.query_value = param_value; | 681 | 58 | param.query_type = query_type; | 682 | 58 | param.num_rows = num_rows; | 683 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 58 | param.analyzer_ctx = analyzer_ctx; | 685 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 40 | if (iter->has_null()) { | 688 | 40 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 40 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 40 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 40 | } | 692 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 39 | bitmap_result = result; | 694 | 39 | bitmap_result.mask_out_null(); | 695 | | | 696 | 39 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 39 | return Status::OK(); | 703 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 175 | DCHECK(arguments.size() == 1); | 641 | 175 | DCHECK(data_type_with_names.size() == 1); | 642 | 175 | DCHECK(iterators.size() == 1); | 643 | 175 | auto* iter = iterators[0]; | 644 | 175 | auto data_type_with_name = data_type_with_names[0]; | 645 | 175 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 94 | return Status::OK(); | 650 | 94 | } | 651 | 81 | segment_v2::InvertedIndexQueryType query_type; | 652 | 81 | std::string_view name_view(name); | 653 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 81 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 81 | } else if (name_view == NameLessOrEquals::name) { | 658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 81 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 81 | if (segment_v2::is_range_query(query_type) && | 668 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 51 | return Status::OK(); | 671 | 51 | } | 672 | 30 | Field param_value; | 673 | 30 | arguments[0].column->get(0, param_value); | 674 | 30 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 30 | segment_v2::InvertedIndexParam param; | 678 | 30 | param.column_name = data_type_with_name.first; | 679 | 30 | param.column_type = data_type_with_name.second; | 680 | 30 | param.query_value = param_value; | 681 | 30 | param.query_type = query_type; | 682 | 30 | param.num_rows = num_rows; | 683 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 30 | param.analyzer_ctx = analyzer_ctx; | 685 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 9 | if (iter->has_null()) { | 688 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 9 | } | 692 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 9 | bitmap_result = result; | 694 | 9 | bitmap_result.mask_out_null(); | 695 | | | 696 | 9 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 9 | return Status::OK(); | 703 | 9 | } |
|
704 | | |
705 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
706 | 244k | uint32_t result, size_t input_rows_count) const override { |
707 | 244k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 244k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 244k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 244k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 244k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 244k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 244k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 244k | 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 | 244k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 244k | 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 | 446k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 446k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 446k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 116k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 116k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 116k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 10.9k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 10.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 10.9k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 189k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 189k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 189k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 30.7k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 30.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 30.7k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 21.4k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 21.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 21.4k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 77.2k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 77.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 77.2k | }; |
|
747 | | |
748 | 244k | if (can_compare(left_type->get_primitive_type()) && |
749 | 244k | 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 | 202k | 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 | 202k | } |
757 | | |
758 | 244k | auto compare_type = left_type->get_primitive_type(); |
759 | 244k | switch (compare_type) { |
760 | 1.36k | case TYPE_BOOLEAN: |
761 | 1.36k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 21.5k | case TYPE_DATEV2: |
763 | 21.5k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 2.21k | case TYPE_DATETIMEV2: |
765 | 2.21k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 12 | case TYPE_TIMESTAMPTZ: |
767 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 12.0k | case TYPE_TINYINT: |
769 | 12.0k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 3.71k | case TYPE_SMALLINT: |
771 | 3.71k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 118k | case TYPE_INT: |
773 | 118k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 37.9k | case TYPE_BIGINT: |
775 | 37.9k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 772 | case TYPE_LARGEINT: |
777 | 772 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 74 | case TYPE_IPV4: |
779 | 74 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
780 | 48 | case TYPE_IPV6: |
781 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
782 | 980 | case TYPE_FLOAT: |
783 | 980 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 3.19k | case TYPE_DOUBLE: |
785 | 3.19k | 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 | 508 | case TYPE_DECIMAL32: |
790 | 12.0k | case TYPE_DECIMAL64: |
791 | 15.4k | case TYPE_DECIMAL128I: |
792 | 15.5k | case TYPE_DECIMAL256: |
793 | 15.5k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 15.5k | col_with_type_and_name_right); |
795 | 845 | case TYPE_CHAR: |
796 | 9.89k | case TYPE_VARCHAR: |
797 | 25.5k | case TYPE_STRING: |
798 | 25.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 167 | default: |
800 | 167 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 167 | col_with_type_and_name_right); |
802 | 244k | } |
803 | 0 | return Status::OK(); |
804 | 244k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 70.1k | uint32_t result, size_t input_rows_count) const override { | 707 | 70.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 70.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 70.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 70.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 70.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 70.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 70.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 70.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 | 70.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 70.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 | 70.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 70.1k | }; | 747 | | | 748 | 70.1k | if (can_compare(left_type->get_primitive_type()) && | 749 | 70.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 | 46.4k | 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 | 46.4k | } | 757 | | | 758 | 70.1k | auto compare_type = left_type->get_primitive_type(); | 759 | 70.1k | switch (compare_type) { | 760 | 880 | case TYPE_BOOLEAN: | 761 | 880 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.66k | case TYPE_DATEV2: | 763 | 1.66k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 696 | case TYPE_DATETIMEV2: | 765 | 696 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 8.24k | case TYPE_TINYINT: | 769 | 8.24k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.42k | case TYPE_SMALLINT: | 771 | 1.42k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 6.99k | case TYPE_INT: | 773 | 6.99k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 25.3k | case TYPE_BIGINT: | 775 | 25.3k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 131 | case TYPE_LARGEINT: | 777 | 131 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 32 | case TYPE_IPV4: | 779 | 32 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 30 | case TYPE_IPV6: | 781 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 106 | case TYPE_FLOAT: | 783 | 106 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 957 | case TYPE_DOUBLE: | 785 | 957 | 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 | 267 | case TYPE_DECIMAL32: | 790 | 555 | case TYPE_DECIMAL64: | 791 | 1.72k | case TYPE_DECIMAL128I: | 792 | 1.75k | case TYPE_DECIMAL256: | 793 | 1.75k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.75k | col_with_type_and_name_right); | 795 | 540 | case TYPE_CHAR: | 796 | 8.39k | case TYPE_VARCHAR: | 797 | 21.8k | case TYPE_STRING: | 798 | 21.8k | 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 | 70.1k | } | 803 | 0 | return Status::OK(); | 804 | 70.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 6.37k | uint32_t result, size_t input_rows_count) const override { | 707 | 6.37k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 6.37k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 6.37k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 6.37k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 6.37k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 6.37k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 6.37k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 6.37k | 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 | 6.37k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 6.37k | 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 | 6.37k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 6.37k | }; | 747 | | | 748 | 6.37k | if (can_compare(left_type->get_primitive_type()) && | 749 | 6.37k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 4.60k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 4.60k | } | 757 | | | 758 | 6.37k | auto compare_type = left_type->get_primitive_type(); | 759 | 6.37k | 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 | 81 | case TYPE_DATEV2: | 763 | 81 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 2 | case TYPE_DATETIMEV2: | 765 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 0 | case TYPE_TIMESTAMPTZ: | 767 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 92 | case TYPE_TINYINT: | 769 | 92 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 26 | case TYPE_SMALLINT: | 771 | 26 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.89k | case TYPE_INT: | 773 | 2.89k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.40k | case TYPE_BIGINT: | 775 | 1.40k | 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 | 71 | case TYPE_DECIMAL64: | 791 | 247 | case TYPE_DECIMAL128I: | 792 | 277 | case TYPE_DECIMAL256: | 793 | 277 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 277 | col_with_type_and_name_right); | 795 | 1 | case TYPE_CHAR: | 796 | 291 | case TYPE_VARCHAR: | 797 | 1.47k | case TYPE_STRING: | 798 | 1.47k | 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 | 6.37k | } | 803 | 0 | return Status::OK(); | 804 | 6.37k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 99.8k | uint32_t result, size_t input_rows_count) const override { | 707 | 99.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 99.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 99.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 99.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 99.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 99.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 99.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 99.8k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 99.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 99.8k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 99.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 99.8k | }; | 747 | | | 748 | 99.8k | if (can_compare(left_type->get_primitive_type()) && | 749 | 99.8k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 90.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 | 90.0k | } | 757 | | | 758 | 99.8k | auto compare_type = left_type->get_primitive_type(); | 759 | 99.8k | 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.16k | case TYPE_DATEV2: | 763 | 1.16k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 62 | case TYPE_DATETIMEV2: | 765 | 62 | 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 | 1.47k | case TYPE_TINYINT: | 769 | 1.47k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.80k | case TYPE_SMALLINT: | 771 | 1.80k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 74.8k | case TYPE_INT: | 773 | 74.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 8.66k | case TYPE_BIGINT: | 775 | 8.66k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 234 | case TYPE_LARGEINT: | 777 | 234 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 4 | case TYPE_IPV4: | 779 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 228 | case TYPE_FLOAT: | 783 | 228 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 1.52k | case TYPE_DOUBLE: | 785 | 1.52k | 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 | 28 | case TYPE_DECIMAL32: | 790 | 8.68k | case TYPE_DECIMAL64: | 791 | 9.65k | case TYPE_DECIMAL128I: | 792 | 9.65k | case TYPE_DECIMAL256: | 793 | 9.65k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 9.65k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 174 | case TYPE_STRING: | 798 | 174 | 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 | 99.8k | } | 803 | 0 | return Status::OK(); | 804 | 99.8k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 15.9k | uint32_t result, size_t input_rows_count) const override { | 707 | 15.9k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 15.9k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 15.9k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 15.9k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 15.9k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 15.9k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 15.9k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 15.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 | 15.9k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 15.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 | 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 | 15.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 15.9k | }; | 747 | | | 748 | 15.9k | if (can_compare(left_type->get_primitive_type()) && | 749 | 15.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 | 14.8k | 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 | 14.8k | } | 757 | | | 758 | 15.9k | auto compare_type = left_type->get_primitive_type(); | 759 | 15.9k | switch (compare_type) { | 760 | 185 | case TYPE_BOOLEAN: | 761 | 185 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.49k | case TYPE_DATEV2: | 763 | 1.49k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 584 | case TYPE_DATETIMEV2: | 765 | 584 | 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 | 50 | case TYPE_TINYINT: | 769 | 50 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 40 | case TYPE_SMALLINT: | 771 | 40 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 11.5k | case TYPE_INT: | 773 | 11.5k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 449 | case TYPE_BIGINT: | 775 | 449 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 44 | case TYPE_LARGEINT: | 777 | 44 | 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 | 218 | case TYPE_FLOAT: | 783 | 218 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 155 | case TYPE_DOUBLE: | 785 | 155 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 5 | case TYPE_DECIMAL32: | 790 | 299 | case TYPE_DECIMAL64: | 791 | 391 | case TYPE_DECIMAL128I: | 792 | 412 | case TYPE_DECIMAL256: | 793 | 412 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 412 | col_with_type_and_name_right); | 795 | 34 | case TYPE_CHAR: | 796 | 303 | case TYPE_VARCHAR: | 797 | 629 | case TYPE_STRING: | 798 | 629 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 76 | default: | 800 | 76 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 76 | col_with_type_and_name_right); | 802 | 15.9k | } | 803 | 0 | return Status::OK(); | 804 | 15.9k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 11.4k | uint32_t result, size_t input_rows_count) const override { | 707 | 11.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 11.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 11.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 11.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 11.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 11.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 11.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 11.4k | 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 | 11.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 11.4k | 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 | 11.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 11.4k | }; | 747 | | | 748 | 11.4k | if (can_compare(left_type->get_primitive_type()) && | 749 | 11.4k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 9.96k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 9.96k | } | 757 | | | 758 | 11.4k | auto compare_type = left_type->get_primitive_type(); | 759 | 11.4k | 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.32k | case TYPE_DATEV2: | 763 | 2.32k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 499 | case TYPE_DATETIMEV2: | 765 | 499 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.16k | case TYPE_TINYINT: | 769 | 2.16k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 356 | case TYPE_SMALLINT: | 771 | 356 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.40k | case TYPE_INT: | 773 | 2.40k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.25k | case TYPE_BIGINT: | 775 | 1.25k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 300 | case TYPE_LARGEINT: | 777 | 300 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 17 | case TYPE_IPV4: | 779 | 17 | 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 | 166 | case TYPE_FLOAT: | 783 | 166 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 361 | case TYPE_DOUBLE: | 785 | 361 | 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 | 202 | case TYPE_DECIMAL32: | 790 | 447 | case TYPE_DECIMAL64: | 791 | 898 | case TYPE_DECIMAL128I: | 792 | 899 | case TYPE_DECIMAL256: | 793 | 899 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 899 | col_with_type_and_name_right); | 795 | 164 | case TYPE_CHAR: | 796 | 355 | case TYPE_VARCHAR: | 797 | 594 | case TYPE_STRING: | 798 | 594 | 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 | 11.4k | } | 803 | 0 | return Status::OK(); | 804 | 11.4k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 40.2k | uint32_t result, size_t input_rows_count) const override { | 707 | 40.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 40.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 40.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 40.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 40.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 40.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 40.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 40.2k | 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 | 40.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 40.2k | 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 | 40.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 40.2k | }; | 747 | | | 748 | 40.2k | if (can_compare(left_type->get_primitive_type()) && | 749 | 40.2k | 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 | 36.9k | 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 | 36.9k | } | 757 | | | 758 | 40.2k | auto compare_type = left_type->get_primitive_type(); | 759 | 40.2k | switch (compare_type) { | 760 | 198 | case TYPE_BOOLEAN: | 761 | 198 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 14.7k | case TYPE_DATEV2: | 763 | 14.7k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 373 | case TYPE_DATETIMEV2: | 765 | 373 | 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 | 52 | case TYPE_TINYINT: | 769 | 52 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 57 | case TYPE_SMALLINT: | 771 | 57 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 20.0k | case TYPE_INT: | 773 | 20.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 929 | case TYPE_BIGINT: | 775 | 929 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 63 | case TYPE_LARGEINT: | 777 | 63 | 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 | 214 | case TYPE_FLOAT: | 783 | 214 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 134 | case TYPE_DOUBLE: | 785 | 134 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 6 | case TYPE_DECIMAL32: | 790 | 1.98k | case TYPE_DECIMAL64: | 791 | 2.50k | case TYPE_DECIMAL128I: | 792 | 2.52k | case TYPE_DECIMAL256: | 793 | 2.52k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 2.52k | col_with_type_and_name_right); | 795 | 92 | case TYPE_CHAR: | 796 | 476 | case TYPE_VARCHAR: | 797 | 837 | case TYPE_STRING: | 798 | 837 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 46 | default: | 800 | 46 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 46 | col_with_type_and_name_right); | 802 | 40.2k | } | 803 | 0 | return Status::OK(); | 804 | 40.2k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |