be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 8.66k | PaddedPODArray<UInt8>& c) { |
72 | 8.66k | size_t size = a.size(); |
73 | 8.66k | const A* __restrict a_pos = a.data(); |
74 | 8.66k | const B* __restrict b_pos = b.data(); |
75 | 8.66k | UInt8* __restrict c_pos = c.data(); |
76 | 8.66k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 5.88M | while (a_pos < a_end) { |
79 | 5.87M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 5.87M | ++a_pos; |
81 | 5.87M | ++b_pos; |
82 | 5.87M | ++c_pos; |
83 | 5.87M | } |
84 | 8.66k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 73 | PaddedPODArray<UInt8>& c) { | 72 | 73 | size_t size = a.size(); | 73 | 73 | const A* __restrict a_pos = a.data(); | 74 | 73 | const B* __restrict b_pos = b.data(); | 75 | 73 | UInt8* __restrict c_pos = c.data(); | 76 | 73 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 146 | while (a_pos < a_end) { | 79 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 73 | ++a_pos; | 81 | 73 | ++b_pos; | 82 | 73 | ++c_pos; | 83 | 73 | } | 84 | 73 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 426 | while (a_pos < a_end) { | 79 | 216 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 216 | ++a_pos; | 81 | 216 | ++b_pos; | 82 | 216 | ++c_pos; | 83 | 216 | } | 84 | 210 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 245 | PaddedPODArray<UInt8>& c) { | 72 | 245 | size_t size = a.size(); | 73 | 245 | const A* __restrict a_pos = a.data(); | 74 | 245 | const B* __restrict b_pos = b.data(); | 75 | 245 | UInt8* __restrict c_pos = c.data(); | 76 | 245 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 508 | while (a_pos < a_end) { | 79 | 263 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 263 | ++a_pos; | 81 | 263 | ++b_pos; | 82 | 263 | ++c_pos; | 83 | 263 | } | 84 | 245 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 153 | PaddedPODArray<UInt8>& c) { | 72 | 153 | size_t size = a.size(); | 73 | 153 | const A* __restrict a_pos = a.data(); | 74 | 153 | const B* __restrict b_pos = b.data(); | 75 | 153 | UInt8* __restrict c_pos = c.data(); | 76 | 153 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 448 | while (a_pos < a_end) { | 79 | 295 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 295 | ++a_pos; | 81 | 295 | ++b_pos; | 82 | 295 | ++c_pos; | 83 | 295 | } | 84 | 153 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 69 | PaddedPODArray<UInt8>& c) { | 72 | 69 | size_t size = a.size(); | 73 | 69 | const A* __restrict a_pos = a.data(); | 74 | 69 | const B* __restrict b_pos = b.data(); | 75 | 69 | UInt8* __restrict c_pos = c.data(); | 76 | 69 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 138 | 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 | 69 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 241 | PaddedPODArray<UInt8>& c) { | 72 | 241 | size_t size = a.size(); | 73 | 241 | const A* __restrict a_pos = a.data(); | 74 | 241 | const B* __restrict b_pos = b.data(); | 75 | 241 | UInt8* __restrict c_pos = c.data(); | 76 | 241 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.74k | while (a_pos < a_end) { | 79 | 1.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.50k | ++a_pos; | 81 | 1.50k | ++b_pos; | 82 | 1.50k | ++c_pos; | 83 | 1.50k | } | 84 | 241 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 128 | PaddedPODArray<UInt8>& c) { | 72 | 128 | size_t size = a.size(); | 73 | 128 | const A* __restrict a_pos = a.data(); | 74 | 128 | const B* __restrict b_pos = b.data(); | 75 | 128 | UInt8* __restrict c_pos = c.data(); | 76 | 128 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.46k | while (a_pos < a_end) { | 79 | 1.33k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.33k | ++a_pos; | 81 | 1.33k | ++b_pos; | 82 | 1.33k | ++c_pos; | 83 | 1.33k | } | 84 | 128 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 74 | PaddedPODArray<UInt8>& c) { | 72 | 74 | size_t size = a.size(); | 73 | 74 | const A* __restrict a_pos = a.data(); | 74 | 74 | const B* __restrict b_pos = b.data(); | 75 | 74 | UInt8* __restrict c_pos = c.data(); | 76 | 74 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 148 | while (a_pos < a_end) { | 79 | 74 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 74 | ++a_pos; | 81 | 74 | ++b_pos; | 82 | 74 | ++c_pos; | 83 | 74 | } | 84 | 74 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 13 | PaddedPODArray<UInt8>& c) { | 72 | 13 | size_t size = a.size(); | 73 | 13 | const A* __restrict a_pos = a.data(); | 74 | 13 | const B* __restrict b_pos = b.data(); | 75 | 13 | UInt8* __restrict c_pos = c.data(); | 76 | 13 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 26 | while (a_pos < a_end) { | 79 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 13 | ++a_pos; | 81 | 13 | ++b_pos; | 82 | 13 | ++c_pos; | 83 | 13 | } | 84 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 221 | while (a_pos < a_end) { | 79 | 120 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 120 | ++a_pos; | 81 | 120 | ++b_pos; | 82 | 120 | ++c_pos; | 83 | 120 | } | 84 | 101 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 91 | PaddedPODArray<UInt8>& c) { | 72 | 91 | size_t size = a.size(); | 73 | 91 | const A* __restrict a_pos = a.data(); | 74 | 91 | const B* __restrict b_pos = b.data(); | 75 | 91 | UInt8* __restrict c_pos = c.data(); | 76 | 91 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 203 | while (a_pos < a_end) { | 79 | 112 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 112 | ++a_pos; | 81 | 112 | ++b_pos; | 82 | 112 | ++c_pos; | 83 | 112 | } | 84 | 91 | } |
_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 | 39 | PaddedPODArray<UInt8>& c) { | 72 | 39 | size_t size = a.size(); | 73 | 39 | const A* __restrict a_pos = a.data(); | 74 | 39 | const B* __restrict b_pos = b.data(); | 75 | 39 | UInt8* __restrict c_pos = c.data(); | 76 | 39 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 108 | 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 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.66k | PaddedPODArray<UInt8>& c) { | 72 | 1.66k | size_t size = a.size(); | 73 | 1.66k | const A* __restrict a_pos = a.data(); | 74 | 1.66k | const B* __restrict b_pos = b.data(); | 75 | 1.66k | UInt8* __restrict c_pos = c.data(); | 76 | 1.66k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 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 | 1.66k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 340 | PaddedPODArray<UInt8>& c) { | 72 | 340 | size_t size = a.size(); | 73 | 340 | const A* __restrict a_pos = a.data(); | 74 | 340 | const B* __restrict b_pos = b.data(); | 75 | 340 | UInt8* __restrict c_pos = c.data(); | 76 | 340 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.29k | while (a_pos < a_end) { | 79 | 5.95k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.95k | ++a_pos; | 81 | 5.95k | ++b_pos; | 82 | 5.95k | ++c_pos; | 83 | 5.95k | } | 84 | 340 | } |
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.02k | PaddedPODArray<UInt8>& c) { | 72 | 1.02k | size_t size = a.size(); | 73 | 1.02k | const A* __restrict a_pos = a.data(); | 74 | 1.02k | const B* __restrict b_pos = b.data(); | 75 | 1.02k | UInt8* __restrict c_pos = c.data(); | 76 | 1.02k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.75M | while (a_pos < a_end) { | 79 | 3.75M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 3.75M | ++a_pos; | 81 | 3.75M | ++b_pos; | 82 | 3.75M | ++c_pos; | 83 | 3.75M | } | 84 | 1.02k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 324 | while (a_pos < a_end) { | 79 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 284 | ++a_pos; | 81 | 284 | ++b_pos; | 82 | 284 | ++c_pos; | 83 | 284 | } | 84 | 40 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 112 | PaddedPODArray<UInt8>& c) { | 72 | 112 | size_t size = a.size(); | 73 | 112 | const A* __restrict a_pos = a.data(); | 74 | 112 | const B* __restrict b_pos = b.data(); | 75 | 112 | UInt8* __restrict c_pos = c.data(); | 76 | 112 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 264 | ++a_pos; | 81 | 264 | ++b_pos; | 82 | 264 | ++c_pos; | 83 | 264 | } | 84 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 271 | while (a_pos < a_end) { | 79 | 222 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 222 | ++a_pos; | 81 | 222 | ++b_pos; | 82 | 222 | ++c_pos; | 83 | 222 | } | 84 | 49 | } |
_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 | 567 | while (a_pos < a_end) { | 79 | 503 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 503 | ++a_pos; | 81 | 503 | ++b_pos; | 82 | 503 | ++c_pos; | 83 | 503 | } | 84 | 64 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 27 | PaddedPODArray<UInt8>& c) { | 72 | 27 | size_t size = a.size(); | 73 | 27 | const A* __restrict a_pos = a.data(); | 74 | 27 | const B* __restrict b_pos = b.data(); | 75 | 27 | UInt8* __restrict c_pos = c.data(); | 76 | 27 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 97 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 27 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 7 | PaddedPODArray<UInt8>& c) { | 72 | 7 | size_t size = a.size(); | 73 | 7 | const A* __restrict a_pos = a.data(); | 74 | 7 | const B* __restrict b_pos = b.data(); | 75 | 7 | UInt8* __restrict c_pos = c.data(); | 76 | 7 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 66 | while (a_pos < a_end) { | 79 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 59 | ++a_pos; | 81 | 59 | ++b_pos; | 82 | 59 | ++c_pos; | 83 | 59 | } | 84 | 7 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 7 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 8 | PaddedPODArray<UInt8>& c) { | 72 | 8 | size_t size = a.size(); | 73 | 8 | const A* __restrict a_pos = a.data(); | 74 | 8 | const B* __restrict b_pos = b.data(); | 75 | 8 | UInt8* __restrict c_pos = c.data(); | 76 | 8 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 62 | while (a_pos < a_end) { | 79 | 54 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 54 | ++a_pos; | 81 | 54 | ++b_pos; | 82 | 54 | ++c_pos; | 83 | 54 | } | 84 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 67 | 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 | 24 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ 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 | 370 | while (a_pos < a_end) { | 79 | 272 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 272 | ++a_pos; | 81 | 272 | ++b_pos; | 82 | 272 | ++c_pos; | 83 | 272 | } | 84 | 98 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.67k | PaddedPODArray<UInt8>& c) { | 72 | 1.67k | size_t size = a.size(); | 73 | 1.67k | const A* __restrict a_pos = a.data(); | 74 | 1.67k | const B* __restrict b_pos = b.data(); | 75 | 1.67k | UInt8* __restrict c_pos = c.data(); | 76 | 1.67k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.79M | while (a_pos < a_end) { | 79 | 1.79M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.79M | ++a_pos; | 81 | 1.79M | ++b_pos; | 82 | 1.79M | ++c_pos; | 83 | 1.79M | } | 84 | 1.67k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 280 | PaddedPODArray<UInt8>& c) { | 72 | 280 | size_t size = a.size(); | 73 | 280 | const A* __restrict a_pos = a.data(); | 74 | 280 | const B* __restrict b_pos = b.data(); | 75 | 280 | UInt8* __restrict c_pos = c.data(); | 76 | 280 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 908 | while (a_pos < a_end) { | 79 | 628 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 628 | ++a_pos; | 81 | 628 | ++b_pos; | 82 | 628 | ++c_pos; | 83 | 628 | } | 84 | 280 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 163 | PaddedPODArray<UInt8>& c) { | 72 | 163 | size_t size = a.size(); | 73 | 163 | const A* __restrict a_pos = a.data(); | 74 | 163 | const B* __restrict b_pos = b.data(); | 75 | 163 | UInt8* __restrict c_pos = c.data(); | 76 | 163 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 500 | while (a_pos < a_end) { | 79 | 337 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 337 | ++a_pos; | 81 | 337 | ++b_pos; | 82 | 337 | ++c_pos; | 83 | 337 | } | 84 | 163 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 132 | PaddedPODArray<UInt8>& c) { | 72 | 132 | size_t size = a.size(); | 73 | 132 | const A* __restrict a_pos = a.data(); | 74 | 132 | const B* __restrict b_pos = b.data(); | 75 | 132 | UInt8* __restrict c_pos = c.data(); | 76 | 132 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 440 | while (a_pos < a_end) { | 79 | 308 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 308 | ++a_pos; | 81 | 308 | ++b_pos; | 82 | 308 | ++c_pos; | 83 | 308 | } | 84 | 132 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 163 | PaddedPODArray<UInt8>& c) { | 72 | 163 | size_t size = a.size(); | 73 | 163 | const A* __restrict a_pos = a.data(); | 74 | 163 | const B* __restrict b_pos = b.data(); | 75 | 163 | UInt8* __restrict c_pos = c.data(); | 76 | 163 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.02k | while (a_pos < a_end) { | 79 | 858 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 858 | ++a_pos; | 81 | 858 | ++b_pos; | 82 | 858 | ++c_pos; | 83 | 858 | } | 84 | 163 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 212 | PaddedPODArray<UInt8>& c) { | 72 | 212 | size_t size = a.size(); | 73 | 212 | const A* __restrict a_pos = a.data(); | 74 | 212 | const B* __restrict b_pos = b.data(); | 75 | 212 | UInt8* __restrict c_pos = c.data(); | 76 | 212 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.40k | while (a_pos < a_end) { | 79 | 5.19k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.19k | ++a_pos; | 81 | 5.19k | ++b_pos; | 82 | 5.19k | ++c_pos; | 83 | 5.19k | } | 84 | 212 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 153 | PaddedPODArray<UInt8>& c) { | 72 | 153 | size_t size = a.size(); | 73 | 153 | const A* __restrict a_pos = a.data(); | 74 | 153 | const B* __restrict b_pos = b.data(); | 75 | 153 | UInt8* __restrict c_pos = c.data(); | 76 | 153 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 480 | while (a_pos < a_end) { | 79 | 327 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 327 | ++a_pos; | 81 | 327 | ++b_pos; | 82 | 327 | ++c_pos; | 83 | 327 | } | 84 | 153 | } |
_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 | 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 | 509 | while (a_pos < a_end) { | 79 | 351 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 351 | ++a_pos; | 81 | 351 | ++b_pos; | 82 | 351 | ++c_pos; | 83 | 351 | } | 84 | 158 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 149 | PaddedPODArray<UInt8>& c) { | 72 | 149 | size_t size = a.size(); | 73 | 149 | const A* __restrict a_pos = a.data(); | 74 | 149 | const B* __restrict b_pos = b.data(); | 75 | 149 | UInt8* __restrict c_pos = c.data(); | 76 | 149 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 501 | while (a_pos < a_end) { | 79 | 352 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 352 | ++a_pos; | 81 | 352 | ++b_pos; | 82 | 352 | ++c_pos; | 83 | 352 | } | 84 | 149 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 401 | PaddedPODArray<UInt8>& c) { | 72 | 401 | size_t size = a.size(); | 73 | 401 | const A* __restrict a_pos = a.data(); | 74 | 401 | const B* __restrict b_pos = b.data(); | 75 | 401 | UInt8* __restrict c_pos = c.data(); | 76 | 401 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.49k | while (a_pos < a_end) { | 79 | 6.09k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.09k | ++a_pos; | 81 | 6.09k | ++b_pos; | 82 | 6.09k | ++c_pos; | 83 | 6.09k | } | 84 | 401 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 23 | PaddedPODArray<UInt8>& c) { | 72 | 23 | size_t size = a.size(); | 73 | 23 | const A* __restrict a_pos = a.data(); | 74 | 23 | const B* __restrict b_pos = b.data(); | 75 | 23 | UInt8* __restrict c_pos = c.data(); | 76 | 23 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 105 | while (a_pos < a_end) { | 79 | 82 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 82 | ++a_pos; | 81 | 82 | ++b_pos; | 82 | 82 | ++c_pos; | 83 | 82 | } | 84 | 23 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 31 | PaddedPODArray<UInt8>& c) { | 72 | 31 | size_t size = a.size(); | 73 | 31 | const A* __restrict a_pos = a.data(); | 74 | 31 | const B* __restrict b_pos = b.data(); | 75 | 31 | UInt8* __restrict c_pos = c.data(); | 76 | 31 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 69 | while (a_pos < a_end) { | 79 | 38 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 38 | ++a_pos; | 81 | 38 | ++b_pos; | 82 | 38 | ++c_pos; | 83 | 38 | } | 84 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
85 | | |
86 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
87 | 46.4k | PaddedPODArray<UInt8>& c) { |
88 | 46.4k | size_t size = a.size(); |
89 | 46.4k | const A* __restrict a_pos = a.data(); |
90 | 46.4k | UInt8* __restrict c_pos = c.data(); |
91 | 46.4k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 35.3M | while (a_pos < a_end) { |
94 | 35.3M | *c_pos = Op::apply(*a_pos, b); |
95 | 35.3M | ++a_pos; |
96 | 35.3M | ++c_pos; |
97 | 35.3M | } |
98 | 46.4k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ 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 | 167 | while (a_pos < a_end) { | 94 | 141 | *c_pos = Op::apply(*a_pos, b); | 95 | 141 | ++a_pos; | 96 | 141 | ++c_pos; | 97 | 141 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 361 | PaddedPODArray<UInt8>& c) { | 88 | 361 | size_t size = a.size(); | 89 | 361 | const A* __restrict a_pos = a.data(); | 90 | 361 | UInt8* __restrict c_pos = c.data(); | 91 | 361 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 203k | while (a_pos < a_end) { | 94 | 202k | *c_pos = Op::apply(*a_pos, b); | 95 | 202k | ++a_pos; | 96 | 202k | ++c_pos; | 97 | 202k | } | 98 | 361 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE 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 | 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 | 173 | } |
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 | 4.87k | PaddedPODArray<UInt8>& c) { | 88 | 4.87k | size_t size = a.size(); | 89 | 4.87k | const A* __restrict a_pos = a.data(); | 90 | 4.87k | UInt8* __restrict c_pos = c.data(); | 91 | 4.87k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.04M | while (a_pos < a_end) { | 94 | 9.04M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.04M | ++a_pos; | 96 | 9.04M | ++c_pos; | 97 | 9.04M | } | 98 | 4.87k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 305 | PaddedPODArray<UInt8>& c) { | 88 | 305 | size_t size = a.size(); | 89 | 305 | const A* __restrict a_pos = a.data(); | 90 | 305 | UInt8* __restrict c_pos = c.data(); | 91 | 305 | 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 | 305 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.79k | PaddedPODArray<UInt8>& c) { | 88 | 1.79k | size_t size = a.size(); | 89 | 1.79k | const A* __restrict a_pos = a.data(); | 90 | 1.79k | UInt8* __restrict c_pos = c.data(); | 91 | 1.79k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 173k | while (a_pos < a_end) { | 94 | 171k | *c_pos = Op::apply(*a_pos, b); | 95 | 171k | ++a_pos; | 96 | 171k | ++c_pos; | 97 | 171k | } | 98 | 1.79k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.79k | PaddedPODArray<UInt8>& c) { | 88 | 2.79k | size_t size = a.size(); | 89 | 2.79k | const A* __restrict a_pos = a.data(); | 90 | 2.79k | UInt8* __restrict c_pos = c.data(); | 91 | 2.79k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 640k | while (a_pos < a_end) { | 94 | 637k | *c_pos = Op::apply(*a_pos, b); | 95 | 637k | ++a_pos; | 96 | 637k | ++c_pos; | 97 | 637k | } | 98 | 2.79k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 43 | PaddedPODArray<UInt8>& c) { | 88 | 43 | size_t size = a.size(); | 89 | 43 | const A* __restrict a_pos = a.data(); | 90 | 43 | UInt8* __restrict c_pos = c.data(); | 91 | 43 | 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 | 43 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13 | PaddedPODArray<UInt8>& c) { | 88 | 13 | size_t size = a.size(); | 89 | 13 | const A* __restrict a_pos = a.data(); | 90 | 13 | UInt8* __restrict c_pos = c.data(); | 91 | 13 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 127 | 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 | 13 | } |
_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 | 596 | PaddedPODArray<UInt8>& c) { | 88 | 596 | size_t size = a.size(); | 89 | 596 | const A* __restrict a_pos = a.data(); | 90 | 596 | UInt8* __restrict c_pos = c.data(); | 91 | 596 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 713k | while (a_pos < a_end) { | 94 | 712k | *c_pos = Op::apply(*a_pos, b); | 95 | 712k | ++a_pos; | 96 | 712k | ++c_pos; | 97 | 712k | } | 98 | 596 | } |
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 | 31 | PaddedPODArray<UInt8>& c) { | 88 | 31 | size_t size = a.size(); | 89 | 31 | const A* __restrict a_pos = a.data(); | 90 | 31 | UInt8* __restrict c_pos = c.data(); | 91 | 31 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 82 | while (a_pos < a_end) { | 94 | 51 | *c_pos = Op::apply(*a_pos, b); | 95 | 51 | ++a_pos; | 96 | 51 | ++c_pos; | 97 | 51 | } | 98 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE 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 | 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 | 78 | while (a_pos < a_end) { | 94 | 50 | *c_pos = Op::apply(*a_pos, b); | 95 | 50 | ++a_pos; | 96 | 50 | ++c_pos; | 97 | 50 | } | 98 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 245 | PaddedPODArray<UInt8>& c) { | 88 | 245 | size_t size = a.size(); | 89 | 245 | const A* __restrict a_pos = a.data(); | 90 | 245 | UInt8* __restrict c_pos = c.data(); | 91 | 245 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.86k | while (a_pos < a_end) { | 94 | 1.61k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.61k | ++a_pos; | 96 | 1.61k | ++c_pos; | 97 | 1.61k | } | 98 | 245 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 777 | PaddedPODArray<UInt8>& c) { | 88 | 777 | size_t size = a.size(); | 89 | 777 | const A* __restrict a_pos = a.data(); | 90 | 777 | UInt8* __restrict c_pos = c.data(); | 91 | 777 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.91k | while (a_pos < a_end) { | 94 | 3.13k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.13k | ++a_pos; | 96 | 3.13k | ++c_pos; | 97 | 3.13k | } | 98 | 777 | } |
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 | 41 | PaddedPODArray<UInt8>& c) { | 88 | 41 | size_t size = a.size(); | 89 | 41 | const A* __restrict a_pos = a.data(); | 90 | 41 | UInt8* __restrict c_pos = c.data(); | 91 | 41 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 149 | while (a_pos < a_end) { | 94 | 108 | *c_pos = Op::apply(*a_pos, b); | 95 | 108 | ++a_pos; | 96 | 108 | ++c_pos; | 97 | 108 | } | 98 | 41 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 478 | PaddedPODArray<UInt8>& c) { | 88 | 478 | size_t size = a.size(); | 89 | 478 | const A* __restrict a_pos = a.data(); | 90 | 478 | UInt8* __restrict c_pos = c.data(); | 91 | 478 | 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 | 478 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 3 | 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 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 59 | PaddedPODArray<UInt8>& c) { | 88 | 59 | size_t size = a.size(); | 89 | 59 | const A* __restrict a_pos = a.data(); | 90 | 59 | UInt8* __restrict c_pos = c.data(); | 91 | 59 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 269 | while (a_pos < a_end) { | 94 | 210 | *c_pos = Op::apply(*a_pos, b); | 95 | 210 | ++a_pos; | 96 | 210 | ++c_pos; | 97 | 210 | } | 98 | 59 | } |
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.14k | PaddedPODArray<UInt8>& c) { | 88 | 1.14k | size_t size = a.size(); | 89 | 1.14k | const A* __restrict a_pos = a.data(); | 90 | 1.14k | UInt8* __restrict c_pos = c.data(); | 91 | 1.14k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.70k | while (a_pos < a_end) { | 94 | 5.55k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.55k | ++a_pos; | 96 | 5.55k | ++c_pos; | 97 | 5.55k | } | 98 | 1.14k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.98k | PaddedPODArray<UInt8>& c) { | 88 | 1.98k | size_t size = a.size(); | 89 | 1.98k | const A* __restrict a_pos = a.data(); | 90 | 1.98k | UInt8* __restrict c_pos = c.data(); | 91 | 1.98k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.52k | while (a_pos < a_end) { | 94 | 3.53k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.53k | ++a_pos; | 96 | 3.53k | ++c_pos; | 97 | 3.53k | } | 98 | 1.98k | } |
_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.26k | while (a_pos < a_end) { | 94 | 4.81k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.81k | ++a_pos; | 96 | 4.81k | ++c_pos; | 97 | 4.81k | } | 98 | 1.45k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 242 | PaddedPODArray<UInt8>& c) { | 88 | 242 | size_t size = a.size(); | 89 | 242 | const A* __restrict a_pos = a.data(); | 90 | 242 | UInt8* __restrict c_pos = c.data(); | 91 | 242 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.20k | while (a_pos < a_end) { | 94 | 958 | *c_pos = Op::apply(*a_pos, b); | 95 | 958 | ++a_pos; | 96 | 958 | ++c_pos; | 97 | 958 | } | 98 | 242 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 9.67k | PaddedPODArray<UInt8>& c) { | 88 | 9.67k | size_t size = a.size(); | 89 | 9.67k | const A* __restrict a_pos = a.data(); | 90 | 9.67k | UInt8* __restrict c_pos = c.data(); | 91 | 9.67k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.27M | while (a_pos < a_end) { | 94 | 5.26M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.26M | ++a_pos; | 96 | 5.26M | ++c_pos; | 97 | 5.26M | } | 98 | 9.67k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 4.20k | PaddedPODArray<UInt8>& c) { | 88 | 4.20k | size_t size = a.size(); | 89 | 4.20k | const A* __restrict a_pos = a.data(); | 90 | 4.20k | UInt8* __restrict c_pos = c.data(); | 91 | 4.20k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 952k | while (a_pos < a_end) { | 94 | 948k | *c_pos = Op::apply(*a_pos, b); | 95 | 948k | ++a_pos; | 96 | 948k | ++c_pos; | 97 | 948k | } | 98 | 4.20k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.21k | PaddedPODArray<UInt8>& c) { | 88 | 1.21k | size_t size = a.size(); | 89 | 1.21k | const A* __restrict a_pos = a.data(); | 90 | 1.21k | UInt8* __restrict c_pos = c.data(); | 91 | 1.21k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 97.7k | while (a_pos < a_end) { | 94 | 96.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 96.5k | ++a_pos; | 96 | 96.5k | ++c_pos; | 97 | 96.5k | } | 98 | 1.21k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.03k | PaddedPODArray<UInt8>& c) { | 88 | 1.03k | size_t size = a.size(); | 89 | 1.03k | const A* __restrict a_pos = a.data(); | 90 | 1.03k | UInt8* __restrict c_pos = c.data(); | 91 | 1.03k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 11.7k | while (a_pos < a_end) { | 94 | 10.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 10.6k | ++a_pos; | 96 | 10.6k | ++c_pos; | 97 | 10.6k | } | 98 | 1.03k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 290 | PaddedPODArray<UInt8>& c) { | 88 | 290 | size_t size = a.size(); | 89 | 290 | const A* __restrict a_pos = a.data(); | 90 | 290 | UInt8* __restrict c_pos = c.data(); | 91 | 290 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.92k | while (a_pos < a_end) { | 94 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.63k | ++a_pos; | 96 | 1.63k | ++c_pos; | 97 | 1.63k | } | 98 | 290 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 114 | PaddedPODArray<UInt8>& c) { | 88 | 114 | size_t size = a.size(); | 89 | 114 | const A* __restrict a_pos = a.data(); | 90 | 114 | UInt8* __restrict c_pos = c.data(); | 91 | 114 | 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 | 114 | } |
_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 | 200 | PaddedPODArray<UInt8>& c) { | 88 | 200 | size_t size = a.size(); | 89 | 200 | const A* __restrict a_pos = a.data(); | 90 | 200 | UInt8* __restrict c_pos = c.data(); | 91 | 200 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.61k | while (a_pos < a_end) { | 94 | 2.41k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.41k | ++a_pos; | 96 | 2.41k | ++c_pos; | 97 | 2.41k | } | 98 | 200 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 499 | PaddedPODArray<UInt8>& c) { | 88 | 499 | size_t size = a.size(); | 89 | 499 | const A* __restrict a_pos = a.data(); | 90 | 499 | UInt8* __restrict c_pos = c.data(); | 91 | 499 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.46k | while (a_pos < a_end) { | 94 | 6.96k | *c_pos = Op::apply(*a_pos, b); | 95 | 6.96k | ++a_pos; | 96 | 6.96k | ++c_pos; | 97 | 6.96k | } | 98 | 499 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 265 | PaddedPODArray<UInt8>& c) { | 88 | 265 | size_t size = a.size(); | 89 | 265 | const A* __restrict a_pos = a.data(); | 90 | 265 | UInt8* __restrict c_pos = c.data(); | 91 | 265 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 282k | while (a_pos < a_end) { | 94 | 282k | *c_pos = Op::apply(*a_pos, b); | 95 | 282k | ++a_pos; | 96 | 282k | ++c_pos; | 97 | 282k | } | 98 | 265 | } |
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 | 24 | PaddedPODArray<UInt8>& c) { | 88 | 24 | size_t size = a.size(); | 89 | 24 | const A* __restrict a_pos = a.data(); | 90 | 24 | UInt8* __restrict c_pos = c.data(); | 91 | 24 | 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 | 24 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 14 | PaddedPODArray<UInt8>& c) { | 88 | 14 | size_t size = a.size(); | 89 | 14 | const A* __restrict a_pos = a.data(); | 90 | 14 | UInt8* __restrict c_pos = c.data(); | 91 | 14 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 25.6k | while (a_pos < a_end) { | 94 | 25.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 25.6k | ++a_pos; | 96 | 25.6k | ++c_pos; | 97 | 25.6k | } | 98 | 14 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 602 | PaddedPODArray<UInt8>& c) { | 88 | 602 | size_t size = a.size(); | 89 | 602 | const A* __restrict a_pos = a.data(); | 90 | 602 | UInt8* __restrict c_pos = c.data(); | 91 | 602 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.45M | while (a_pos < a_end) { | 94 | 1.44M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.44M | ++a_pos; | 96 | 1.44M | ++c_pos; | 97 | 1.44M | } | 98 | 602 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 155 | PaddedPODArray<UInt8>& c) { | 88 | 155 | size_t size = a.size(); | 89 | 155 | const A* __restrict a_pos = a.data(); | 90 | 155 | UInt8* __restrict c_pos = c.data(); | 91 | 155 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 721k | while (a_pos < a_end) { | 94 | 721k | *c_pos = Op::apply(*a_pos, b); | 95 | 721k | ++a_pos; | 96 | 721k | ++c_pos; | 97 | 721k | } | 98 | 155 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 139 | PaddedPODArray<UInt8>& c) { | 88 | 139 | size_t size = a.size(); | 89 | 139 | const A* __restrict a_pos = a.data(); | 90 | 139 | UInt8* __restrict c_pos = c.data(); | 91 | 139 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 521 | while (a_pos < a_end) { | 94 | 382 | *c_pos = Op::apply(*a_pos, b); | 95 | 382 | ++a_pos; | 96 | 382 | ++c_pos; | 97 | 382 | } | 98 | 139 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 47 | PaddedPODArray<UInt8>& c) { | 88 | 47 | size_t size = a.size(); | 89 | 47 | const A* __restrict a_pos = a.data(); | 90 | 47 | UInt8* __restrict c_pos = c.data(); | 91 | 47 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 115 | while (a_pos < a_end) { | 94 | 68 | *c_pos = Op::apply(*a_pos, b); | 95 | 68 | ++a_pos; | 96 | 68 | ++c_pos; | 97 | 68 | } | 98 | 47 | } |
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 | 67 | PaddedPODArray<UInt8>& c) { | 88 | 67 | size_t size = a.size(); | 89 | 67 | const A* __restrict a_pos = a.data(); | 90 | 67 | UInt8* __restrict c_pos = c.data(); | 91 | 67 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 43.4k | while (a_pos < a_end) { | 94 | 43.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 43.4k | ++a_pos; | 96 | 43.4k | ++c_pos; | 97 | 43.4k | } | 98 | 67 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 108 | PaddedPODArray<UInt8>& c) { | 88 | 108 | size_t size = a.size(); | 89 | 108 | const A* __restrict a_pos = a.data(); | 90 | 108 | UInt8* __restrict c_pos = c.data(); | 91 | 108 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 63.7k | while (a_pos < a_end) { | 94 | 63.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 63.6k | ++a_pos; | 96 | 63.6k | ++c_pos; | 97 | 63.6k | } | 98 | 108 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 123 | PaddedPODArray<UInt8>& c) { | 88 | 123 | size_t size = a.size(); | 89 | 123 | const A* __restrict a_pos = a.data(); | 90 | 123 | UInt8* __restrict c_pos = c.data(); | 91 | 123 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 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 | 123 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 170 | PaddedPODArray<UInt8>& c) { | 88 | 170 | size_t size = a.size(); | 89 | 170 | const A* __restrict a_pos = a.data(); | 90 | 170 | UInt8* __restrict c_pos = c.data(); | 91 | 170 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 41.6k | while (a_pos < a_end) { | 94 | 41.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 41.4k | ++a_pos; | 96 | 41.4k | ++c_pos; | 97 | 41.4k | } | 98 | 170 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.17k | PaddedPODArray<UInt8>& c) { | 88 | 2.17k | size_t size = a.size(); | 89 | 2.17k | const A* __restrict a_pos = a.data(); | 90 | 2.17k | UInt8* __restrict c_pos = c.data(); | 91 | 2.17k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.39M | while (a_pos < a_end) { | 94 | 4.39M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.39M | ++a_pos; | 96 | 4.39M | ++c_pos; | 97 | 4.39M | } | 98 | 2.17k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.80k | PaddedPODArray<UInt8>& c) { | 88 | 6.80k | size_t size = a.size(); | 89 | 6.80k | const A* __restrict a_pos = a.data(); | 90 | 6.80k | UInt8* __restrict c_pos = c.data(); | 91 | 6.80k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8.36M | while (a_pos < a_end) { | 94 | 8.35M | *c_pos = Op::apply(*a_pos, b); | 95 | 8.35M | ++a_pos; | 96 | 8.35M | ++c_pos; | 97 | 8.35M | } | 98 | 6.80k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 225 | PaddedPODArray<UInt8>& c) { | 88 | 225 | size_t size = a.size(); | 89 | 225 | const A* __restrict a_pos = a.data(); | 90 | 225 | UInt8* __restrict c_pos = c.data(); | 91 | 225 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.00k | while (a_pos < a_end) { | 94 | 783 | *c_pos = Op::apply(*a_pos, b); | 95 | 783 | ++a_pos; | 96 | 783 | ++c_pos; | 97 | 783 | } | 98 | 225 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 270 | PaddedPODArray<UInt8>& c) { | 88 | 270 | size_t size = a.size(); | 89 | 270 | const A* __restrict a_pos = a.data(); | 90 | 270 | UInt8* __restrict c_pos = c.data(); | 91 | 270 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.60k | while (a_pos < a_end) { | 94 | 3.33k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.33k | ++a_pos; | 96 | 3.33k | ++c_pos; | 97 | 3.33k | } | 98 | 270 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 24 | PaddedPODArray<UInt8>& c) { | 88 | 24 | size_t size = a.size(); | 89 | 24 | const A* __restrict a_pos = a.data(); | 90 | 24 | UInt8* __restrict c_pos = c.data(); | 91 | 24 | 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 | 24 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_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 | 104k | while (a_pos < a_end) { | 94 | 104k | *c_pos = Op::apply(*a_pos, b); | 95 | 104k | ++a_pos; | 96 | 104k | ++c_pos; | 97 | 104k | } | 98 | 26 | } |
_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 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 10 | 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 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 265 | PaddedPODArray<UInt8>& c) { | 88 | 265 | size_t size = a.size(); | 89 | 265 | const A* __restrict a_pos = a.data(); | 90 | 265 | UInt8* __restrict c_pos = c.data(); | 91 | 265 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 356k | while (a_pos < a_end) { | 94 | 355k | *c_pos = Op::apply(*a_pos, b); | 95 | 355k | ++a_pos; | 96 | 355k | ++c_pos; | 97 | 355k | } | 98 | 265 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 178 | PaddedPODArray<UInt8>& c) { | 88 | 178 | size_t size = a.size(); | 89 | 178 | const A* __restrict a_pos = a.data(); | 90 | 178 | UInt8* __restrict c_pos = c.data(); | 91 | 178 | 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 | 178 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 7.85k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 7.85k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 7.85k | } 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 | 276 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 276 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 276 | } |
_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 | 114 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 114 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 114 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1.15k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1.15k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1.15k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 754 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 754 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 754 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 520 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 520 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 520 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 54 | } |
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 | 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 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 121 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 121 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 121 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 79 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 88 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 88 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 88 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 549 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 549 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 549 | } |
_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 | 124 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 124 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 364k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 364k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 364k | } |
119 | 124 | } _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 | 45 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 45 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 196k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 196k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 196k | } | 119 | 45 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 42 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 42 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 167k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 167k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 167k | } | 119 | 42 | } |
|
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 | 481 | PaddedPODArray<UInt8>& c) { |
133 | 481 | size_t size = a_offsets.size(); |
134 | 481 | ColumnString::Offset prev_a_offset = 0; |
135 | 481 | ColumnString::Offset prev_b_offset = 0; |
136 | 481 | const auto* a_pos = a_data.data(); |
137 | 481 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.68k | for (size_t i = 0; i < size; ++i) { |
140 | 1.20k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.20k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.20k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.20k | 0); |
144 | | |
145 | 1.20k | prev_a_offset = a_offsets[i]; |
146 | 1.20k | prev_b_offset = b_offsets[i]; |
147 | 1.20k | } |
148 | 481 | } _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 | 36 | PaddedPODArray<UInt8>& c) { | 133 | 36 | size_t size = a_offsets.size(); | 134 | 36 | ColumnString::Offset prev_a_offset = 0; | 135 | 36 | ColumnString::Offset prev_b_offset = 0; | 136 | 36 | const auto* a_pos = a_data.data(); | 137 | 36 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 230 | for (size_t i = 0; i < size; ++i) { | 140 | 194 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 194 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 194 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 194 | 0); | 144 | | | 145 | 194 | prev_a_offset = a_offsets[i]; | 146 | 194 | prev_b_offset = b_offsets[i]; | 147 | 194 | } | 148 | 36 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 443 | PaddedPODArray<UInt8>& c) { | 133 | 443 | size_t size = a_offsets.size(); | 134 | 443 | ColumnString::Offset prev_a_offset = 0; | 135 | 443 | ColumnString::Offset prev_b_offset = 0; | 136 | 443 | const auto* a_pos = a_data.data(); | 137 | 443 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.40k | for (size_t i = 0; i < size; ++i) { | 140 | 965 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 965 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 965 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 965 | 0); | 144 | | | 145 | 965 | prev_a_offset = a_offsets[i]; | 146 | 965 | prev_b_offset = b_offsets[i]; | 147 | 965 | } | 148 | 443 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
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 | 737 | PaddedPODArray<UInt8>& c) { |
155 | 737 | size_t size = a_offsets.size(); |
156 | 737 | ColumnString::Offset prev_a_offset = 0; |
157 | 737 | const auto* a_pos = a_data.data(); |
158 | 737 | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.26M | for (size_t i = 0; i < size; ++i) { |
161 | 1.26M | c[i] = Op::apply( |
162 | 1.26M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.26M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.26M | 0); |
165 | | |
166 | 1.26M | prev_a_offset = a_offsets[i]; |
167 | 1.26M | } |
168 | 737 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 184 | PaddedPODArray<UInt8>& c) { | 155 | 184 | size_t size = a_offsets.size(); | 156 | 184 | ColumnString::Offset prev_a_offset = 0; | 157 | 184 | const auto* a_pos = a_data.data(); | 158 | 184 | 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 | 184 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 109 | PaddedPODArray<UInt8>& c) { | 155 | 109 | size_t size = a_offsets.size(); | 156 | 109 | ColumnString::Offset prev_a_offset = 0; | 157 | 109 | const auto* a_pos = a_data.data(); | 158 | 109 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 72.8k | for (size_t i = 0; i < size; ++i) { | 161 | 72.7k | c[i] = Op::apply( | 162 | 72.7k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 72.7k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 72.7k | 0); | 165 | | | 166 | 72.7k | prev_a_offset = a_offsets[i]; | 167 | 72.7k | } | 168 | 109 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 252 | PaddedPODArray<UInt8>& c) { | 155 | 252 | size_t size = a_offsets.size(); | 156 | 252 | ColumnString::Offset prev_a_offset = 0; | 157 | 252 | const auto* a_pos = a_data.data(); | 158 | 252 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 440k | for (size_t i = 0; i < size; ++i) { | 161 | 440k | c[i] = Op::apply( | 162 | 440k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 440k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 440k | 0); | 165 | | | 166 | 440k | prev_a_offset = a_offsets[i]; | 167 | 440k | } | 168 | 252 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 192 | PaddedPODArray<UInt8>& c) { | 155 | 192 | size_t size = a_offsets.size(); | 156 | 192 | ColumnString::Offset prev_a_offset = 0; | 157 | 192 | const auto* a_pos = a_data.data(); | 158 | 192 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 426k | for (size_t i = 0; i < size; ++i) { | 161 | 425k | c[i] = Op::apply( | 162 | 425k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 425k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 425k | 0); | 165 | | | 166 | 425k | prev_a_offset = a_offsets[i]; | 167 | 425k | } | 168 | 192 | } |
|
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 | 4 | PaddedPODArray<UInt8>& c) { |
175 | 4 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 4 | a_data, a_size, c); |
177 | 4 | } 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 | 4 | PaddedPODArray<UInt8>& c) { | 175 | 4 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 4 | a_data, a_size, c); | 177 | 4 | } |
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 | 445 | PaddedPODArray<UInt8>& c) { |
187 | 445 | size_t size = a_offsets.size(); |
188 | 445 | ColumnString::Offset prev_a_offset = 0; |
189 | 445 | ColumnString::Offset prev_b_offset = 0; |
190 | 445 | const auto* a_pos = a_data.data(); |
191 | 445 | const auto* b_pos = b_data.data(); |
192 | | |
193 | 1.33k | for (size_t i = 0; i < size; ++i) { |
194 | 894 | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 894 | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 894 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 894 | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 894 | prev_a_offset = a_offsets[i]; |
201 | 894 | prev_b_offset = b_offsets[i]; |
202 | 894 | } |
203 | 445 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 444 | PaddedPODArray<UInt8>& c) { | 187 | 444 | size_t size = a_offsets.size(); | 188 | 444 | ColumnString::Offset prev_a_offset = 0; | 189 | 444 | ColumnString::Offset prev_b_offset = 0; | 190 | 444 | const auto* a_pos = a_data.data(); | 191 | 444 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 1.33k | for (size_t i = 0; i < size; ++i) { | 194 | 890 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 890 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 890 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 890 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 890 | prev_a_offset = a_offsets[i]; | 201 | 890 | prev_b_offset = b_offsets[i]; | 202 | 890 | } | 203 | 444 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1 | PaddedPODArray<UInt8>& c) { | 187 | 1 | size_t size = a_offsets.size(); | 188 | 1 | ColumnString::Offset prev_a_offset = 0; | 189 | 1 | ColumnString::Offset prev_b_offset = 0; | 190 | 1 | const auto* a_pos = a_data.data(); | 191 | 1 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 5 | for (size_t i = 0; i < size; ++i) { | 194 | 4 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 4 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 4 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 4 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 4 | prev_a_offset = a_offsets[i]; | 201 | 4 | prev_b_offset = b_offsets[i]; | 202 | 4 | } | 203 | 1 | } |
|
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 | 10.2k | PaddedPODArray<UInt8>& c) { |
210 | 10.2k | size_t size = a_offsets.size(); |
211 | 10.2k | if (b_size == 0) { |
212 | 1 | auto* __restrict data = c.data(); |
213 | 1 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 1 | ColumnString::Offset prev_a_offset = 0; |
216 | 4 | for (size_t i = 0; i < size; ++i) { |
217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 3 | prev_a_offset = offsets[i]; |
219 | 3 | } |
220 | 10.2k | } else { |
221 | 10.2k | ColumnString::Offset prev_a_offset = 0; |
222 | 10.2k | const auto* a_pos = a_data.data(); |
223 | 10.2k | const auto* b_pos = b_data.data(); |
224 | 1.45M | for (size_t i = 0; i < size; ++i) { |
225 | 1.44M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 1.44M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 1.44M | b_pos, b_size); |
228 | 1.44M | prev_a_offset = a_offsets[i]; |
229 | 1.44M | } |
230 | 10.2k | } |
231 | 10.2k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 10.1k | PaddedPODArray<UInt8>& c) { | 210 | 10.1k | size_t size = a_offsets.size(); | 211 | 10.1k | 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 | 10.1k | } else { | 221 | 10.1k | ColumnString::Offset prev_a_offset = 0; | 222 | 10.1k | const auto* a_pos = a_data.data(); | 223 | 10.1k | const auto* b_pos = b_data.data(); | 224 | 1.41M | for (size_t i = 0; i < size; ++i) { | 225 | 1.40M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 1.40M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 1.40M | b_pos, b_size); | 228 | 1.40M | prev_a_offset = a_offsets[i]; | 229 | 1.40M | } | 230 | 10.1k | } | 231 | 10.1k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 94 | PaddedPODArray<UInt8>& c) { | 210 | 94 | size_t size = a_offsets.size(); | 211 | 94 | if (b_size == 0) { | 212 | 1 | auto* __restrict data = c.data(); | 213 | 1 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 1 | ColumnString::Offset prev_a_offset = 0; | 216 | 4 | for (size_t i = 0; i < size; ++i) { | 217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 3 | prev_a_offset = offsets[i]; | 219 | 3 | } | 220 | 93 | } else { | 221 | 93 | ColumnString::Offset prev_a_offset = 0; | 222 | 93 | const auto* a_pos = a_data.data(); | 223 | 93 | const auto* b_pos = b_data.data(); | 224 | 43.8k | for (size_t i = 0; i < size; ++i) { | 225 | 43.7k | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 43.7k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 43.7k | b_pos, b_size); | 228 | 43.7k | prev_a_offset = a_offsets[i]; | 229 | 43.7k | } | 230 | 93 | } | 231 | 94 | } |
|
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 | 2.48k | Op op) { |
296 | 2.48k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 2.48k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 2.48k | slot_literal->slot_type); |
300 | 2.48k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 2.48k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 2.48k | if (zone_map_ptr == nullptr) { |
305 | 29 | return unsupported_zonemap_filter(ctx); |
306 | 29 | } |
307 | 2.45k | const auto& zone_map = *zone_map_ptr; |
308 | 2.45k | if (!zone_map.has_not_null) { |
309 | 59 | return ZoneMapFilterResult::kNoMatch; |
310 | 59 | } |
311 | 2.39k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 113 | return unsupported_zonemap_filter(ctx); |
313 | 113 | } |
314 | | |
315 | 2.28k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 2.28k | const auto& literal = slot_literal->literal; |
317 | 2.28k | switch (effective_op) { |
318 | 1.40k | case Op::EQ: |
319 | 1.40k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 1.40k | ? ZoneMapFilterResult::kNoMatch |
321 | 1.40k | : ZoneMapFilterResult::kMayMatch; |
322 | 95 | case Op::NE: |
323 | 95 | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 95 | ? ZoneMapFilterResult::kNoMatch |
325 | 95 | : ZoneMapFilterResult::kMayMatch; |
326 | 196 | case Op::LT: |
327 | 196 | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 196 | : ZoneMapFilterResult::kMayMatch; |
329 | 182 | case Op::LE: |
330 | 182 | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 182 | : ZoneMapFilterResult::kMayMatch; |
332 | 196 | case Op::GT: |
333 | 196 | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 196 | : ZoneMapFilterResult::kMayMatch; |
335 | 213 | case Op::GE: |
336 | 213 | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 213 | : ZoneMapFilterResult::kMayMatch; |
338 | 2.28k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 2.28k | } |
343 | | |
344 | 32.1k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 32.1k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 32.1k | if (!slot_literal.has_value()) { |
347 | 22.4k | return false; |
348 | 22.4k | } |
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 | 9.64k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 9.63k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 9.63k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 9.63k | 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 | 1 | return false; |
364 | 1 | } |
365 | | |
366 | 9.63k | return true; |
367 | 9.63k | } |
368 | | |
369 | 34.6k | inline std::optional<Op> op_from_name(std::string_view name) { |
370 | 34.6k | if (name == NameEquals::name) { |
371 | 14.2k | return Op::EQ; |
372 | 14.2k | } |
373 | 20.3k | if (name == NameNotEquals::name) { |
374 | 1.41k | return Op::NE; |
375 | 1.41k | } |
376 | 18.9k | if (name == NameLess::name) { |
377 | 4.69k | return Op::LT; |
378 | 4.69k | } |
379 | 14.2k | if (name == NameLessOrEquals::name) { |
380 | 3.17k | return Op::LE; |
381 | 3.17k | } |
382 | 11.0k | if (name == NameGreater::name) { |
383 | 5.23k | return Op::GT; |
384 | 5.23k | } |
385 | 5.87k | if (name == NameGreaterOrEquals::name) { |
386 | 5.87k | return Op::GE; |
387 | 5.87k | } |
388 | 18.4E | return std::nullopt; |
389 | 5.83k | } |
390 | | } // namespace comparison_zonemap_detail |
391 | | |
392 | | template <template <PrimitiveType> class Op, typename Name> |
393 | | class FunctionComparison : public IFunction { |
394 | | public: |
395 | | static constexpr auto name = Name::name; |
396 | 266k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 396 | 241k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 396 | 1.15k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 396 | 4.88k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 396 | 7.32k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 396 | 2.97k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 396 | 9.01k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
397 | | |
398 | 266k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 398 | 241k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 398 | 1.15k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 398 | 4.88k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 398 | 7.31k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 398 | 2.97k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 398 | 9.00k | FunctionComparison() = default; |
|
399 | | |
400 | 648k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 400 | 642k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 400 | 603 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 400 | 1.89k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 400 | 1.67k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 400 | 1.14k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 400 | 807 | double execute_cost() const override { return 0.5; } |
|
401 | | |
402 | | private: |
403 | | template <PrimitiveType PT> |
404 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
405 | 55.1k | const ColumnPtr& col_right_ptr) const { |
406 | 55.1k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
407 | 55.1k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
408 | | |
409 | 55.1k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
410 | 55.1k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
411 | | |
412 | 55.1k | DCHECK(!(left_is_const && right_is_const)); |
413 | | |
414 | 55.1k | if (!left_is_const && !right_is_const) { |
415 | 8.66k | auto col_res = ColumnUInt8::create(); |
416 | | |
417 | 8.66k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
418 | 8.66k | vec_res.resize(col_left->get_data().size()); |
419 | 8.66k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
420 | 8.66k | typename PrimitiveTypeTraits<PT>::CppType, |
421 | 8.66k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
422 | 8.66k | vec_res); |
423 | | |
424 | 8.66k | block.replace_by_position(result, std::move(col_res)); |
425 | 46.4k | } else if (!left_is_const && right_is_const) { |
426 | 38.6k | auto col_res = ColumnUInt8::create(); |
427 | | |
428 | 38.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
429 | 38.6k | vec_res.resize(col_left->size()); |
430 | 38.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
431 | 38.6k | typename PrimitiveTypeTraits<PT>::CppType, |
432 | 38.6k | Op<PT>>::vector_constant(col_left->get_data(), |
433 | 38.6k | col_right->get_element(0), vec_res); |
434 | | |
435 | 38.6k | block.replace_by_position(result, std::move(col_res)); |
436 | 38.6k | } else if (left_is_const && !right_is_const) { |
437 | 7.85k | auto col_res = ColumnUInt8::create(); |
438 | | |
439 | 7.85k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
440 | 7.85k | vec_res.resize(col_right->size()); |
441 | 7.85k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
442 | 7.85k | typename PrimitiveTypeTraits<PT>::CppType, |
443 | 7.85k | Op<PT>>::constant_vector(col_left->get_element(0), |
444 | 7.85k | col_right->get_data(), vec_res); |
445 | | |
446 | 7.85k | block.replace_by_position(result, std::move(col_res)); |
447 | 7.85k | } |
448 | 55.1k | return Status::OK(); |
449 | 55.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 99 | const ColumnPtr& col_right_ptr) const { | 406 | 99 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 99 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 99 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 99 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 99 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 99 | if (!left_is_const && !right_is_const) { | 415 | 73 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 73 | vec_res.resize(col_left->get_data().size()); | 419 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 73 | vec_res); | 423 | | | 424 | 73 | block.replace_by_position(result, std::move(col_res)); | 425 | 73 | } else if (!left_is_const && right_is_const) { | 426 | 26 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 26 | vec_res.resize(col_left->size()); | 430 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 26 | col_right->get_element(0), vec_res); | 434 | | | 435 | 26 | block.replace_by_position(result, std::move(col_res)); | 436 | 26 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 99 | return Status::OK(); | 449 | 99 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 571 | const ColumnPtr& col_right_ptr) const { | 406 | 571 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 571 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 571 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 571 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 571 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 571 | if (!left_is_const && !right_is_const) { | 415 | 210 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 210 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 210 | vec_res.resize(col_left->get_data().size()); | 419 | 210 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 210 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 210 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 210 | vec_res); | 423 | | | 424 | 210 | block.replace_by_position(result, std::move(col_res)); | 425 | 361 | } else if (!left_is_const && right_is_const) { | 426 | 361 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 361 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 361 | vec_res.resize(col_left->size()); | 430 | 361 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 361 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 361 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 361 | col_right->get_element(0), vec_res); | 434 | | | 435 | 361 | block.replace_by_position(result, std::move(col_res)); | 436 | 361 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 571 | return Status::OK(); | 449 | 571 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 418 | const ColumnPtr& col_right_ptr) const { | 406 | 418 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 418 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 418 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 418 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 418 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 418 | if (!left_is_const && !right_is_const) { | 415 | 245 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 245 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 245 | vec_res.resize(col_left->get_data().size()); | 419 | 245 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 245 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 245 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 245 | vec_res); | 423 | | | 424 | 245 | block.replace_by_position(result, std::move(col_res)); | 425 | 245 | } else if (!left_is_const && right_is_const) { | 426 | 173 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 173 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 173 | vec_res.resize(col_left->size()); | 430 | 173 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 173 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 173 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 173 | col_right->get_element(0), vec_res); | 434 | | | 435 | 173 | block.replace_by_position(result, std::move(col_res)); | 436 | 173 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 418 | return Status::OK(); | 449 | 418 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2 | const ColumnPtr& col_right_ptr) const { | 406 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 2 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 2 | vec_res.resize(col_left->get_data().size()); | 419 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 2 | vec_res); | 423 | | | 424 | 2 | block.replace_by_position(result, std::move(col_res)); | 425 | 2 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2 | return Status::OK(); | 449 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 5.03k | const ColumnPtr& col_right_ptr) const { | 406 | 5.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 5.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 5.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 5.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 5.03k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 5.03k | if (!left_is_const && !right_is_const) { | 415 | 153 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 153 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 153 | vec_res.resize(col_left->get_data().size()); | 419 | 153 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 153 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 153 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 153 | vec_res); | 423 | | | 424 | 153 | block.replace_by_position(result, std::move(col_res)); | 425 | 4.87k | } else if (!left_is_const && right_is_const) { | 426 | 4.60k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 4.60k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 4.60k | vec_res.resize(col_left->size()); | 430 | 4.60k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 4.60k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 4.60k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 4.60k | col_right->get_element(0), vec_res); | 434 | | | 435 | 4.60k | block.replace_by_position(result, std::move(col_res)); | 436 | 4.60k | } else if (left_is_const && !right_is_const) { | 437 | 276 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 276 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 276 | vec_res.resize(col_right->size()); | 441 | 276 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 276 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 276 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 276 | col_right->get_data(), vec_res); | 445 | | | 446 | 276 | block.replace_by_position(result, std::move(col_res)); | 447 | 276 | } | 448 | 5.03k | return Status::OK(); | 449 | 5.03k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 374 | const ColumnPtr& col_right_ptr) const { | 406 | 374 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 374 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 374 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 374 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 374 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 374 | if (!left_is_const && !right_is_const) { | 415 | 69 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 69 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 69 | vec_res.resize(col_left->get_data().size()); | 419 | 69 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 69 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 69 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 69 | vec_res); | 423 | | | 424 | 69 | block.replace_by_position(result, std::move(col_res)); | 425 | 305 | } else if (!left_is_const && right_is_const) { | 426 | 269 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 269 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 269 | vec_res.resize(col_left->size()); | 430 | 269 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 269 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 269 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 269 | col_right->get_element(0), vec_res); | 434 | | | 435 | 269 | block.replace_by_position(result, std::move(col_res)); | 436 | 269 | } else if (left_is_const && !right_is_const) { | 437 | 36 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 36 | vec_res.resize(col_right->size()); | 441 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 36 | col_right->get_data(), vec_res); | 445 | | | 446 | 36 | block.replace_by_position(result, std::move(col_res)); | 447 | 36 | } | 448 | 374 | return Status::OK(); | 449 | 374 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.03k | const ColumnPtr& col_right_ptr) const { | 406 | 2.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.03k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.03k | if (!left_is_const && !right_is_const) { | 415 | 241 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 241 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 241 | vec_res.resize(col_left->get_data().size()); | 419 | 241 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 241 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 241 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 241 | vec_res); | 423 | | | 424 | 241 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.79k | } else if (!left_is_const && right_is_const) { | 426 | 1.68k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.68k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.68k | vec_res.resize(col_left->size()); | 430 | 1.68k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.68k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.68k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.68k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.68k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.68k | } else if (left_is_const && !right_is_const) { | 437 | 114 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 114 | vec_res.resize(col_right->size()); | 441 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 114 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 114 | col_right->get_data(), vec_res); | 445 | | | 446 | 114 | block.replace_by_position(result, std::move(col_res)); | 447 | 114 | } | 448 | 2.03k | return Status::OK(); | 449 | 2.03k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.92k | const ColumnPtr& col_right_ptr) const { | 406 | 2.92k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.92k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.92k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.92k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.92k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.92k | if (!left_is_const && !right_is_const) { | 415 | 128 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 128 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 128 | vec_res.resize(col_left->get_data().size()); | 419 | 128 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 128 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 128 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 128 | vec_res); | 423 | | | 424 | 128 | block.replace_by_position(result, std::move(col_res)); | 425 | 2.79k | } else if (!left_is_const && right_is_const) { | 426 | 1.63k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.63k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.63k | vec_res.resize(col_left->size()); | 430 | 1.63k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.63k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.63k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.63k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.63k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.63k | } else if (left_is_const && !right_is_const) { | 437 | 1.15k | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 1.15k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 1.15k | vec_res.resize(col_right->size()); | 441 | 1.15k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 1.15k | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 1.15k | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 1.15k | col_right->get_data(), vec_res); | 445 | | | 446 | 1.15k | block.replace_by_position(result, std::move(col_res)); | 447 | 1.15k | } | 448 | 2.92k | return Status::OK(); | 449 | 2.92k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 117 | const ColumnPtr& col_right_ptr) const { | 406 | 117 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 117 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 117 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 117 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 117 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 117 | if (!left_is_const && !right_is_const) { | 415 | 74 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 74 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 74 | vec_res.resize(col_left->get_data().size()); | 419 | 74 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 74 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 74 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 74 | vec_res); | 423 | | | 424 | 74 | block.replace_by_position(result, std::move(col_res)); | 425 | 74 | } else if (!left_is_const && right_is_const) { | 426 | 27 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 27 | vec_res.resize(col_left->size()); | 430 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 27 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 27 | col_right->get_element(0), vec_res); | 434 | | | 435 | 27 | block.replace_by_position(result, std::move(col_res)); | 436 | 27 | } else if (left_is_const && !right_is_const) { | 437 | 16 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 16 | vec_res.resize(col_right->size()); | 441 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 16 | col_right->get_data(), vec_res); | 445 | | | 446 | 16 | block.replace_by_position(result, std::move(col_res)); | 447 | 16 | } | 448 | 117 | return Status::OK(); | 449 | 117 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 18 | const ColumnPtr& col_right_ptr) const { | 406 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 18 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 18 | if (!left_is_const && !right_is_const) { | 415 | 5 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 5 | vec_res.resize(col_left->get_data().size()); | 419 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 5 | vec_res); | 423 | | | 424 | 5 | block.replace_by_position(result, std::move(col_res)); | 425 | 13 | } else if (!left_is_const && right_is_const) { | 426 | 13 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 13 | vec_res.resize(col_left->size()); | 430 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 13 | col_right->get_element(0), vec_res); | 434 | | | 435 | 13 | block.replace_by_position(result, std::move(col_res)); | 436 | 13 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 18 | return Status::OK(); | 449 | 18 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 19 | const ColumnPtr& col_right_ptr) const { | 406 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 19 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 19 | if (!left_is_const && !right_is_const) { | 415 | 13 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 13 | vec_res.resize(col_left->get_data().size()); | 419 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 13 | vec_res); | 423 | | | 424 | 13 | block.replace_by_position(result, std::move(col_res)); | 425 | 13 | } else if (!left_is_const && right_is_const) { | 426 | 6 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 6 | vec_res.resize(col_left->size()); | 430 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 6 | col_right->get_element(0), vec_res); | 434 | | | 435 | 6 | block.replace_by_position(result, std::move(col_res)); | 436 | 6 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 19 | return Status::OK(); | 449 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 101 | const ColumnPtr& col_right_ptr) const { | 406 | 101 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 101 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 101 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 101 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 101 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 101 | if (!left_is_const && !right_is_const) { | 415 | 101 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 101 | vec_res.resize(col_left->get_data().size()); | 419 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 101 | vec_res); | 423 | | | 424 | 101 | block.replace_by_position(result, std::move(col_res)); | 425 | 101 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 101 | return Status::OK(); | 449 | 101 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 687 | const ColumnPtr& col_right_ptr) const { | 406 | 687 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 687 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 687 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 687 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 687 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 687 | if (!left_is_const && !right_is_const) { | 415 | 91 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 91 | vec_res.resize(col_left->get_data().size()); | 419 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 91 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 91 | vec_res); | 423 | | | 424 | 91 | block.replace_by_position(result, std::move(col_res)); | 425 | 596 | } else if (!left_is_const && right_is_const) { | 426 | 596 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 596 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 596 | vec_res.resize(col_left->size()); | 430 | 596 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 596 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 596 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 596 | col_right->get_element(0), vec_res); | 434 | | | 435 | 596 | block.replace_by_position(result, std::move(col_res)); | 436 | 596 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 687 | return Status::OK(); | 449 | 687 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 4 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 4 | vec_res.resize(col_left->get_data().size()); | 419 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 4 | vec_res); | 423 | | | 424 | 4 | block.replace_by_position(result, std::move(col_res)); | 425 | 4 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 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 | 405 | 70 | const ColumnPtr& col_right_ptr) const { | 406 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 70 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 70 | if (!left_is_const && !right_is_const) { | 415 | 39 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 39 | vec_res.resize(col_left->get_data().size()); | 419 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 39 | vec_res); | 423 | | | 424 | 39 | block.replace_by_position(result, std::move(col_res)); | 425 | 39 | } else if (!left_is_const && right_is_const) { | 426 | 31 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 31 | vec_res.resize(col_left->size()); | 430 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 31 | col_right->get_element(0), vec_res); | 434 | | | 435 | 31 | block.replace_by_position(result, std::move(col_res)); | 436 | 31 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 70 | return Status::OK(); | 449 | 70 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ 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 | 405 | 84 | const ColumnPtr& col_right_ptr) const { | 406 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 84 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 84 | if (!left_is_const && !right_is_const) { | 415 | 56 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 56 | vec_res.resize(col_left->get_data().size()); | 419 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 56 | vec_res); | 423 | | | 424 | 56 | block.replace_by_position(result, std::move(col_res)); | 425 | 56 | } else if (!left_is_const && right_is_const) { | 426 | 28 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 28 | vec_res.resize(col_left->size()); | 430 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 28 | col_right->get_element(0), vec_res); | 434 | | | 435 | 28 | block.replace_by_position(result, std::move(col_res)); | 436 | 28 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 84 | return Status::OK(); | 449 | 84 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.91k | const ColumnPtr& col_right_ptr) const { | 406 | 1.91k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.91k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.91k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.91k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.91k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.91k | if (!left_is_const && !right_is_const) { | 415 | 1.66k | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1.66k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1.66k | vec_res.resize(col_left->get_data().size()); | 419 | 1.66k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1.66k | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1.66k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1.66k | vec_res); | 423 | | | 424 | 1.66k | block.replace_by_position(result, std::move(col_res)); | 425 | 1.66k | } else if (!left_is_const && right_is_const) { | 426 | 245 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 245 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 245 | vec_res.resize(col_left->size()); | 430 | 245 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 245 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 245 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 245 | col_right->get_element(0), vec_res); | 434 | | | 435 | 245 | block.replace_by_position(result, std::move(col_res)); | 436 | 245 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.91k | return Status::OK(); | 449 | 1.91k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.11k | const ColumnPtr& col_right_ptr) const { | 406 | 1.11k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.11k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.11k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.11k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.11k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.11k | if (!left_is_const && !right_is_const) { | 415 | 340 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 340 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 340 | vec_res.resize(col_left->get_data().size()); | 419 | 340 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 340 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 340 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 340 | vec_res); | 423 | | | 424 | 340 | block.replace_by_position(result, std::move(col_res)); | 425 | 777 | } else if (!left_is_const && right_is_const) { | 426 | 23 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 23 | vec_res.resize(col_left->size()); | 430 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 23 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 23 | col_right->get_element(0), vec_res); | 434 | | | 435 | 23 | block.replace_by_position(result, std::move(col_res)); | 436 | 754 | } else if (left_is_const && !right_is_const) { | 437 | 754 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 754 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 754 | vec_res.resize(col_right->size()); | 441 | 754 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 754 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 754 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 754 | col_right->get_data(), vec_res); | 445 | | | 446 | 754 | block.replace_by_position(result, std::move(col_res)); | 447 | 754 | } | 448 | 1.11k | return Status::OK(); | 449 | 1.11k | } |
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 | 405 | 48 | const ColumnPtr& col_right_ptr) const { | 406 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 48 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 48 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 28 | } else if (!left_is_const && right_is_const) { | 426 | 28 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 28 | vec_res.resize(col_left->size()); | 430 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 28 | col_right->get_element(0), vec_res); | 434 | | | 435 | 28 | block.replace_by_position(result, std::move(col_res)); | 436 | 28 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 48 | return Status::OK(); | 449 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 60 | const ColumnPtr& col_right_ptr) const { | 406 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 60 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 60 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 40 | } else if (!left_is_const && right_is_const) { | 426 | 40 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 40 | vec_res.resize(col_left->size()); | 430 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 40 | col_right->get_element(0), vec_res); | 434 | | | 435 | 40 | block.replace_by_position(result, std::move(col_res)); | 436 | 40 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 60 | return Status::OK(); | 449 | 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 | 405 | 1.06k | const ColumnPtr& col_right_ptr) const { | 406 | 1.06k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.06k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.06k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.06k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.06k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.06k | if (!left_is_const && !right_is_const) { | 415 | 1.02k | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1.02k | vec_res.resize(col_left->get_data().size()); | 419 | 1.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1.02k | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1.02k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1.02k | vec_res); | 423 | | | 424 | 1.02k | block.replace_by_position(result, std::move(col_res)); | 425 | 1.02k | } else if (!left_is_const && right_is_const) { | 426 | 41 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 41 | vec_res.resize(col_left->size()); | 430 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 41 | col_right->get_element(0), vec_res); | 434 | | | 435 | 41 | block.replace_by_position(result, std::move(col_res)); | 436 | 41 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.06k | return Status::OK(); | 449 | 1.06k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 1 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1 | vec_res.resize(col_left->size()); | 430 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1 | col_right->get_element(0), vec_res); | 434 | | | 435 | 1 | block.replace_by_position(result, std::move(col_res)); | 436 | 1 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.17k | const ColumnPtr& col_right_ptr) const { | 406 | 1.17k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.17k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.17k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.17k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.17k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.17k | if (!left_is_const && !right_is_const) { | 415 | 40 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 40 | vec_res.resize(col_left->get_data().size()); | 419 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 40 | vec_res); | 423 | | | 424 | 40 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.13k | } else if (!left_is_const && right_is_const) { | 426 | 905 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 905 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 905 | vec_res.resize(col_left->size()); | 430 | 905 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 905 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 905 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 905 | col_right->get_element(0), vec_res); | 434 | | | 435 | 905 | block.replace_by_position(result, std::move(col_res)); | 436 | 905 | } else if (left_is_const && !right_is_const) { | 437 | 228 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 228 | vec_res.resize(col_right->size()); | 441 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 228 | col_right->get_data(), vec_res); | 445 | | | 446 | 228 | block.replace_by_position(result, std::move(col_res)); | 447 | 228 | } | 448 | 1.17k | return Status::OK(); | 449 | 1.17k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.79k | const ColumnPtr& col_right_ptr) const { | 406 | 1.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.79k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.79k | if (!left_is_const && !right_is_const) { | 415 | 112 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 112 | vec_res.resize(col_left->get_data().size()); | 419 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 112 | vec_res); | 423 | | | 424 | 112 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.68k | } else if (!left_is_const && right_is_const) { | 426 | 1.45k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.45k | vec_res.resize(col_left->size()); | 430 | 1.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.45k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.45k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.45k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.45k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.45k | } else if (left_is_const && !right_is_const) { | 437 | 228 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 228 | vec_res.resize(col_right->size()); | 441 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 228 | col_right->get_data(), vec_res); | 445 | | | 446 | 228 | block.replace_by_position(result, std::move(col_res)); | 447 | 228 | } | 448 | 1.79k | return Status::OK(); | 449 | 1.79k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 12.9k | const ColumnPtr& col_right_ptr) const { | 406 | 12.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 12.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 12.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 12.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 12.9k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 12.9k | if (!left_is_const && !right_is_const) { | 415 | 49 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 49 | vec_res.resize(col_left->get_data().size()); | 419 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 49 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 49 | vec_res); | 423 | | | 424 | 49 | block.replace_by_position(result, std::move(col_res)); | 425 | 12.8k | } else if (!left_is_const && right_is_const) { | 426 | 9.54k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 9.54k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 9.54k | vec_res.resize(col_left->size()); | 430 | 9.54k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 9.54k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 9.54k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 9.54k | col_right->get_element(0), vec_res); | 434 | | | 435 | 9.54k | block.replace_by_position(result, std::move(col_res)); | 436 | 9.54k | } else if (left_is_const && !right_is_const) { | 437 | 3.33k | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 3.33k | vec_res.resize(col_right->size()); | 441 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 3.33k | col_right->get_data(), vec_res); | 445 | | | 446 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 447 | 3.33k | } | 448 | 12.9k | return Status::OK(); | 449 | 12.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.71k | const ColumnPtr& col_right_ptr) const { | 406 | 1.71k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.71k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.71k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.71k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.71k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.71k | if (!left_is_const && !right_is_const) { | 415 | 64 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 64 | vec_res.resize(col_left->get_data().size()); | 419 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 64 | vec_res); | 423 | | | 424 | 64 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.65k | } else if (!left_is_const && right_is_const) { | 426 | 1.13k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.13k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.13k | vec_res.resize(col_left->size()); | 430 | 1.13k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.13k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.13k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.13k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.13k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.13k | } else if (left_is_const && !right_is_const) { | 437 | 520 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 520 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 520 | vec_res.resize(col_right->size()); | 441 | 520 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 520 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 520 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 520 | col_right->get_data(), vec_res); | 445 | | | 446 | 520 | block.replace_by_position(result, std::move(col_res)); | 447 | 520 | } | 448 | 1.71k | return Status::OK(); | 449 | 1.71k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 258 | const ColumnPtr& col_right_ptr) const { | 406 | 258 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 258 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 258 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 258 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 258 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 258 | if (!left_is_const && !right_is_const) { | 415 | 2 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 2 | vec_res.resize(col_left->get_data().size()); | 419 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 2 | vec_res); | 423 | | | 424 | 2 | block.replace_by_position(result, std::move(col_res)); | 425 | 256 | } else if (!left_is_const && right_is_const) { | 426 | 202 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 202 | vec_res.resize(col_left->size()); | 430 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 202 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 202 | col_right->get_element(0), vec_res); | 434 | | | 435 | 202 | block.replace_by_position(result, std::move(col_res)); | 436 | 202 | } else if (left_is_const && !right_is_const) { | 437 | 54 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 54 | vec_res.resize(col_right->size()); | 441 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 54 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 54 | col_right->get_data(), vec_res); | 445 | | | 446 | 54 | block.replace_by_position(result, std::move(col_res)); | 447 | 54 | } | 448 | 258 | return Status::OK(); | 449 | 258 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 3 | } else if (!left_is_const && right_is_const) { | 426 | 3 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 3 | vec_res.resize(col_left->size()); | 430 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 3 | col_right->get_element(0), vec_res); | 434 | | | 435 | 3 | block.replace_by_position(result, std::move(col_res)); | 436 | 3 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 220 | const ColumnPtr& col_right_ptr) const { | 406 | 220 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 220 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 220 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 220 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 220 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 220 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 200 | } else if (!left_is_const && right_is_const) { | 426 | 200 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 200 | vec_res.resize(col_left->size()); | 430 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 200 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 200 | col_right->get_element(0), vec_res); | 434 | | | 435 | 200 | block.replace_by_position(result, std::move(col_res)); | 436 | 200 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 220 | return Status::OK(); | 449 | 220 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 526 | const ColumnPtr& col_right_ptr) const { | 406 | 526 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 526 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 526 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 526 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 526 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 526 | if (!left_is_const && !right_is_const) { | 415 | 27 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 27 | vec_res.resize(col_left->get_data().size()); | 419 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 27 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 27 | vec_res); | 423 | | | 424 | 27 | block.replace_by_position(result, std::move(col_res)); | 425 | 499 | } else if (!left_is_const && right_is_const) { | 426 | 499 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 499 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 499 | vec_res.resize(col_left->size()); | 430 | 499 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 499 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 499 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 499 | col_right->get_element(0), vec_res); | 434 | | | 435 | 499 | block.replace_by_position(result, std::move(col_res)); | 436 | 499 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 526 | return Status::OK(); | 449 | 526 | } |
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 | 405 | 24 | const ColumnPtr& col_right_ptr) const { | 406 | 24 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 24 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 24 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 24 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 24 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 24 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 24 | } else if (!left_is_const && right_is_const) { | 426 | 24 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 24 | vec_res.resize(col_left->size()); | 430 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 24 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 24 | col_right->get_element(0), vec_res); | 434 | | | 435 | 24 | block.replace_by_position(result, std::move(col_res)); | 436 | 24 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 24 | return Status::OK(); | 449 | 24 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 604 | const ColumnPtr& col_right_ptr) const { | 406 | 604 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 604 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 604 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 604 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 604 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 604 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 603 | } else if (!left_is_const && right_is_const) { | 426 | 597 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 597 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 597 | vec_res.resize(col_left->size()); | 430 | 597 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 597 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 597 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 597 | col_right->get_element(0), vec_res); | 434 | | | 435 | 597 | block.replace_by_position(result, std::move(col_res)); | 436 | 597 | } else if (left_is_const && !right_is_const) { | 437 | 6 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 6 | vec_res.resize(col_right->size()); | 441 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 6 | col_right->get_data(), vec_res); | 445 | | | 446 | 6 | block.replace_by_position(result, std::move(col_res)); | 447 | 6 | } | 448 | 604 | return Status::OK(); | 449 | 604 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 146 | const ColumnPtr& col_right_ptr) const { | 406 | 146 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 146 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 146 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 146 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 146 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 146 | if (!left_is_const && !right_is_const) { | 415 | 7 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 7 | vec_res.resize(col_left->get_data().size()); | 419 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 7 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 7 | vec_res); | 423 | | | 424 | 7 | block.replace_by_position(result, std::move(col_res)); | 425 | 139 | } else if (!left_is_const && right_is_const) { | 426 | 139 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 139 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 139 | vec_res.resize(col_left->size()); | 430 | 139 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 139 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 139 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 139 | col_right->get_element(0), vec_res); | 434 | | | 435 | 139 | block.replace_by_position(result, std::move(col_res)); | 436 | 139 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 146 | return Status::OK(); | 449 | 146 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 67 | const ColumnPtr& col_right_ptr) const { | 406 | 67 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 67 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 67 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 67 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 67 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 67 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 67 | } else if (!left_is_const && right_is_const) { | 426 | 67 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 67 | vec_res.resize(col_left->size()); | 430 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 67 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 67 | col_right->get_element(0), vec_res); | 434 | | | 435 | 67 | block.replace_by_position(result, std::move(col_res)); | 436 | 67 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 67 | return Status::OK(); | 449 | 67 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 123 | const ColumnPtr& col_right_ptr) const { | 406 | 123 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 123 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 123 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 123 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 123 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 123 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 123 | } else if (!left_is_const && right_is_const) { | 426 | 123 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 123 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 123 | vec_res.resize(col_left->size()); | 430 | 123 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 123 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 123 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 123 | col_right->get_element(0), vec_res); | 434 | | | 435 | 123 | block.replace_by_position(result, std::move(col_res)); | 436 | 123 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 123 | return Status::OK(); | 449 | 123 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.62k | const ColumnPtr& col_right_ptr) const { | 406 | 1.62k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.62k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.62k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.62k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.62k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.62k | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.62k | } else if (!left_is_const && right_is_const) { | 426 | 1.62k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.62k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.62k | vec_res.resize(col_left->size()); | 430 | 1.62k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.62k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.62k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.62k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.62k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.62k | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.62k | return Status::OK(); | 449 | 1.62k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 185 | const ColumnPtr& col_right_ptr) const { | 406 | 185 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 185 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 185 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 185 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 185 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 185 | if (!left_is_const && !right_is_const) { | 415 | 8 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 8 | vec_res.resize(col_left->get_data().size()); | 419 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 8 | vec_res); | 423 | | | 424 | 8 | block.replace_by_position(result, std::move(col_res)); | 425 | 177 | } else if (!left_is_const && right_is_const) { | 426 | 177 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 177 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 177 | vec_res.resize(col_left->size()); | 430 | 177 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 177 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 177 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 177 | col_right->get_element(0), vec_res); | 434 | | | 435 | 177 | block.replace_by_position(result, std::move(col_res)); | 436 | 177 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 185 | return Status::OK(); | 449 | 185 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 24 | const ColumnPtr& col_right_ptr) const { | 406 | 24 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 24 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 24 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 24 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 24 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 24 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 24 | } else if (!left_is_const && right_is_const) { | 426 | 24 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 24 | vec_res.resize(col_left->size()); | 430 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 24 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 24 | col_right->get_element(0), vec_res); | 434 | | | 435 | 24 | block.replace_by_position(result, std::move(col_res)); | 436 | 24 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 24 | return Status::OK(); | 449 | 24 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 11 | const ColumnPtr& col_right_ptr) const { | 406 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 11 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 11 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 10 | } else if (!left_is_const && right_is_const) { | 426 | 10 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 10 | vec_res.resize(col_left->size()); | 430 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 10 | col_right->get_element(0), vec_res); | 434 | | | 435 | 10 | block.replace_by_position(result, std::move(col_res)); | 436 | 10 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 11 | return Status::OK(); | 449 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 24 | const ColumnPtr& col_right_ptr) const { | 406 | 24 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 24 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 24 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 24 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 24 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 24 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 20 | } else if (!left_is_const && right_is_const) { | 426 | 4 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 4 | vec_res.resize(col_left->size()); | 430 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 4 | col_right->get_element(0), vec_res); | 434 | | | 435 | 4 | block.replace_by_position(result, std::move(col_res)); | 436 | 4 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 24 | return Status::OK(); | 449 | 24 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 288 | const ColumnPtr& col_right_ptr) const { | 406 | 288 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 288 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 288 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 288 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 288 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 288 | if (!left_is_const && !right_is_const) { | 415 | 24 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 24 | vec_res.resize(col_left->get_data().size()); | 419 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 24 | vec_res); | 423 | | | 424 | 24 | block.replace_by_position(result, std::move(col_res)); | 425 | 264 | } else if (!left_is_const && right_is_const) { | 426 | 264 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 264 | vec_res.resize(col_left->size()); | 430 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 264 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 264 | col_right->get_element(0), vec_res); | 434 | | | 435 | 264 | block.replace_by_position(result, std::move(col_res)); | 436 | 264 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 288 | return Status::OK(); | 449 | 288 | } |
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 | 405 | 98 | const ColumnPtr& col_right_ptr) const { | 406 | 98 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 98 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 98 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 98 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 98 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 98 | if (!left_is_const && !right_is_const) { | 415 | 98 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 98 | vec_res.resize(col_left->get_data().size()); | 419 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 98 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 98 | vec_res); | 423 | | | 424 | 98 | block.replace_by_position(result, std::move(col_res)); | 425 | 98 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 98 | return Status::OK(); | 449 | 98 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.15k | const ColumnPtr& col_right_ptr) const { | 406 | 2.15k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.15k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.15k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.15k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.15k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.15k | if (!left_is_const && !right_is_const) { | 415 | 1.67k | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1.67k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1.67k | vec_res.resize(col_left->get_data().size()); | 419 | 1.67k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1.67k | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1.67k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1.67k | vec_res); | 423 | | | 424 | 1.67k | block.replace_by_position(result, std::move(col_res)); | 425 | 1.67k | } else if (!left_is_const && right_is_const) { | 426 | 478 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 478 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 478 | vec_res.resize(col_left->size()); | 430 | 478 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 478 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 478 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 478 | col_right->get_element(0), vec_res); | 434 | | | 435 | 478 | block.replace_by_position(result, std::move(col_res)); | 436 | 18.4E | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2.15k | return Status::OK(); | 449 | 2.15k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 339 | const ColumnPtr& col_right_ptr) const { | 406 | 339 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 339 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 339 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 339 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 339 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 339 | if (!left_is_const && !right_is_const) { | 415 | 280 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 280 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 280 | vec_res.resize(col_left->get_data().size()); | 419 | 280 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 280 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 280 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 280 | vec_res); | 423 | | | 424 | 280 | block.replace_by_position(result, std::move(col_res)); | 425 | 280 | } else if (!left_is_const && right_is_const) { | 426 | 59 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 59 | vec_res.resize(col_left->size()); | 430 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 59 | col_right->get_element(0), vec_res); | 434 | | | 435 | 59 | block.replace_by_position(result, std::move(col_res)); | 436 | 59 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 339 | return Status::OK(); | 449 | 339 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2 | const ColumnPtr& col_right_ptr) const { | 406 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 1 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1 | vec_res.resize(col_left->size()); | 430 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1 | col_right->get_element(0), vec_res); | 434 | | | 435 | 1 | block.replace_by_position(result, std::move(col_res)); | 436 | 1 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2 | return Status::OK(); | 449 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.16k | const ColumnPtr& col_right_ptr) const { | 406 | 2.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.16k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.16k | if (!left_is_const && !right_is_const) { | 415 | 163 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 163 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 163 | vec_res.resize(col_left->get_data().size()); | 419 | 163 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 163 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 163 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 163 | vec_res); | 423 | | | 424 | 163 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.99k | } else if (!left_is_const && right_is_const) { | 426 | 1.75k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.75k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.75k | vec_res.resize(col_left->size()); | 430 | 1.75k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.75k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.75k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.75k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.75k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.75k | } else if (left_is_const && !right_is_const) { | 437 | 240 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 240 | vec_res.resize(col_right->size()); | 441 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 240 | col_right->get_data(), vec_res); | 445 | | | 446 | 240 | block.replace_by_position(result, std::move(col_res)); | 447 | 240 | } | 448 | 2.16k | return Status::OK(); | 449 | 2.16k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 146 | const ColumnPtr& col_right_ptr) const { | 406 | 146 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 146 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 146 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 146 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 146 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 146 | if (!left_is_const && !right_is_const) { | 415 | 132 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 132 | vec_res.resize(col_left->get_data().size()); | 419 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 132 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 132 | vec_res); | 423 | | | 424 | 132 | block.replace_by_position(result, std::move(col_res)); | 425 | 132 | } else if (!left_is_const && right_is_const) { | 426 | 14 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 14 | vec_res.resize(col_left->size()); | 430 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 14 | col_right->get_element(0), vec_res); | 434 | | | 435 | 14 | block.replace_by_position(result, std::move(col_res)); | 436 | 14 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 146 | return Status::OK(); | 449 | 146 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.15k | const ColumnPtr& col_right_ptr) const { | 406 | 1.15k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.15k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.15k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.15k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.15k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.15k | if (!left_is_const && !right_is_const) { | 415 | 162 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 162 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 162 | vec_res.resize(col_left->get_data().size()); | 419 | 162 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 162 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 162 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 162 | vec_res); | 423 | | | 424 | 162 | block.replace_by_position(result, std::move(col_res)); | 425 | 995 | } else if (!left_is_const && right_is_const) { | 426 | 873 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 873 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 873 | vec_res.resize(col_left->size()); | 430 | 873 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 873 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 873 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 873 | col_right->get_element(0), vec_res); | 434 | | | 435 | 873 | block.replace_by_position(result, std::move(col_res)); | 436 | 873 | } else if (left_is_const && !right_is_const) { | 437 | 121 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 121 | vec_res.resize(col_right->size()); | 441 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 121 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 121 | col_right->get_data(), vec_res); | 445 | | | 446 | 121 | block.replace_by_position(result, std::move(col_res)); | 447 | 121 | } | 448 | 1.15k | return Status::OK(); | 449 | 1.15k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 809 | const ColumnPtr& col_right_ptr) const { | 406 | 809 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 809 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 809 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 809 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 809 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 809 | if (!left_is_const && !right_is_const) { | 415 | 212 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 212 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 212 | vec_res.resize(col_left->get_data().size()); | 419 | 212 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 212 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 212 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 212 | vec_res); | 423 | | | 424 | 212 | block.replace_by_position(result, std::move(col_res)); | 425 | 597 | } else if (!left_is_const && right_is_const) { | 426 | 518 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 518 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 518 | vec_res.resize(col_left->size()); | 430 | 518 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 518 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 518 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 518 | col_right->get_element(0), vec_res); | 434 | | | 435 | 518 | block.replace_by_position(result, std::move(col_res)); | 436 | 518 | } else if (left_is_const && !right_is_const) { | 437 | 79 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 79 | vec_res.resize(col_right->size()); | 441 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 79 | col_right->get_data(), vec_res); | 445 | | | 446 | 79 | block.replace_by_position(result, std::move(col_res)); | 447 | 79 | } | 448 | 809 | return Status::OK(); | 449 | 809 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 301 | const ColumnPtr& col_right_ptr) const { | 406 | 301 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 301 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 301 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 301 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 301 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 301 | if (!left_is_const && !right_is_const) { | 415 | 153 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 153 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 153 | vec_res.resize(col_left->get_data().size()); | 419 | 153 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 153 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 153 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 153 | vec_res); | 423 | | | 424 | 153 | block.replace_by_position(result, std::move(col_res)); | 425 | 153 | } else if (!left_is_const && right_is_const) { | 426 | 60 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 60 | vec_res.resize(col_left->size()); | 430 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 60 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 60 | col_right->get_element(0), vec_res); | 434 | | | 435 | 60 | block.replace_by_position(result, std::move(col_res)); | 436 | 88 | } else if (left_is_const && !right_is_const) { | 437 | 88 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 88 | vec_res.resize(col_right->size()); | 441 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 88 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 88 | col_right->get_data(), vec_res); | 445 | | | 446 | 88 | block.replace_by_position(result, std::move(col_res)); | 447 | 88 | } | 448 | 301 | return Status::OK(); | 449 | 301 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 18 | const ColumnPtr& col_right_ptr) const { | 406 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 18 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 18 | if (!left_is_const && !right_is_const) { | 415 | 16 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 16 | vec_res.resize(col_left->get_data().size()); | 419 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 16 | vec_res); | 423 | | | 424 | 16 | block.replace_by_position(result, std::move(col_res)); | 425 | 16 | } else if (!left_is_const && right_is_const) { | 426 | 2 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 2 | vec_res.resize(col_left->size()); | 430 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 2 | col_right->get_element(0), vec_res); | 434 | | | 435 | 2 | block.replace_by_position(result, std::move(col_res)); | 436 | 2 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 18 | return Status::OK(); | 449 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 16 | const ColumnPtr& col_right_ptr) const { | 406 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 16 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 16 | if (!left_is_const && !right_is_const) { | 415 | 16 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 16 | vec_res.resize(col_left->get_data().size()); | 419 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 16 | vec_res); | 423 | | | 424 | 16 | block.replace_by_position(result, std::move(col_res)); | 425 | 16 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 16 | return Status::OK(); | 449 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 158 | const ColumnPtr& col_right_ptr) const { | 406 | 158 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 158 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 158 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 158 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 158 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 158 | if (!left_is_const && !right_is_const) { | 415 | 158 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 158 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 158 | vec_res.resize(col_left->get_data().size()); | 419 | 158 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 158 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 158 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 158 | vec_res); | 423 | | | 424 | 158 | block.replace_by_position(result, std::move(col_res)); | 425 | 158 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 158 | return Status::OK(); | 449 | 158 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 413 | const ColumnPtr& col_right_ptr) const { | 406 | 413 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 413 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 413 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 413 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 413 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 413 | if (!left_is_const && !right_is_const) { | 415 | 149 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 149 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 149 | vec_res.resize(col_left->get_data().size()); | 419 | 149 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 149 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 149 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 149 | vec_res); | 423 | | | 424 | 149 | block.replace_by_position(result, std::move(col_res)); | 425 | 265 | } else if (!left_is_const && right_is_const) { | 426 | 265 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 265 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 265 | vec_res.resize(col_left->size()); | 430 | 265 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 265 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 265 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 265 | col_right->get_element(0), vec_res); | 434 | | | 435 | 265 | block.replace_by_position(result, std::move(col_res)); | 436 | 18.4E | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 413 | return Status::OK(); | 449 | 413 | } |
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 | 405 | 14 | const ColumnPtr& col_right_ptr) const { | 406 | 14 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 14 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 14 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 14 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 14 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 14 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 14 | } else if (!left_is_const && right_is_const) { | 426 | 14 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 14 | vec_res.resize(col_left->size()); | 430 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 14 | col_right->get_element(0), vec_res); | 434 | | | 435 | 14 | block.replace_by_position(result, std::move(col_res)); | 436 | 14 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 14 | return Status::OK(); | 449 | 14 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 552 | const ColumnPtr& col_right_ptr) const { | 406 | 552 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 552 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 552 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 552 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 552 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 552 | if (!left_is_const && !right_is_const) { | 415 | 400 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 400 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 400 | vec_res.resize(col_left->get_data().size()); | 419 | 400 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 400 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 400 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 400 | vec_res); | 423 | | | 424 | 400 | block.replace_by_position(result, std::move(col_res)); | 425 | 400 | } else if (!left_is_const && right_is_const) { | 426 | 149 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 149 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 149 | vec_res.resize(col_left->size()); | 430 | 149 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 149 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 149 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 149 | col_right->get_element(0), vec_res); | 434 | | | 435 | 149 | block.replace_by_position(result, std::move(col_res)); | 436 | 149 | } else if (left_is_const && !right_is_const) { | 437 | 5 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 5 | vec_res.resize(col_right->size()); | 441 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 5 | col_right->get_data(), vec_res); | 445 | | | 446 | 5 | block.replace_by_position(result, std::move(col_res)); | 447 | 5 | } | 448 | 552 | return Status::OK(); | 449 | 552 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 47 | const ColumnPtr& col_right_ptr) const { | 406 | 47 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 47 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 47 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 47 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 47 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 47 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 47 | } else if (!left_is_const && right_is_const) { | 426 | 47 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 47 | vec_res.resize(col_left->size()); | 430 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 47 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 47 | col_right->get_element(0), vec_res); | 434 | | | 435 | 47 | block.replace_by_position(result, std::move(col_res)); | 436 | 47 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 47 | return Status::OK(); | 449 | 47 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 109 | const ColumnPtr& col_right_ptr) const { | 406 | 109 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 109 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 109 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 109 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 109 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 109 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 108 | } else if (!left_is_const && right_is_const) { | 426 | 108 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 108 | vec_res.resize(col_left->size()); | 430 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 108 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 108 | col_right->get_element(0), vec_res); | 434 | | | 435 | 108 | block.replace_by_position(result, std::move(col_res)); | 436 | 108 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 109 | return Status::OK(); | 449 | 109 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 170 | const ColumnPtr& col_right_ptr) const { | 406 | 170 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 170 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 170 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 170 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 170 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 170 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 170 | } else if (!left_is_const && right_is_const) { | 426 | 170 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 170 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 170 | vec_res.resize(col_left->size()); | 430 | 170 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 170 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 170 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 170 | col_right->get_element(0), vec_res); | 434 | | | 435 | 170 | block.replace_by_position(result, std::move(col_res)); | 436 | 170 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 170 | return Status::OK(); | 449 | 170 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 7.37k | const ColumnPtr& col_right_ptr) const { | 406 | 7.37k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 7.37k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 7.37k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 7.37k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 7.37k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 7.37k | if (!left_is_const && !right_is_const) { | 415 | 23 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 23 | vec_res.resize(col_left->get_data().size()); | 419 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 23 | vec_res); | 423 | | | 424 | 23 | block.replace_by_position(result, std::move(col_res)); | 425 | 7.35k | } else if (!left_is_const && right_is_const) { | 426 | 6.80k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 6.80k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 6.80k | vec_res.resize(col_left->size()); | 430 | 6.80k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 6.80k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 6.80k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 6.80k | col_right->get_element(0), vec_res); | 434 | | | 435 | 6.80k | block.replace_by_position(result, std::move(col_res)); | 436 | 6.80k | } else if (left_is_const && !right_is_const) { | 437 | 549 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 549 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 549 | vec_res.resize(col_right->size()); | 441 | 549 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 549 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 549 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 549 | col_right->get_data(), vec_res); | 445 | | | 446 | 549 | block.replace_by_position(result, std::move(col_res)); | 447 | 549 | } | 448 | 7.37k | return Status::OK(); | 449 | 7.37k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 349 | const ColumnPtr& col_right_ptr) const { | 406 | 349 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 349 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 349 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 349 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 349 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 349 | if (!left_is_const && !right_is_const) { | 415 | 31 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 31 | vec_res.resize(col_left->get_data().size()); | 419 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 31 | vec_res); | 423 | | | 424 | 31 | block.replace_by_position(result, std::move(col_res)); | 425 | 318 | } else if (!left_is_const && right_is_const) { | 426 | 270 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 270 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 270 | vec_res.resize(col_left->size()); | 430 | 270 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 270 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 270 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 270 | col_right->get_element(0), vec_res); | 434 | | | 435 | 270 | block.replace_by_position(result, std::move(col_res)); | 436 | 270 | } else if (left_is_const && !right_is_const) { | 437 | 48 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 48 | vec_res.resize(col_right->size()); | 441 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 48 | col_right->get_data(), vec_res); | 445 | | | 446 | 48 | block.replace_by_position(result, std::move(col_res)); | 447 | 48 | } | 448 | 349 | return Status::OK(); | 449 | 349 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 26 | const ColumnPtr& col_right_ptr) const { | 406 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 26 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 26 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 26 | } else if (!left_is_const && right_is_const) { | 426 | 26 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 26 | vec_res.resize(col_left->size()); | 430 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 26 | col_right->get_element(0), vec_res); | 434 | | | 435 | 26 | block.replace_by_position(result, std::move(col_res)); | 436 | 26 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 26 | return Status::OK(); | 449 | 26 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 10 | const ColumnPtr& col_right_ptr) const { | 406 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 10 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 10 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 10 | } else if (!left_is_const && right_is_const) { | 426 | 10 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 10 | vec_res.resize(col_left->size()); | 430 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 10 | col_right->get_element(0), vec_res); | 434 | | | 435 | 10 | block.replace_by_position(result, std::move(col_res)); | 436 | 10 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 10 | return Status::OK(); | 449 | 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 | 405 | 20 | const ColumnPtr& col_right_ptr) const { | 406 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 20 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 20 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 20 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 20 | return Status::OK(); | 449 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 199 | const ColumnPtr& col_right_ptr) const { | 406 | 199 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 199 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 199 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 199 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 199 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 199 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 179 | } else if (!left_is_const && right_is_const) { | 426 | 178 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 178 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 178 | vec_res.resize(col_left->size()); | 430 | 178 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 178 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 178 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 178 | col_right->get_element(0), vec_res); | 434 | | | 435 | 178 | block.replace_by_position(result, std::move(col_res)); | 436 | 178 | } else if (left_is_const && !right_is_const) { | 437 | 1 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 1 | vec_res.resize(col_right->size()); | 441 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 1 | col_right->get_data(), vec_res); | 445 | | | 446 | 1 | block.replace_by_position(result, std::move(col_res)); | 447 | 1 | } | 448 | 199 | return Status::OK(); | 449 | 199 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
450 | | |
451 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
452 | 3.08k | const ColumnWithTypeAndName& col_right) const { |
453 | 3.08k | auto call = [&](const auto& type) -> bool { |
454 | 3.08k | using DispatchType = std::decay_t<decltype(type)>; |
455 | 3.08k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
456 | 3.08k | block, result, col_left, col_right); |
457 | 3.08k | return true; |
458 | 3.08k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 149 | auto call = [&](const auto& type) -> bool { | 454 | 149 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 149 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 149 | block, result, col_left, col_right); | 457 | 149 | return true; | 458 | 149 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 162 | auto call = [&](const auto& type) -> bool { | 454 | 162 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 162 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 162 | block, result, col_left, col_right); | 457 | 162 | return true; | 458 | 162 | }; |
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 | 453 | 803 | auto call = [&](const auto& type) -> bool { | 454 | 803 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 803 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 803 | block, result, col_left, col_right); | 457 | 803 | return true; | 458 | 803 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 34 | auto call = [&](const auto& type) -> bool { | 454 | 34 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 34 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 34 | block, result, col_left, col_right); | 457 | 34 | return true; | 458 | 34 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 68 | auto call = [&](const auto& type) -> bool { | 454 | 68 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 68 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 68 | block, result, col_left, col_right); | 457 | 68 | return true; | 458 | 68 | }; |
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 | 453 | 28 | auto call = [&](const auto& type) -> bool { | 454 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 28 | block, result, col_left, col_right); | 457 | 28 | return true; | 458 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 30 | auto call = [&](const auto& type) -> bool { | 454 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 30 | block, result, col_left, col_right); | 457 | 30 | return true; | 458 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 8 | auto call = [&](const auto& type) -> bool { | 454 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 8 | block, result, col_left, col_right); | 457 | 8 | return true; | 458 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 66 | auto call = [&](const auto& type) -> bool { | 454 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 66 | block, result, col_left, col_right); | 457 | 66 | return true; | 458 | 66 | }; |
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 | 453 | 668 | auto call = [&](const auto& type) -> bool { | 454 | 668 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 668 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 668 | block, result, col_left, col_right); | 457 | 668 | return true; | 458 | 668 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 2 | auto call = [&](const auto& type) -> bool { | 454 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 2 | block, result, col_left, col_right); | 457 | 2 | return true; | 458 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 1 | auto call = [&](const auto& type) -> bool { | 454 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1 | block, result, col_left, col_right); | 457 | 1 | return true; | 458 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 53 | auto call = [&](const auto& type) -> bool { | 454 | 53 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 53 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 53 | block, result, col_left, col_right); | 457 | 53 | return true; | 458 | 53 | }; |
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 | 453 | 62 | auto call = [&](const auto& type) -> bool { | 454 | 62 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 62 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 62 | block, result, col_left, col_right); | 457 | 62 | return true; | 458 | 62 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 27 | auto call = [&](const auto& type) -> bool { | 454 | 27 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 27 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 27 | block, result, col_left, col_right); | 457 | 27 | return true; | 458 | 27 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 206 | auto call = [&](const auto& type) -> bool { | 454 | 206 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 206 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 206 | block, result, col_left, col_right); | 457 | 206 | return true; | 458 | 206 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 213 | auto call = [&](const auto& type) -> bool { | 454 | 213 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 213 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 213 | block, result, col_left, col_right); | 457 | 213 | return true; | 458 | 213 | }; |
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 | 453 | 324 | auto call = [&](const auto& type) -> bool { | 454 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 324 | block, result, col_left, col_right); | 457 | 324 | return true; | 458 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 1 | auto call = [&](const auto& type) -> bool { | 454 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1 | block, result, col_left, col_right); | 457 | 1 | return true; | 458 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 4 | auto call = [&](const auto& type) -> bool { | 454 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 4 | block, result, col_left, col_right); | 457 | 4 | return true; | 458 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 79 | auto call = [&](const auto& type) -> bool { | 454 | 79 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 79 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 79 | block, result, col_left, col_right); | 457 | 79 | return true; | 458 | 79 | }; |
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 | 453 | 78 | auto call = [&](const auto& type) -> bool { | 454 | 78 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 78 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 78 | block, result, col_left, col_right); | 457 | 78 | return true; | 458 | 78 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 22 | auto call = [&](const auto& type) -> bool { | 454 | 22 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 22 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 22 | block, result, col_left, col_right); | 457 | 22 | return true; | 458 | 22 | }; |
|
459 | | |
460 | 3.08k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
461 | 0 | return Status::RuntimeError( |
462 | 0 | "type of left column {} is not equal to type of right column {}", |
463 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
464 | 0 | } |
465 | | |
466 | 3.08k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
468 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
469 | 0 | } |
470 | 3.08k | return Status::OK(); |
471 | 3.08k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 1.14k | const ColumnWithTypeAndName& col_right) const { | 453 | 1.14k | auto call = [&](const auto& type) -> bool { | 454 | 1.14k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1.14k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1.14k | block, result, col_left, col_right); | 457 | 1.14k | return true; | 458 | 1.14k | }; | 459 | | | 460 | 1.14k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 1.14k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 1.14k | return Status::OK(); | 471 | 1.14k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 126 | const ColumnWithTypeAndName& col_right) const { | 453 | 126 | auto call = [&](const auto& type) -> bool { | 454 | 126 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 126 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 126 | block, result, col_left, col_right); | 457 | 126 | return true; | 458 | 126 | }; | 459 | | | 460 | 126 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 126 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 126 | return Status::OK(); | 471 | 126 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 744 | const ColumnWithTypeAndName& col_right) const { | 453 | 744 | auto call = [&](const auto& type) -> bool { | 454 | 744 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 744 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 744 | block, result, col_left, col_right); | 457 | 744 | return true; | 458 | 744 | }; | 459 | | | 460 | 744 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 744 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 744 | return Status::OK(); | 471 | 744 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 143 | const ColumnWithTypeAndName& col_right) const { | 453 | 143 | auto call = [&](const auto& type) -> bool { | 454 | 143 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 143 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 143 | block, result, col_left, col_right); | 457 | 143 | return true; | 458 | 143 | }; | 459 | | | 460 | 143 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 143 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 143 | return Status::OK(); | 471 | 143 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 744 | const ColumnWithTypeAndName& col_right) const { | 453 | 744 | auto call = [&](const auto& type) -> bool { | 454 | 744 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 744 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 744 | block, result, col_left, col_right); | 457 | 744 | return true; | 458 | 744 | }; | 459 | | | 460 | 744 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 744 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 744 | return Status::OK(); | 471 | 744 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 183 | const ColumnWithTypeAndName& col_right) const { | 453 | 183 | auto call = [&](const auto& type) -> bool { | 454 | 183 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 183 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 183 | block, result, col_left, col_right); | 457 | 183 | return true; | 458 | 183 | }; | 459 | | | 460 | 183 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 183 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 183 | return Status::OK(); | 471 | 183 | } |
|
472 | | |
473 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
474 | 11.8k | const IColumn* c1) const { |
475 | 11.8k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
476 | 11.8k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
477 | 11.8k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
478 | 11.8k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
479 | 11.8k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
481 | 0 | c0->get_name(), c1->get_name(), name); |
482 | 0 | } |
483 | 11.8k | DCHECK(!(c0_const && c1_const)); |
484 | 11.8k | const ColumnString::Chars* c0_const_chars = nullptr; |
485 | 11.8k | const ColumnString::Chars* c1_const_chars = nullptr; |
486 | 11.8k | ColumnString::Offset c0_const_size = 0; |
487 | 11.8k | ColumnString::Offset c1_const_size = 0; |
488 | | |
489 | 11.8k | if (c0_const) { |
490 | 4 | const ColumnString* c0_const_string = |
491 | 4 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
492 | | |
493 | 4 | if (c0_const_string) { |
494 | 4 | c0_const_chars = &c0_const_string->get_chars(); |
495 | 4 | c0_const_size = c0_const_string->get_offsets()[0]; |
496 | 4 | } else { |
497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
498 | 0 | c0->get_name(), name); |
499 | 0 | } |
500 | 4 | } |
501 | | |
502 | 11.8k | if (c1_const) { |
503 | 10.9k | const ColumnString* c1_const_string = |
504 | 10.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
505 | | |
506 | 10.9k | if (c1_const_string) { |
507 | 10.9k | c1_const_chars = &c1_const_string->get_chars(); |
508 | 10.9k | c1_const_size = c1_const_string->get_offsets()[0]; |
509 | 10.9k | } else { |
510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
511 | 0 | c1->get_name(), name); |
512 | 0 | } |
513 | 10.9k | } |
514 | | |
515 | 11.8k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
516 | | |
517 | 11.8k | auto c_res = ColumnUInt8::create(); |
518 | 11.8k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
519 | 11.8k | vec_res.resize(c0->size()); |
520 | | |
521 | 11.8k | if (c0_string && c1_string) { |
522 | 926 | StringImpl::string_vector_string_vector( |
523 | 926 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
524 | 926 | c1_string->get_offsets(), vec_res); |
525 | 10.9k | } else if (c0_string && c1_const) { |
526 | 10.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
527 | 10.9k | *c1_const_chars, c1_const_size, vec_res); |
528 | 10.9k | } else if (c0_const && c1_string) { |
529 | 4 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
530 | 4 | c1_string->get_chars(), c1_string->get_offsets(), |
531 | 4 | vec_res); |
532 | 4 | } else { |
533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
534 | 0 | c0->get_name(), c1->get_name(), name); |
535 | 0 | } |
536 | 11.8k | block.replace_by_position(result, std::move(c_res)); |
537 | 11.8k | return Status::OK(); |
538 | 11.8k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 10.5k | const IColumn* c1) const { | 475 | 10.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 10.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 10.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 10.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 10.5k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 10.5k | DCHECK(!(c0_const && c1_const)); | 484 | 10.5k | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 10.5k | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 10.5k | ColumnString::Offset c0_const_size = 0; | 487 | 10.5k | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 10.5k | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 10.5k | if (c1_const) { | 503 | 10.1k | const ColumnString* c1_const_string = | 504 | 10.1k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 10.1k | if (c1_const_string) { | 507 | 10.1k | c1_const_chars = &c1_const_string->get_chars(); | 508 | 10.1k | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 10.1k | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 10.1k | } | 514 | | | 515 | 10.5k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 10.5k | auto c_res = ColumnUInt8::create(); | 518 | 10.5k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 10.5k | vec_res.resize(c0->size()); | 520 | | | 521 | 10.5k | if (c0_string && c1_string) { | 522 | 444 | StringImpl::string_vector_string_vector( | 523 | 444 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 444 | c1_string->get_offsets(), vec_res); | 525 | 10.1k | } else if (c0_string && c1_const) { | 526 | 10.1k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 10.1k | *c1_const_chars, c1_const_size, vec_res); | 528 | 10.1k | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 10.5k | block.replace_by_position(result, std::move(c_res)); | 537 | 10.5k | return Status::OK(); | 538 | 10.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 95 | const IColumn* c1) const { | 475 | 95 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 95 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 95 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 95 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 95 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 95 | DCHECK(!(c0_const && c1_const)); | 484 | 95 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 95 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 95 | ColumnString::Offset c0_const_size = 0; | 487 | 95 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 95 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 95 | if (c1_const) { | 503 | 94 | const ColumnString* c1_const_string = | 504 | 94 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 94 | if (c1_const_string) { | 507 | 94 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 94 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 94 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 94 | } | 514 | | | 515 | 95 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 95 | auto c_res = ColumnUInt8::create(); | 518 | 95 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 95 | vec_res.resize(c0->size()); | 520 | | | 521 | 95 | if (c0_string && c1_string) { | 522 | 1 | StringImpl::string_vector_string_vector( | 523 | 1 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 1 | c1_string->get_offsets(), vec_res); | 525 | 94 | } else if (c0_string && c1_const) { | 526 | 94 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 94 | *c1_const_chars, c1_const_size, vec_res); | 528 | 94 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 95 | block.replace_by_position(result, std::move(c_res)); | 537 | 95 | return Status::OK(); | 538 | 95 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 182 | const IColumn* c1) const { | 475 | 182 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 182 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 182 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 182 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 182 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 182 | DCHECK(!(c0_const && c1_const)); | 484 | 182 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 182 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 182 | ColumnString::Offset c0_const_size = 0; | 487 | 182 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 182 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 182 | if (c1_const) { | 503 | 180 | const ColumnString* c1_const_string = | 504 | 180 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 180 | if (c1_const_string) { | 507 | 180 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 180 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 180 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 180 | } | 514 | | | 515 | 182 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 182 | auto c_res = ColumnUInt8::create(); | 518 | 182 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 182 | vec_res.resize(c0->size()); | 520 | | | 521 | 182 | if (c0_string && c1_string) { | 522 | 2 | StringImpl::string_vector_string_vector( | 523 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 2 | c1_string->get_offsets(), vec_res); | 525 | 180 | } else if (c0_string && c1_const) { | 526 | 180 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 180 | *c1_const_chars, c1_const_size, vec_res); | 528 | 180 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 182 | block.replace_by_position(result, std::move(c_res)); | 537 | 182 | return Status::OK(); | 538 | 182 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 288 | const IColumn* c1) const { | 475 | 288 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 288 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 288 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 288 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 288 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 288 | DCHECK(!(c0_const && c1_const)); | 484 | 288 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 288 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 288 | ColumnString::Offset c0_const_size = 0; | 487 | 288 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 288 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 288 | if (c1_const) { | 503 | 252 | const ColumnString* c1_const_string = | 504 | 252 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 252 | if (c1_const_string) { | 507 | 252 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 252 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 252 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 252 | } | 514 | | | 515 | 288 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 288 | auto c_res = ColumnUInt8::create(); | 518 | 288 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 288 | vec_res.resize(c0->size()); | 520 | | | 521 | 288 | if (c0_string && c1_string) { | 522 | 36 | StringImpl::string_vector_string_vector( | 523 | 36 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 36 | c1_string->get_offsets(), vec_res); | 525 | 252 | } else if (c0_string && c1_const) { | 526 | 252 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 252 | *c1_const_chars, c1_const_size, vec_res); | 528 | 252 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 288 | block.replace_by_position(result, std::move(c_res)); | 537 | 288 | return Status::OK(); | 538 | 288 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 556 | const IColumn* c1) const { | 475 | 556 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 556 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 556 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 556 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 556 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 556 | DCHECK(!(c0_const && c1_const)); | 484 | 556 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 556 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 556 | ColumnString::Offset c0_const_size = 0; | 487 | 556 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 556 | if (c0_const) { | 490 | 4 | const ColumnString* c0_const_string = | 491 | 4 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | | | 493 | 4 | if (c0_const_string) { | 494 | 4 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 4 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 4 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 4 | } | 501 | | | 502 | 556 | if (c1_const) { | 503 | 109 | const ColumnString* c1_const_string = | 504 | 109 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 109 | if (c1_const_string) { | 507 | 109 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 109 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 109 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 109 | } | 514 | | | 515 | 556 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 556 | auto c_res = ColumnUInt8::create(); | 518 | 556 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 556 | vec_res.resize(c0->size()); | 520 | | | 521 | 556 | if (c0_string && c1_string) { | 522 | 443 | StringImpl::string_vector_string_vector( | 523 | 443 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 443 | c1_string->get_offsets(), vec_res); | 525 | 443 | } else if (c0_string && c1_const) { | 526 | 109 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 109 | *c1_const_chars, c1_const_size, vec_res); | 528 | 109 | } else if (c0_const && c1_string) { | 529 | 4 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 4 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 4 | vec_res); | 532 | 4 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 556 | block.replace_by_position(result, std::move(c_res)); | 537 | 556 | return Status::OK(); | 538 | 556 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 192 | const IColumn* c1) const { | 475 | 192 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 192 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 192 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 192 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 192 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 192 | DCHECK(!(c0_const && c1_const)); | 484 | 192 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 192 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 192 | ColumnString::Offset c0_const_size = 0; | 487 | 192 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 192 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 192 | if (c1_const) { | 503 | 192 | const ColumnString* c1_const_string = | 504 | 192 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 192 | if (c1_const_string) { | 507 | 192 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 192 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 192 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 192 | } | 514 | | | 515 | 192 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 192 | auto c_res = ColumnUInt8::create(); | 518 | 192 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 192 | vec_res.resize(c0->size()); | 520 | | | 521 | 192 | if (c0_string && c1_string) { | 522 | 0 | StringImpl::string_vector_string_vector( | 523 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 0 | c1_string->get_offsets(), vec_res); | 525 | 192 | } else if (c0_string && c1_const) { | 526 | 192 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 192 | *c1_const_chars, c1_const_size, vec_res); | 528 | 192 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 192 | block.replace_by_position(result, std::move(c_res)); | 537 | 192 | return Status::OK(); | 538 | 192 | } |
|
539 | | |
540 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
541 | 133 | const IColumn* c1) const { |
542 | 133 | bool c0_const = is_column_const(*c0); |
543 | 133 | bool c1_const = is_column_const(*c1); |
544 | | |
545 | 133 | DCHECK(!(c0_const && c1_const)); |
546 | | |
547 | 133 | auto c_res = ColumnUInt8::create(); |
548 | 133 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
549 | 133 | vec_res.resize(c0->size()); |
550 | | |
551 | 133 | if (c0_const) { |
552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
553 | 133 | } else if (c1_const) { |
554 | 124 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
555 | 124 | } else { |
556 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
557 | 9 | } |
558 | | |
559 | 133 | block.replace_by_position(result, std::move(c_res)); |
560 | 133 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 17 | const IColumn* c1) const { | 542 | 17 | bool c0_const = is_column_const(*c0); | 543 | 17 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 17 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 17 | auto c_res = ColumnUInt8::create(); | 548 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 17 | vec_res.resize(c0->size()); | 550 | | | 551 | 17 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 17 | } else if (c1_const) { | 554 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 13 | } else { | 556 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 4 | } | 558 | | | 559 | 17 | block.replace_by_position(result, std::move(c_res)); | 560 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 8 | const IColumn* c1) const { | 542 | 8 | bool c0_const = is_column_const(*c0); | 543 | 8 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 8 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 8 | auto c_res = ColumnUInt8::create(); | 548 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 8 | vec_res.resize(c0->size()); | 550 | | | 551 | 8 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 8 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 0 | } | 558 | | | 559 | 8 | block.replace_by_position(result, std::move(c_res)); | 560 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 9 | const IColumn* c1) const { | 542 | 9 | bool c0_const = is_column_const(*c0); | 543 | 9 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 9 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 9 | auto c_res = ColumnUInt8::create(); | 548 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 9 | vec_res.resize(c0->size()); | 550 | | | 551 | 9 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 9 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 1 | } | 558 | | | 559 | 9 | block.replace_by_position(result, std::move(c_res)); | 560 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 43 | const IColumn* c1) const { | 542 | 43 | bool c0_const = is_column_const(*c0); | 543 | 43 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 43 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 43 | auto c_res = ColumnUInt8::create(); | 548 | 43 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 43 | vec_res.resize(c0->size()); | 550 | | | 551 | 43 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 43 | } else if (c1_const) { | 554 | 42 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 42 | } else { | 556 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 1 | } | 558 | | | 559 | 43 | block.replace_by_position(result, std::move(c_res)); | 560 | 43 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 11 | const IColumn* c1) const { | 542 | 11 | bool c0_const = is_column_const(*c0); | 543 | 11 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 11 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 11 | auto c_res = ColumnUInt8::create(); | 548 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 11 | vec_res.resize(c0->size()); | 550 | | | 551 | 11 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 11 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 3 | } | 558 | | | 559 | 11 | block.replace_by_position(result, std::move(c_res)); | 560 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 45 | const IColumn* c1) const { | 542 | 45 | bool c0_const = is_column_const(*c0); | 543 | 45 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 45 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 45 | auto c_res = ColumnUInt8::create(); | 548 | 45 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 45 | vec_res.resize(c0->size()); | 550 | | | 551 | 45 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 45 | } else if (c1_const) { | 554 | 45 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 45 | } else { | 556 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 0 | } | 558 | | | 559 | 45 | block.replace_by_position(result, std::move(c_res)); | 560 | 45 | } |
|
561 | | |
562 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
563 | 133 | const ColumnWithTypeAndName& c1) const { |
564 | 133 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
565 | 133 | return Status::OK(); |
566 | 133 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 17 | const ColumnWithTypeAndName& c1) const { | 564 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 17 | return Status::OK(); | 566 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 8 | const ColumnWithTypeAndName& c1) const { | 564 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 8 | return Status::OK(); | 566 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 9 | const ColumnWithTypeAndName& c1) const { | 564 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 9 | return Status::OK(); | 566 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 43 | const ColumnWithTypeAndName& c1) const { | 564 | 43 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 43 | return Status::OK(); | 566 | 43 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 11 | const ColumnWithTypeAndName& c1) const { | 564 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 11 | return Status::OK(); | 566 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 45 | const ColumnWithTypeAndName& c1) const { | 564 | 45 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 45 | return Status::OK(); | 566 | 45 | } |
|
567 | | |
568 | | public: |
569 | 221 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 80 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 1 | String get_name() const override { return name; } |
|
570 | | |
571 | 266k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 241k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 1.14k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 571 | 4.87k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 7.30k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 571 | 2.96k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 8.97k | size_t get_number_of_arguments() const override { return 2; } |
|
572 | | |
573 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
574 | 2.48k | const VExprSPtrs& arguments) const override { |
575 | 2.48k | auto op = comparison_zonemap_detail::op_from_name(name); |
576 | 2.48k | DORIS_CHECK(op.has_value()); |
577 | 2.48k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
578 | 2.48k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 1.44k | const VExprSPtrs& arguments) const override { | 575 | 1.44k | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 1.44k | DORIS_CHECK(op.has_value()); | 577 | 1.44k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 1.44k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 143 | const VExprSPtrs& arguments) const override { | 575 | 143 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 143 | DORIS_CHECK(op.has_value()); | 577 | 143 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 143 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 200 | const VExprSPtrs& arguments) const override { | 575 | 200 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 200 | DORIS_CHECK(op.has_value()); | 577 | 200 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 200 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 242 | const VExprSPtrs& arguments) const override { | 575 | 242 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 242 | DORIS_CHECK(op.has_value()); | 577 | 242 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 242 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 265 | const VExprSPtrs& arguments) const override { | 575 | 265 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 265 | DORIS_CHECK(op.has_value()); | 577 | 265 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 265 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 189 | const VExprSPtrs& arguments) const override { | 575 | 189 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 189 | DORIS_CHECK(op.has_value()); | 577 | 189 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 189 | } |
|
579 | | |
580 | 32.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
581 | 32.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
582 | 32.1k | comparison_zonemap_detail::can_evaluate(arguments); |
583 | 32.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 12.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 12.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 12.8k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 12.8k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 1.27k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 1.27k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 1.27k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 1.27k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 5.01k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 5.01k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 5.03k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 5.01k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 5.63k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 5.63k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 5.63k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 5.63k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 4.41k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 4.41k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 4.42k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 4.41k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 2.98k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 2.98k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 2.98k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 2.98k | } |
|
584 | | |
585 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
586 | 266k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
587 | 266k | return std::make_shared<DataTypeUInt8>(); |
588 | 266k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 241k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 241k | return std::make_shared<DataTypeUInt8>(); | 588 | 241k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 1.14k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 1.14k | return std::make_shared<DataTypeUInt8>(); | 588 | 1.14k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 4.87k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 4.87k | return std::make_shared<DataTypeUInt8>(); | 588 | 4.87k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 7.30k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 7.30k | return std::make_shared<DataTypeUInt8>(); | 588 | 7.30k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 2.96k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 2.96k | return std::make_shared<DataTypeUInt8>(); | 588 | 2.96k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 8.98k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 8.98k | return std::make_shared<DataTypeUInt8>(); | 588 | 8.98k | } |
|
589 | | |
590 | | Status evaluate_inverted_index( |
591 | | const ColumnsWithTypeAndName& arguments, |
592 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
593 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
594 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
595 | 1.33k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
596 | 1.33k | DCHECK(arguments.size() == 1); |
597 | 1.33k | DCHECK(data_type_with_names.size() == 1); |
598 | 1.33k | DCHECK(iterators.size() == 1); |
599 | 1.33k | auto* iter = iterators[0]; |
600 | 1.33k | auto data_type_with_name = data_type_with_names[0]; |
601 | 1.33k | if (iter == nullptr) { |
602 | 0 | return Status::OK(); |
603 | 0 | } |
604 | 1.33k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
605 | 304 | return Status::OK(); |
606 | 304 | } |
607 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
608 | 1.03k | std::string_view name_view(name); |
609 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
610 | 711 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
611 | 711 | } else if (name_view == NameLess::name) { |
612 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
613 | 247 | } else if (name_view == NameLessOrEquals::name) { |
614 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
615 | 166 | } else if (name_view == NameGreater::name) { |
616 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
617 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
618 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
619 | 93 | } else { |
620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
621 | 0 | } |
622 | | |
623 | 1.03k | if (segment_v2::is_range_query(query_type) && |
624 | 1.03k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
626 | 133 | return Status::OK(); |
627 | 133 | } |
628 | 901 | Field param_value; |
629 | 901 | arguments[0].column->get(0, param_value); |
630 | 901 | if (param_value.is_null()) { |
631 | 2 | return Status::OK(); |
632 | 2 | } |
633 | 899 | segment_v2::InvertedIndexParam param; |
634 | 899 | param.column_name = data_type_with_name.first; |
635 | 899 | param.column_type = data_type_with_name.second; |
636 | 899 | param.query_value = param_value; |
637 | 899 | param.query_type = query_type; |
638 | 899 | param.num_rows = num_rows; |
639 | 899 | param.roaring = std::make_shared<roaring::Roaring>(); |
640 | 899 | param.analyzer_ctx = analyzer_ctx; |
641 | 899 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
642 | 749 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
643 | 749 | if (iter->has_null()) { |
644 | 748 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
645 | 748 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
646 | 748 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
647 | 748 | } |
648 | 749 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
649 | 749 | bitmap_result = result; |
650 | 749 | bitmap_result.mask_out_null(); |
651 | | |
652 | 749 | if (name_view == NameNotEquals::name) { |
653 | 58 | roaring::Roaring full_result; |
654 | 58 | full_result.addRange(0, num_rows); |
655 | 58 | bitmap_result.op_not(&full_result); |
656 | 58 | } |
657 | | |
658 | 749 | return Status::OK(); |
659 | 749 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 681 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 681 | DCHECK(arguments.size() == 1); | 597 | 681 | DCHECK(data_type_with_names.size() == 1); | 598 | 681 | DCHECK(iterators.size() == 1); | 599 | 681 | auto* iter = iterators[0]; | 600 | 681 | auto data_type_with_name = data_type_with_names[0]; | 601 | 681 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 681 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 36 | return Status::OK(); | 606 | 36 | } | 607 | 645 | segment_v2::InvertedIndexQueryType query_type; | 608 | 645 | std::string_view name_view(name); | 609 | 645 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 645 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 645 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 0 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 0 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 645 | if (segment_v2::is_range_query(query_type) && | 624 | 645 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 0 | return Status::OK(); | 627 | 0 | } | 628 | 645 | Field param_value; | 629 | 645 | arguments[0].column->get(0, param_value); | 630 | 645 | if (param_value.is_null()) { | 631 | 2 | return Status::OK(); | 632 | 2 | } | 633 | 643 | segment_v2::InvertedIndexParam param; | 634 | 643 | param.column_name = data_type_with_name.first; | 635 | 643 | param.column_type = data_type_with_name.second; | 636 | 643 | param.query_value = param_value; | 637 | 643 | param.query_type = query_type; | 638 | 643 | param.num_rows = num_rows; | 639 | 643 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 643 | param.analyzer_ctx = analyzer_ctx; | 641 | 643 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 600 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 600 | if (iter->has_null()) { | 644 | 600 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 600 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 600 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 600 | } | 648 | 600 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 600 | bitmap_result = result; | 650 | 600 | bitmap_result.mask_out_null(); | 651 | | | 652 | 600 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 600 | return Status::OK(); | 659 | 600 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 72 | DCHECK(arguments.size() == 1); | 597 | 72 | DCHECK(data_type_with_names.size() == 1); | 598 | 72 | DCHECK(iterators.size() == 1); | 599 | 72 | auto* iter = iterators[0]; | 600 | 72 | auto data_type_with_name = data_type_with_names[0]; | 601 | 72 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 6 | return Status::OK(); | 606 | 6 | } | 607 | 66 | segment_v2::InvertedIndexQueryType query_type; | 608 | 66 | std::string_view name_view(name); | 609 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 66 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 0 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 0 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 66 | if (segment_v2::is_range_query(query_type) && | 624 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 0 | return Status::OK(); | 627 | 0 | } | 628 | 66 | Field param_value; | 629 | 66 | arguments[0].column->get(0, param_value); | 630 | 66 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 66 | segment_v2::InvertedIndexParam param; | 634 | 66 | param.column_name = data_type_with_name.first; | 635 | 66 | param.column_type = data_type_with_name.second; | 636 | 66 | param.query_value = param_value; | 637 | 66 | param.query_type = query_type; | 638 | 66 | param.num_rows = num_rows; | 639 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 66 | param.analyzer_ctx = analyzer_ctx; | 641 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 59 | if (iter->has_null()) { | 644 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 59 | } | 648 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 59 | bitmap_result = result; | 650 | 59 | bitmap_result.mask_out_null(); | 651 | | | 652 | 59 | if (name_view == NameNotEquals::name) { | 653 | 58 | roaring::Roaring full_result; | 654 | 58 | full_result.addRange(0, num_rows); | 655 | 58 | bitmap_result.op_not(&full_result); | 656 | 58 | } | 657 | | | 658 | 59 | return Status::OK(); | 659 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 112 | DCHECK(arguments.size() == 1); | 597 | 112 | DCHECK(data_type_with_names.size() == 1); | 598 | 112 | DCHECK(iterators.size() == 1); | 599 | 112 | auto* iter = iterators[0]; | 600 | 112 | auto data_type_with_name = data_type_with_names[0]; | 601 | 112 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 39 | return Status::OK(); | 606 | 39 | } | 607 | 73 | segment_v2::InvertedIndexQueryType query_type; | 608 | 73 | std::string_view name_view(name); | 609 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 73 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 73 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 73 | } else if (name_view == NameGreater::name) { | 616 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 73 | if (segment_v2::is_range_query(query_type) && | 624 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 17 | return Status::OK(); | 627 | 17 | } | 628 | 56 | Field param_value; | 629 | 56 | arguments[0].column->get(0, param_value); | 630 | 56 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 56 | segment_v2::InvertedIndexParam param; | 634 | 56 | param.column_name = data_type_with_name.first; | 635 | 56 | param.column_type = data_type_with_name.second; | 636 | 56 | param.query_value = param_value; | 637 | 56 | param.query_type = query_type; | 638 | 56 | param.num_rows = num_rows; | 639 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 56 | param.analyzer_ctx = analyzer_ctx; | 641 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 37 | if (iter->has_null()) { | 644 | 36 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 36 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 36 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 36 | } | 648 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 37 | bitmap_result = result; | 650 | 37 | bitmap_result.mask_out_null(); | 651 | | | 652 | 37 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 37 | return Status::OK(); | 659 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 179 | DCHECK(arguments.size() == 1); | 597 | 179 | DCHECK(data_type_with_names.size() == 1); | 598 | 179 | DCHECK(iterators.size() == 1); | 599 | 179 | auto* iter = iterators[0]; | 600 | 179 | auto data_type_with_name = data_type_with_names[0]; | 601 | 179 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 86 | return Status::OK(); | 606 | 86 | } | 607 | 93 | segment_v2::InvertedIndexQueryType query_type; | 608 | 93 | std::string_view name_view(name); | 609 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 93 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 93 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 93 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 93 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 93 | if (segment_v2::is_range_query(query_type) && | 624 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 47 | return Status::OK(); | 627 | 47 | } | 628 | 46 | Field param_value; | 629 | 46 | arguments[0].column->get(0, param_value); | 630 | 46 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 46 | segment_v2::InvertedIndexParam param; | 634 | 46 | param.column_name = data_type_with_name.first; | 635 | 46 | param.column_type = data_type_with_name.second; | 636 | 46 | param.query_value = param_value; | 637 | 46 | param.query_type = query_type; | 638 | 46 | param.num_rows = num_rows; | 639 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 46 | param.analyzer_ctx = analyzer_ctx; | 641 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 5 | if (iter->has_null()) { | 644 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 5 | } | 648 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 5 | bitmap_result = result; | 650 | 5 | bitmap_result.mask_out_null(); | 651 | | | 652 | 5 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 5 | return Status::OK(); | 659 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 119 | DCHECK(arguments.size() == 1); | 597 | 119 | DCHECK(data_type_with_names.size() == 1); | 598 | 119 | DCHECK(iterators.size() == 1); | 599 | 119 | auto* iter = iterators[0]; | 600 | 119 | auto data_type_with_name = data_type_with_names[0]; | 601 | 119 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 43 | return Status::OK(); | 606 | 43 | } | 607 | 76 | segment_v2::InvertedIndexQueryType query_type; | 608 | 76 | std::string_view name_view(name); | 609 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 76 | } else if (name_view == NameLess::name) { | 612 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 76 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 0 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 76 | if (segment_v2::is_range_query(query_type) && | 624 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 18 | return Status::OK(); | 627 | 18 | } | 628 | 58 | Field param_value; | 629 | 58 | arguments[0].column->get(0, param_value); | 630 | 58 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 58 | segment_v2::InvertedIndexParam param; | 634 | 58 | param.column_name = data_type_with_name.first; | 635 | 58 | param.column_type = data_type_with_name.second; | 636 | 58 | param.query_value = param_value; | 637 | 58 | param.query_type = query_type; | 638 | 58 | param.num_rows = num_rows; | 639 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 58 | param.analyzer_ctx = analyzer_ctx; | 641 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 39 | if (iter->has_null()) { | 644 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 39 | } | 648 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 39 | bitmap_result = result; | 650 | 39 | bitmap_result.mask_out_null(); | 651 | | | 652 | 39 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 39 | return Status::OK(); | 659 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 175 | DCHECK(arguments.size() == 1); | 597 | 175 | DCHECK(data_type_with_names.size() == 1); | 598 | 175 | DCHECK(iterators.size() == 1); | 599 | 175 | auto* iter = iterators[0]; | 600 | 175 | auto data_type_with_name = data_type_with_names[0]; | 601 | 175 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 94 | return Status::OK(); | 606 | 94 | } | 607 | 81 | segment_v2::InvertedIndexQueryType query_type; | 608 | 81 | std::string_view name_view(name); | 609 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 81 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 81 | } else if (name_view == NameLessOrEquals::name) { | 614 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 81 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 81 | if (segment_v2::is_range_query(query_type) && | 624 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 51 | return Status::OK(); | 627 | 51 | } | 628 | 30 | Field param_value; | 629 | 30 | arguments[0].column->get(0, param_value); | 630 | 30 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 30 | segment_v2::InvertedIndexParam param; | 634 | 30 | param.column_name = data_type_with_name.first; | 635 | 30 | param.column_type = data_type_with_name.second; | 636 | 30 | param.query_value = param_value; | 637 | 30 | param.query_type = query_type; | 638 | 30 | param.num_rows = num_rows; | 639 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 30 | param.analyzer_ctx = analyzer_ctx; | 641 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 9 | if (iter->has_null()) { | 644 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 9 | } | 648 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 9 | bitmap_result = result; | 650 | 9 | bitmap_result.mask_out_null(); | 651 | | | 652 | 9 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 9 | return Status::OK(); | 659 | 9 | } |
|
660 | | |
661 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
662 | 70.2k | uint32_t result, size_t input_rows_count) const override { |
663 | 70.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
664 | 70.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
665 | | |
666 | 70.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
667 | 70.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
668 | 70.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
669 | 70.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
670 | | |
671 | 70.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
672 | 70.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
673 | | |
674 | | /// The case when arguments are the same (tautological comparison). Return constant. |
675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
677 | 70.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
678 | 70.2k | col_left_untyped == col_right_untyped) { |
679 | | /// Always true: =, <=, >= |
680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
684 | 0 | block.get_by_position(result).column = |
685 | 0 | DataTypeUInt8() |
686 | 0 | .create_column_const(input_rows_count, |
687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
688 | 0 | ->convert_to_full_column_if_const(); |
689 | 0 | return Status::OK(); |
690 | 0 | } else { |
691 | 0 | block.get_by_position(result).column = |
692 | 0 | DataTypeUInt8() |
693 | 0 | .create_column_const(input_rows_count, |
694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
695 | 0 | ->convert_to_full_column_if_const(); |
696 | 0 | return Status::OK(); |
697 | 0 | } |
698 | 0 | } |
699 | | |
700 | 125k | auto can_compare = [](PrimitiveType t) -> bool { |
701 | 125k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
702 | 125k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 36.5k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 36.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 36.5k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 6.80k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 6.80k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 6.80k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 40.3k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 40.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 40.3k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 6.76k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 6.76k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 6.76k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 16.8k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 16.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 16.8k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 18.2k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 18.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 18.2k | }; |
|
703 | | |
704 | 70.2k | if (can_compare(left_type->get_primitive_type()) && |
705 | 70.2k | can_compare(right_type->get_primitive_type())) { |
706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
707 | 55.2k | if (!left_type->equals_ignore_precision(*right_type)) { |
708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
709 | 0 | get_name(), left_type->get_name(), |
710 | 0 | right_type->get_name()); |
711 | 0 | } |
712 | 55.2k | } |
713 | | |
714 | 70.2k | auto compare_type = left_type->get_primitive_type(); |
715 | 70.2k | switch (compare_type) { |
716 | 235 | case TYPE_BOOLEAN: |
717 | 235 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
718 | 5.01k | case TYPE_DATEV2: |
719 | 5.01k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
720 | 951 | case TYPE_DATETIMEV2: |
721 | 951 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
722 | 7 | case TYPE_TIMESTAMPTZ: |
723 | 7 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
724 | 8.62k | case TYPE_TINYINT: |
725 | 8.62k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
726 | 2.60k | case TYPE_SMALLINT: |
727 | 2.60k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
728 | 27.0k | case TYPE_INT: |
729 | 27.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
730 | 7.10k | case TYPE_BIGINT: |
731 | 7.10k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
732 | 726 | case TYPE_LARGEINT: |
733 | 726 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
734 | 61 | case TYPE_IPV4: |
735 | 61 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
736 | 37 | case TYPE_IPV6: |
737 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
738 | 571 | case TYPE_FLOAT: |
739 | 571 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
740 | 2.17k | case TYPE_DOUBLE: |
741 | 2.17k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
742 | 4 | case TYPE_TIMEV2: |
743 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
744 | 0 | case TYPE_DECIMALV2: |
745 | 368 | case TYPE_DECIMAL32: |
746 | 1.00k | case TYPE_DECIMAL64: |
747 | 2.97k | case TYPE_DECIMAL128I: |
748 | 3.08k | case TYPE_DECIMAL256: |
749 | 3.08k | return execute_decimal(block, result, col_with_type_and_name_left, |
750 | 3.08k | col_with_type_and_name_right); |
751 | 761 | case TYPE_CHAR: |
752 | 6.49k | case TYPE_VARCHAR: |
753 | 11.8k | case TYPE_STRING: |
754 | 11.8k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
755 | 133 | default: |
756 | 133 | return execute_generic(block, result, col_with_type_and_name_left, |
757 | 133 | col_with_type_and_name_right); |
758 | 70.2k | } |
759 | 0 | return Status::OK(); |
760 | 70.2k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 24.1k | uint32_t result, size_t input_rows_count) const override { | 663 | 24.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 24.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 24.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 24.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 24.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 24.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 24.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 24.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 24.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 24.1k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 24.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 24.1k | }; | 703 | | | 704 | 24.1k | if (can_compare(left_type->get_primitive_type()) && | 705 | 24.1k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 12.3k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 12.3k | } | 713 | | | 714 | 24.1k | auto compare_type = left_type->get_primitive_type(); | 715 | 24.1k | switch (compare_type) { | 716 | 99 | case TYPE_BOOLEAN: | 717 | 99 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 571 | case TYPE_DATEV2: | 719 | 571 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 418 | case TYPE_DATETIMEV2: | 721 | 418 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 2 | case TYPE_TIMESTAMPTZ: | 723 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 5.03k | case TYPE_TINYINT: | 725 | 5.03k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 374 | case TYPE_SMALLINT: | 727 | 374 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 2.03k | case TYPE_INT: | 729 | 2.03k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 2.92k | case TYPE_BIGINT: | 731 | 2.92k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 117 | case TYPE_LARGEINT: | 733 | 117 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 18 | case TYPE_IPV4: | 735 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 19 | case TYPE_IPV6: | 737 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 101 | case TYPE_FLOAT: | 739 | 101 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 687 | case TYPE_DOUBLE: | 741 | 687 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 4 | case TYPE_TIMEV2: | 743 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 149 | case TYPE_DECIMAL32: | 746 | 311 | case TYPE_DECIMAL64: | 747 | 1.11k | case TYPE_DECIMAL128I: | 748 | 1.14k | case TYPE_DECIMAL256: | 749 | 1.14k | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 1.14k | col_with_type_and_name_right); | 751 | 499 | case TYPE_CHAR: | 752 | 5.66k | case TYPE_VARCHAR: | 753 | 10.5k | case TYPE_STRING: | 754 | 10.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 17 | default: | 756 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 17 | col_with_type_and_name_right); | 758 | 24.1k | } | 759 | 0 | return Status::OK(); | 760 | 24.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 3.51k | uint32_t result, size_t input_rows_count) const override { | 663 | 3.51k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 3.51k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 3.51k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 3.51k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 3.51k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 3.51k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 3.51k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 3.51k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 3.52k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 3.52k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 3.51k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 3.51k | }; | 703 | | | 704 | 3.51k | if (can_compare(left_type->get_primitive_type()) && | 705 | 3.51k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 3.29k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 3.29k | } | 713 | | | 714 | 3.51k | auto compare_type = left_type->get_primitive_type(); | 715 | 3.51k | switch (compare_type) { | 716 | 0 | case TYPE_BOOLEAN: | 717 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 70 | case TYPE_DATEV2: | 719 | 70 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 0 | case TYPE_DATETIMEV2: | 721 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 0 | case TYPE_TIMESTAMPTZ: | 723 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 84 | case TYPE_TINYINT: | 725 | 84 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 0 | case TYPE_SMALLINT: | 727 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 1.91k | case TYPE_INT: | 729 | 1.91k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 1.11k | case TYPE_BIGINT: | 731 | 1.11k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 0 | case TYPE_LARGEINT: | 733 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 0 | case TYPE_IPV4: | 735 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 0 | case TYPE_IPV6: | 737 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 48 | case TYPE_FLOAT: | 739 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 60 | case TYPE_DOUBLE: | 741 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 0 | case TYPE_DECIMAL32: | 746 | 68 | case TYPE_DECIMAL64: | 747 | 96 | case TYPE_DECIMAL128I: | 748 | 126 | case TYPE_DECIMAL256: | 749 | 126 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 126 | col_with_type_and_name_right); | 751 | 1 | case TYPE_CHAR: | 752 | 27 | case TYPE_VARCHAR: | 753 | 95 | case TYPE_STRING: | 754 | 95 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 8 | default: | 756 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 8 | col_with_type_and_name_right); | 758 | 3.51k | } | 759 | 0 | return Status::OK(); | 760 | 3.51k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 20.6k | uint32_t result, size_t input_rows_count) const override { | 663 | 20.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 20.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 20.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 20.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 20.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 20.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 20.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 20.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 20.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 20.6k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 20.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 20.6k | }; | 703 | | | 704 | 20.6k | if (can_compare(left_type->get_primitive_type()) && | 705 | 20.6k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 19.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 19.6k | } | 713 | | | 714 | 20.6k | auto compare_type = left_type->get_primitive_type(); | 715 | 20.6k | switch (compare_type) { | 716 | 0 | case TYPE_BOOLEAN: | 717 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 1.06k | case TYPE_DATEV2: | 719 | 1.06k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 1 | case TYPE_DATETIMEV2: | 721 | 1 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 1 | case TYPE_TIMESTAMPTZ: | 723 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 1.17k | case TYPE_TINYINT: | 725 | 1.17k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 1.79k | case TYPE_SMALLINT: | 727 | 1.79k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 12.9k | case TYPE_INT: | 729 | 12.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 1.71k | case TYPE_BIGINT: | 731 | 1.71k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 258 | case TYPE_LARGEINT: | 733 | 258 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 4 | case TYPE_IPV4: | 735 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 1 | case TYPE_IPV6: | 737 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 220 | case TYPE_FLOAT: | 739 | 220 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 526 | case TYPE_DOUBLE: | 741 | 526 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 8 | case TYPE_DECIMAL32: | 746 | 74 | case TYPE_DECIMAL64: | 747 | 742 | case TYPE_DECIMAL128I: | 748 | 744 | case TYPE_DECIMAL256: | 749 | 744 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 744 | col_with_type_and_name_right); | 751 | 14 | case TYPE_CHAR: | 752 | 75 | case TYPE_VARCHAR: | 753 | 182 | case TYPE_STRING: | 754 | 182 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 9 | default: | 756 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 9 | col_with_type_and_name_right); | 758 | 20.6k | } | 759 | 0 | return Status::OK(); | 760 | 20.6k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 3.60k | uint32_t result, size_t input_rows_count) const override { | 663 | 3.60k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 3.60k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 3.60k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 3.60k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 3.60k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 3.60k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 3.60k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 3.60k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 3.60k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 3.60k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 3.60k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 3.60k | }; | 703 | | | 704 | 3.60k | if (can_compare(left_type->get_primitive_type()) && | 705 | 3.60k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 3.16k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 3.16k | } | 713 | | | 714 | 3.60k | auto compare_type = left_type->get_primitive_type(); | 715 | 3.60k | switch (compare_type) { | 716 | 24 | case TYPE_BOOLEAN: | 717 | 24 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 604 | case TYPE_DATEV2: | 719 | 604 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 146 | case TYPE_DATETIMEV2: | 721 | 146 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 1 | case TYPE_TIMESTAMPTZ: | 723 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 67 | case TYPE_TINYINT: | 725 | 67 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 123 | case TYPE_SMALLINT: | 727 | 123 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 1.62k | case TYPE_INT: | 729 | 1.62k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 185 | case TYPE_BIGINT: | 731 | 185 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 24 | case TYPE_LARGEINT: | 733 | 24 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 11 | case TYPE_IPV4: | 735 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 1 | case TYPE_IPV6: | 737 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 24 | case TYPE_FLOAT: | 739 | 24 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 288 | case TYPE_DOUBLE: | 741 | 288 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 1 | case TYPE_DECIMAL32: | 746 | 54 | case TYPE_DECIMAL64: | 747 | 116 | case TYPE_DECIMAL128I: | 748 | 143 | case TYPE_DECIMAL256: | 749 | 143 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 143 | col_with_type_and_name_right); | 751 | 26 | case TYPE_CHAR: | 752 | 223 | case TYPE_VARCHAR: | 753 | 288 | case TYPE_STRING: | 754 | 288 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 43 | default: | 756 | 43 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 43 | col_with_type_and_name_right); | 758 | 3.60k | } | 759 | 0 | return Status::OK(); | 760 | 3.60k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 9.08k | uint32_t result, size_t input_rows_count) const override { | 663 | 9.08k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 9.08k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 9.08k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 9.08k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 9.08k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 9.08k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 9.08k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 9.08k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 9.08k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 9.08k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 9.08k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 9.08k | }; | 703 | | | 704 | 9.08k | if (can_compare(left_type->get_primitive_type()) && | 705 | 9.08k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 7.76k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 7.76k | } | 713 | | | 714 | 9.08k | auto compare_type = left_type->get_primitive_type(); | 715 | 9.08k | switch (compare_type) { | 716 | 98 | case TYPE_BOOLEAN: | 717 | 98 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 2.15k | case TYPE_DATEV2: | 719 | 2.15k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 339 | case TYPE_DATETIMEV2: | 721 | 339 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 2 | case TYPE_TIMESTAMPTZ: | 723 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 2.16k | case TYPE_TINYINT: | 725 | 2.16k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 146 | case TYPE_SMALLINT: | 727 | 146 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 1.15k | case TYPE_INT: | 729 | 1.15k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 809 | case TYPE_BIGINT: | 731 | 809 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 301 | case TYPE_LARGEINT: | 733 | 301 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 18 | case TYPE_IPV4: | 735 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 16 | case TYPE_IPV6: | 737 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 158 | case TYPE_FLOAT: | 739 | 158 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 413 | case TYPE_DOUBLE: | 741 | 413 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 206 | case TYPE_DECIMAL32: | 746 | 419 | case TYPE_DECIMAL64: | 747 | 742 | case TYPE_DECIMAL128I: | 748 | 743 | case TYPE_DECIMAL256: | 749 | 743 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 743 | col_with_type_and_name_right); | 751 | 195 | case TYPE_CHAR: | 752 | 381 | case TYPE_VARCHAR: | 753 | 556 | case TYPE_STRING: | 754 | 556 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 11 | default: | 756 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 11 | col_with_type_and_name_right); | 758 | 9.08k | } | 759 | 0 | return Status::OK(); | 760 | 9.08k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 9.29k | uint32_t result, size_t input_rows_count) const override { | 663 | 9.29k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 9.29k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 9.29k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 9.29k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 9.29k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 9.29k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 9.29k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 9.29k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 9.29k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 9.29k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 9.29k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 9.29k | }; | 703 | | | 704 | 9.29k | if (can_compare(left_type->get_primitive_type()) && | 705 | 9.29k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 8.92k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 8.92k | } | 713 | | | 714 | 9.29k | auto compare_type = left_type->get_primitive_type(); | 715 | 9.29k | switch (compare_type) { | 716 | 14 | case TYPE_BOOLEAN: | 717 | 14 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 554 | case TYPE_DATEV2: | 719 | 554 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 47 | case TYPE_DATETIMEV2: | 721 | 47 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 1 | case TYPE_TIMESTAMPTZ: | 723 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 109 | case TYPE_TINYINT: | 725 | 109 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 170 | case TYPE_SMALLINT: | 727 | 170 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 7.37k | case TYPE_INT: | 729 | 7.37k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 349 | case TYPE_BIGINT: | 731 | 349 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 26 | case TYPE_LARGEINT: | 733 | 26 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 10 | case TYPE_IPV4: | 735 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 0 | case TYPE_IPV6: | 737 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 20 | case TYPE_FLOAT: | 739 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 199 | case TYPE_DOUBLE: | 741 | 199 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 4 | case TYPE_DECIMAL32: | 746 | 83 | case TYPE_DECIMAL64: | 747 | 161 | case TYPE_DECIMAL128I: | 748 | 183 | case TYPE_DECIMAL256: | 749 | 183 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 183 | col_with_type_and_name_right); | 751 | 26 | case TYPE_CHAR: | 752 | 120 | case TYPE_VARCHAR: | 753 | 192 | case TYPE_STRING: | 754 | 192 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 45 | default: | 756 | 45 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 45 | col_with_type_and_name_right); | 758 | 9.29k | } | 759 | 0 | return Status::OK(); | 760 | 9.29k | } |
|
761 | | }; |
762 | | |
763 | | } // namespace doris |