be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 11.5k | PaddedPODArray<UInt8>& c) { |
72 | 11.5k | size_t size = a.size(); |
73 | 11.5k | const A* __restrict a_pos = a.data(); |
74 | 11.5k | const B* __restrict b_pos = b.data(); |
75 | 11.5k | UInt8* __restrict c_pos = c.data(); |
76 | 11.5k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 6.75M | while (a_pos < a_end) { |
79 | 6.74M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 6.74M | ++a_pos; |
81 | 6.74M | ++b_pos; |
82 | 6.74M | ++c_pos; |
83 | 6.74M | } |
84 | 11.5k | } _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 | 671 | PaddedPODArray<UInt8>& c) { | 72 | 671 | size_t size = a.size(); | 73 | 671 | const A* __restrict a_pos = a.data(); | 74 | 671 | const B* __restrict b_pos = b.data(); | 75 | 671 | UInt8* __restrict c_pos = c.data(); | 76 | 671 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.19k | while (a_pos < a_end) { | 79 | 1.52k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.52k | ++a_pos; | 81 | 1.52k | ++b_pos; | 82 | 1.52k | ++c_pos; | 83 | 1.52k | } | 84 | 671 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 339 | PaddedPODArray<UInt8>& c) { | 72 | 339 | size_t size = a.size(); | 73 | 339 | const A* __restrict a_pos = a.data(); | 74 | 339 | const B* __restrict b_pos = b.data(); | 75 | 339 | UInt8* __restrict c_pos = c.data(); | 76 | 339 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 696 | while (a_pos < a_end) { | 79 | 357 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 357 | ++a_pos; | 81 | 357 | ++b_pos; | 82 | 357 | ++c_pos; | 83 | 357 | } | 84 | 339 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 133 | PaddedPODArray<UInt8>& c) { | 72 | 133 | size_t size = a.size(); | 73 | 133 | const A* __restrict a_pos = a.data(); | 74 | 133 | const B* __restrict b_pos = b.data(); | 75 | 133 | UInt8* __restrict c_pos = c.data(); | 76 | 133 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 408 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 133 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 62 | PaddedPODArray<UInt8>& c) { | 72 | 62 | size_t size = a.size(); | 73 | 62 | const A* __restrict a_pos = a.data(); | 74 | 62 | const B* __restrict b_pos = b.data(); | 75 | 62 | UInt8* __restrict c_pos = c.data(); | 76 | 62 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 62 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.01k | PaddedPODArray<UInt8>& c) { | 72 | 1.01k | size_t size = a.size(); | 73 | 1.01k | const A* __restrict a_pos = a.data(); | 74 | 1.01k | const B* __restrict b_pos = b.data(); | 75 | 1.01k | UInt8* __restrict c_pos = c.data(); | 76 | 1.01k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.36k | while (a_pos < a_end) { | 79 | 2.35k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.35k | ++a_pos; | 81 | 2.35k | ++b_pos; | 82 | 2.35k | ++c_pos; | 83 | 2.35k | } | 84 | 1.01k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 259 | PaddedPODArray<UInt8>& c) { | 72 | 259 | size_t size = a.size(); | 73 | 259 | const A* __restrict a_pos = a.data(); | 74 | 259 | const B* __restrict b_pos = b.data(); | 75 | 259 | UInt8* __restrict c_pos = c.data(); | 76 | 259 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.77k | while (a_pos < a_end) { | 79 | 1.51k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.51k | ++a_pos; | 81 | 1.51k | ++b_pos; | 82 | 1.51k | ++c_pos; | 83 | 1.51k | } | 84 | 259 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 62 | PaddedPODArray<UInt8>& c) { | 72 | 62 | size_t size = a.size(); | 73 | 62 | const A* __restrict a_pos = a.data(); | 74 | 62 | const B* __restrict b_pos = b.data(); | 75 | 62 | UInt8* __restrict c_pos = c.data(); | 76 | 62 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 62 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 13 | PaddedPODArray<UInt8>& c) { | 72 | 13 | size_t size = a.size(); | 73 | 13 | const A* __restrict a_pos = a.data(); | 74 | 13 | const B* __restrict b_pos = b.data(); | 75 | 13 | UInt8* __restrict c_pos = c.data(); | 76 | 13 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 26 | while (a_pos < a_end) { | 79 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 13 | ++a_pos; | 81 | 13 | ++b_pos; | 82 | 13 | ++c_pos; | 83 | 13 | } | 84 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 82 | PaddedPODArray<UInt8>& c) { | 72 | 82 | size_t size = a.size(); | 73 | 82 | const A* __restrict a_pos = a.data(); | 74 | 82 | const B* __restrict b_pos = b.data(); | 75 | 82 | UInt8* __restrict c_pos = c.data(); | 76 | 82 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 183 | while (a_pos < a_end) { | 79 | 101 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 101 | ++a_pos; | 81 | 101 | ++b_pos; | 82 | 101 | ++c_pos; | 83 | 101 | } | 84 | 82 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 83 | PaddedPODArray<UInt8>& c) { | 72 | 83 | size_t size = a.size(); | 73 | 83 | const A* __restrict a_pos = a.data(); | 74 | 83 | const B* __restrict b_pos = b.data(); | 75 | 83 | UInt8* __restrict c_pos = c.data(); | 76 | 83 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 187 | while (a_pos < a_end) { | 79 | 104 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 104 | ++a_pos; | 81 | 104 | ++b_pos; | 82 | 104 | ++c_pos; | 83 | 104 | } | 84 | 83 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 47 | PaddedPODArray<UInt8>& c) { | 72 | 47 | size_t size = a.size(); | 73 | 47 | const A* __restrict a_pos = a.data(); | 74 | 47 | const B* __restrict b_pos = b.data(); | 75 | 47 | UInt8* __restrict c_pos = c.data(); | 76 | 47 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 77 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 77 | ++a_pos; | 81 | 77 | ++b_pos; | 82 | 77 | ++c_pos; | 83 | 77 | } | 84 | 47 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 2.41k | PaddedPODArray<UInt8>& c) { | 72 | 2.41k | size_t size = a.size(); | 73 | 2.41k | const A* __restrict a_pos = a.data(); | 74 | 2.41k | const B* __restrict b_pos = b.data(); | 75 | 2.41k | UInt8* __restrict c_pos = c.data(); | 76 | 2.41k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.67M | while (a_pos < a_end) { | 79 | 1.67M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.67M | ++a_pos; | 81 | 1.67M | ++b_pos; | 82 | 1.67M | ++c_pos; | 83 | 1.67M | } | 84 | 2.41k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 316 | PaddedPODArray<UInt8>& c) { | 72 | 316 | size_t size = a.size(); | 73 | 316 | const A* __restrict a_pos = a.data(); | 74 | 316 | const B* __restrict b_pos = b.data(); | 75 | 316 | UInt8* __restrict c_pos = c.data(); | 76 | 316 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.18k | while (a_pos < a_end) { | 79 | 5.87k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.87k | ++a_pos; | 81 | 5.87k | ++b_pos; | 82 | 5.87k | ++c_pos; | 83 | 5.87k | } | 84 | 316 | } |
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.14k | PaddedPODArray<UInt8>& c) { | 72 | 1.14k | size_t size = a.size(); | 73 | 1.14k | const A* __restrict a_pos = a.data(); | 74 | 1.14k | const B* __restrict b_pos = b.data(); | 75 | 1.14k | UInt8* __restrict c_pos = c.data(); | 76 | 1.14k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.81M | while (a_pos < a_end) { | 79 | 3.81M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 3.81M | ++a_pos; | 81 | 3.81M | ++b_pos; | 82 | 3.81M | ++c_pos; | 83 | 3.81M | } | 84 | 1.14k | } |
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 | 79 | PaddedPODArray<UInt8>& c) { | 72 | 79 | size_t size = a.size(); | 73 | 79 | const A* __restrict a_pos = a.data(); | 74 | 79 | const B* __restrict b_pos = b.data(); | 75 | 79 | UInt8* __restrict c_pos = c.data(); | 76 | 79 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 331 | while (a_pos < a_end) { | 79 | 252 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 252 | ++a_pos; | 81 | 252 | ++b_pos; | 82 | 252 | ++c_pos; | 83 | 252 | } | 84 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 63 | PaddedPODArray<UInt8>& c) { | 72 | 63 | size_t size = a.size(); | 73 | 63 | const A* __restrict a_pos = a.data(); | 74 | 63 | const B* __restrict b_pos = b.data(); | 75 | 63 | UInt8* __restrict c_pos = c.data(); | 76 | 63 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 569 | while (a_pos < a_end) { | 79 | 506 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 506 | ++a_pos; | 81 | 506 | ++b_pos; | 82 | 506 | ++c_pos; | 83 | 506 | } | 84 | 63 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 26 | PaddedPODArray<UInt8>& c) { | 72 | 26 | size_t size = a.size(); | 73 | 26 | const A* __restrict a_pos = a.data(); | 74 | 26 | const B* __restrict b_pos = b.data(); | 75 | 26 | UInt8* __restrict c_pos = c.data(); | 76 | 26 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 96 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 26 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | while (a_pos < a_end) { | 79 | 12 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 12 | ++a_pos; | 81 | 12 | ++b_pos; | 82 | 12 | ++c_pos; | 83 | 12 | } | 84 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 31 | PaddedPODArray<UInt8>& c) { | 72 | 31 | size_t size = a.size(); | 73 | 31 | const A* __restrict a_pos = a.data(); | 74 | 31 | const B* __restrict b_pos = b.data(); | 75 | 31 | UInt8* __restrict c_pos = c.data(); | 76 | 31 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 62 | while (a_pos < a_end) { | 79 | 31 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 31 | ++a_pos; | 81 | 31 | ++b_pos; | 82 | 31 | ++c_pos; | 83 | 31 | } | 84 | 31 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 66 | PaddedPODArray<UInt8>& c) { | 72 | 66 | size_t size = a.size(); | 73 | 66 | const A* __restrict a_pos = a.data(); | 74 | 66 | const B* __restrict b_pos = b.data(); | 75 | 66 | UInt8* __restrict c_pos = c.data(); | 76 | 66 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 190 | while (a_pos < a_end) { | 79 | 124 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 124 | ++a_pos; | 81 | 124 | ++b_pos; | 82 | 124 | ++c_pos; | 83 | 124 | } | 84 | 66 | } |
_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 | 49 | PaddedPODArray<UInt8>& c) { | 72 | 49 | size_t size = a.size(); | 73 | 49 | const A* __restrict a_pos = a.data(); | 74 | 49 | const B* __restrict b_pos = b.data(); | 75 | 49 | UInt8* __restrict c_pos = c.data(); | 76 | 49 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 99 | while (a_pos < a_end) { | 79 | 50 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 50 | ++a_pos; | 81 | 50 | ++b_pos; | 82 | 50 | ++c_pos; | 83 | 50 | } | 84 | 49 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 21 | PaddedPODArray<UInt8>& c) { | 72 | 21 | size_t size = a.size(); | 73 | 21 | const A* __restrict a_pos = a.data(); | 74 | 21 | const B* __restrict b_pos = b.data(); | 75 | 21 | UInt8* __restrict c_pos = c.data(); | 76 | 21 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 88 | while (a_pos < a_end) { | 79 | 67 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 67 | ++a_pos; | 81 | 67 | ++b_pos; | 82 | 67 | ++c_pos; | 83 | 67 | } | 84 | 21 | } |
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 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 139 | while (a_pos < a_end) { | 79 | 79 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 79 | ++a_pos; | 81 | 79 | ++b_pos; | 82 | 79 | ++c_pos; | 83 | 79 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 22 | PaddedPODArray<UInt8>& c) { | 72 | 22 | size_t size = a.size(); | 73 | 22 | const A* __restrict a_pos = a.data(); | 74 | 22 | const B* __restrict b_pos = b.data(); | 75 | 22 | UInt8* __restrict c_pos = c.data(); | 76 | 22 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 65 | 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 | 22 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 101 | PaddedPODArray<UInt8>& c) { | 72 | 101 | size_t size = a.size(); | 73 | 101 | const A* __restrict a_pos = a.data(); | 74 | 101 | const B* __restrict b_pos = b.data(); | 75 | 101 | UInt8* __restrict c_pos = c.data(); | 76 | 101 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 101 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 2.02k | PaddedPODArray<UInt8>& c) { | 72 | 2.02k | size_t size = a.size(); | 73 | 2.02k | const A* __restrict a_pos = a.data(); | 74 | 2.02k | const B* __restrict b_pos = b.data(); | 75 | 2.02k | UInt8* __restrict c_pos = c.data(); | 76 | 2.02k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.22M | while (a_pos < a_end) { | 79 | 1.22M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.22M | ++a_pos; | 81 | 1.22M | ++b_pos; | 82 | 1.22M | ++c_pos; | 83 | 1.22M | } | 84 | 2.02k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 254 | PaddedPODArray<UInt8>& c) { | 72 | 254 | size_t size = a.size(); | 73 | 254 | const A* __restrict a_pos = a.data(); | 74 | 254 | const B* __restrict b_pos = b.data(); | 75 | 254 | UInt8* __restrict c_pos = c.data(); | 76 | 254 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 856 | while (a_pos < a_end) { | 79 | 602 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 602 | ++a_pos; | 81 | 602 | ++b_pos; | 82 | 602 | ++c_pos; | 83 | 602 | } | 84 | 254 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 458 | while (a_pos < a_end) { | 79 | 316 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 316 | ++a_pos; | 81 | 316 | ++b_pos; | 82 | 316 | ++c_pos; | 83 | 316 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 122 | PaddedPODArray<UInt8>& c) { | 72 | 122 | size_t size = a.size(); | 73 | 122 | const A* __restrict a_pos = a.data(); | 74 | 122 | const B* __restrict b_pos = b.data(); | 75 | 122 | UInt8* __restrict c_pos = c.data(); | 76 | 122 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 420 | while (a_pos < a_end) { | 79 | 298 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 298 | ++a_pos; | 81 | 298 | ++b_pos; | 82 | 298 | ++c_pos; | 83 | 298 | } | 84 | 122 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 162 | PaddedPODArray<UInt8>& c) { | 72 | 162 | size_t size = a.size(); | 73 | 162 | const A* __restrict a_pos = a.data(); | 74 | 162 | const B* __restrict b_pos = b.data(); | 75 | 162 | UInt8* __restrict c_pos = c.data(); | 76 | 162 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.00k | while (a_pos < a_end) { | 79 | 845 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 845 | ++a_pos; | 81 | 845 | ++b_pos; | 82 | 845 | ++c_pos; | 83 | 845 | } | 84 | 162 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 202 | PaddedPODArray<UInt8>& c) { | 72 | 202 | size_t size = a.size(); | 73 | 202 | const A* __restrict a_pos = a.data(); | 74 | 202 | const B* __restrict b_pos = b.data(); | 75 | 202 | UInt8* __restrict c_pos = c.data(); | 76 | 202 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.39k | 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 | 202 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 458 | while (a_pos < a_end) { | 79 | 316 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 316 | ++a_pos; | 81 | 316 | ++b_pos; | 82 | 316 | ++c_pos; | 83 | 316 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 138 | PaddedPODArray<UInt8>& c) { | 72 | 138 | size_t size = a.size(); | 73 | 138 | const A* __restrict a_pos = a.data(); | 74 | 138 | const B* __restrict b_pos = b.data(); | 75 | 138 | UInt8* __restrict c_pos = c.data(); | 76 | 138 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 469 | while (a_pos < a_end) { | 79 | 331 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 331 | ++a_pos; | 81 | 331 | ++b_pos; | 82 | 331 | ++c_pos; | 83 | 331 | } | 84 | 138 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 146 | PaddedPODArray<UInt8>& c) { | 72 | 146 | size_t size = a.size(); | 73 | 146 | const A* __restrict a_pos = a.data(); | 74 | 146 | const B* __restrict b_pos = b.data(); | 75 | 146 | UInt8* __restrict c_pos = c.data(); | 76 | 146 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 492 | while (a_pos < a_end) { | 79 | 346 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 346 | ++a_pos; | 81 | 346 | ++b_pos; | 82 | 346 | ++c_pos; | 83 | 346 | } | 84 | 146 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | while (a_pos < a_end) { | 79 | 12 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 12 | ++a_pos; | 81 | 12 | ++b_pos; | 82 | 12 | ++c_pos; | 83 | 12 | } | 84 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 423 | PaddedPODArray<UInt8>& c) { | 72 | 423 | size_t size = a.size(); | 73 | 423 | const A* __restrict a_pos = a.data(); | 74 | 423 | const B* __restrict b_pos = b.data(); | 75 | 423 | UInt8* __restrict c_pos = c.data(); | 76 | 423 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.55k | while (a_pos < a_end) { | 79 | 6.13k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.13k | ++a_pos; | 81 | 6.13k | ++b_pos; | 82 | 6.13k | ++c_pos; | 83 | 6.13k | } | 84 | 423 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 120 | while (a_pos < a_end) { | 79 | 60 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 60 | ++a_pos; | 81 | 60 | ++b_pos; | 82 | 60 | ++c_pos; | 83 | 60 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 93 | while (a_pos < a_end) { | 79 | 53 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 53 | ++a_pos; | 81 | 53 | ++b_pos; | 82 | 53 | ++c_pos; | 83 | 53 | } | 84 | 40 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 81 | PaddedPODArray<UInt8>& c) { | 72 | 81 | size_t size = a.size(); | 73 | 81 | const A* __restrict a_pos = a.data(); | 74 | 81 | const B* __restrict b_pos = b.data(); | 75 | 81 | UInt8* __restrict c_pos = c.data(); | 76 | 81 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 213 | while (a_pos < a_end) { | 79 | 132 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 132 | ++a_pos; | 81 | 132 | ++b_pos; | 82 | 132 | ++c_pos; | 83 | 132 | } | 84 | 81 | } |
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 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 139 | while (a_pos < a_end) { | 79 | 79 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 79 | ++a_pos; | 81 | 79 | ++b_pos; | 82 | 79 | ++c_pos; | 83 | 79 | } | 84 | 60 | } |
_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 | 255k | PaddedPODArray<UInt8>& c) { |
88 | 255k | size_t size = a.size(); |
89 | 255k | const A* __restrict a_pos = a.data(); |
90 | 255k | UInt8* __restrict c_pos = c.data(); |
91 | 255k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 175M | while (a_pos < a_end) { |
94 | 175M | *c_pos = Op::apply(*a_pos, b); |
95 | 175M | ++a_pos; |
96 | 175M | ++c_pos; |
97 | 175M | } |
98 | 255k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 1.53k | PaddedPODArray<UInt8>& c) { | 88 | 1.53k | size_t size = a.size(); | 89 | 1.53k | const A* __restrict a_pos = a.data(); | 90 | 1.53k | UInt8* __restrict c_pos = c.data(); | 91 | 1.53k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.03k | while (a_pos < a_end) { | 94 | 3.49k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.49k | ++a_pos; | 96 | 3.49k | ++c_pos; | 97 | 3.49k | } | 98 | 1.53k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 1.01k | PaddedPODArray<UInt8>& c) { | 88 | 1.01k | size_t size = a.size(); | 89 | 1.01k | const A* __restrict a_pos = a.data(); | 90 | 1.01k | UInt8* __restrict c_pos = c.data(); | 91 | 1.01k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 205k | while (a_pos < a_end) { | 94 | 204k | *c_pos = Op::apply(*a_pos, b); | 95 | 204k | ++a_pos; | 96 | 204k | ++c_pos; | 97 | 204k | } | 98 | 1.01k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | } |
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 | 5.26k | PaddedPODArray<UInt8>& c) { | 88 | 5.26k | size_t size = a.size(); | 89 | 5.26k | const A* __restrict a_pos = a.data(); | 90 | 5.26k | UInt8* __restrict c_pos = c.data(); | 91 | 5.26k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.11M | while (a_pos < a_end) { | 94 | 9.10M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.10M | ++a_pos; | 96 | 9.10M | ++c_pos; | 97 | 9.10M | } | 98 | 5.26k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 691 | PaddedPODArray<UInt8>& c) { | 88 | 691 | size_t size = a.size(); | 89 | 691 | const A* __restrict a_pos = a.data(); | 90 | 691 | UInt8* __restrict c_pos = c.data(); | 91 | 691 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 159k | while (a_pos < a_end) { | 94 | 159k | *c_pos = Op::apply(*a_pos, b); | 95 | 159k | ++a_pos; | 96 | 159k | ++c_pos; | 97 | 159k | } | 98 | 691 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 7.20k | PaddedPODArray<UInt8>& c) { | 88 | 7.20k | size_t size = a.size(); | 89 | 7.20k | const A* __restrict a_pos = a.data(); | 90 | 7.20k | UInt8* __restrict c_pos = c.data(); | 91 | 7.20k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.70M | while (a_pos < a_end) { | 94 | 1.70M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.70M | ++a_pos; | 96 | 1.70M | ++c_pos; | 97 | 1.70M | } | 98 | 7.20k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17.1k | PaddedPODArray<UInt8>& c) { | 88 | 17.1k | size_t size = a.size(); | 89 | 17.1k | const A* __restrict a_pos = a.data(); | 90 | 17.1k | UInt8* __restrict c_pos = c.data(); | 91 | 17.1k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.82M | while (a_pos < a_end) { | 94 | 3.80M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.80M | ++a_pos; | 96 | 3.80M | ++c_pos; | 97 | 3.80M | } | 98 | 17.1k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 73 | PaddedPODArray<UInt8>& c) { | 88 | 73 | size_t size = a.size(); | 89 | 73 | const A* __restrict a_pos = a.data(); | 90 | 73 | UInt8* __restrict c_pos = c.data(); | 91 | 73 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 101k | *c_pos = Op::apply(*a_pos, b); | 95 | 101k | ++a_pos; | 96 | 101k | ++c_pos; | 97 | 101k | } | 98 | 73 | } |
_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 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 26 | while (a_pos < a_end) { | 94 | 22 | *c_pos = Op::apply(*a_pos, b); | 95 | 22 | ++a_pos; | 96 | 22 | ++c_pos; | 97 | 22 | } | 98 | 4 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 816 | PaddedPODArray<UInt8>& c) { | 88 | 816 | size_t size = a.size(); | 89 | 816 | const A* __restrict a_pos = a.data(); | 90 | 816 | UInt8* __restrict c_pos = c.data(); | 91 | 816 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 719k | while (a_pos < a_end) { | 94 | 719k | *c_pos = Op::apply(*a_pos, b); | 95 | 719k | ++a_pos; | 96 | 719k | ++c_pos; | 97 | 719k | } | 98 | 816 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 35 | PaddedPODArray<UInt8>& c) { | 88 | 35 | size_t size = a.size(); | 89 | 35 | const A* __restrict a_pos = a.data(); | 90 | 35 | UInt8* __restrict c_pos = c.data(); | 91 | 35 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90 | while (a_pos < a_end) { | 94 | 55 | *c_pos = Op::apply(*a_pos, b); | 95 | 55 | ++a_pos; | 96 | 55 | ++c_pos; | 97 | 55 | } | 98 | 35 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4 | while (a_pos < a_end) { | 94 | 2 | *c_pos = Op::apply(*a_pos, b); | 95 | 2 | ++a_pos; | 96 | 2 | ++c_pos; | 97 | 2 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 44 | PaddedPODArray<UInt8>& c) { | 88 | 44 | size_t size = a.size(); | 89 | 44 | const A* __restrict a_pos = a.data(); | 90 | 44 | UInt8* __restrict c_pos = c.data(); | 91 | 44 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.24k | while (a_pos < a_end) { | 94 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.19k | ++a_pos; | 96 | 1.19k | ++c_pos; | 97 | 1.19k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 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 | 786 | while (a_pos < a_end) { | 94 | 776 | *c_pos = Op::apply(*a_pos, b); | 95 | 776 | ++a_pos; | 96 | 776 | ++c_pos; | 97 | 776 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.20k | PaddedPODArray<UInt8>& c) { | 88 | 1.20k | size_t size = a.size(); | 89 | 1.20k | const A* __restrict a_pos = a.data(); | 90 | 1.20k | UInt8* __restrict c_pos = c.data(); | 91 | 1.20k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 645k | while (a_pos < a_end) { | 94 | 644k | *c_pos = Op::apply(*a_pos, b); | 95 | 644k | ++a_pos; | 96 | 644k | ++c_pos; | 97 | 644k | } | 98 | 1.20k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.06k | PaddedPODArray<UInt8>& c) { | 88 | 2.06k | size_t size = a.size(); | 89 | 2.06k | const A* __restrict a_pos = a.data(); | 90 | 2.06k | UInt8* __restrict c_pos = c.data(); | 91 | 2.06k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 272k | while (a_pos < a_end) { | 94 | 270k | *c_pos = Op::apply(*a_pos, b); | 95 | 270k | ++a_pos; | 96 | 270k | ++c_pos; | 97 | 270k | } | 98 | 2.06k | } |
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 | 161 | PaddedPODArray<UInt8>& c) { | 88 | 161 | size_t size = a.size(); | 89 | 161 | const A* __restrict a_pos = a.data(); | 90 | 161 | UInt8* __restrict c_pos = c.data(); | 91 | 161 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.68k | while (a_pos < a_end) { | 94 | 4.52k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.52k | ++a_pos; | 96 | 4.52k | ++c_pos; | 97 | 4.52k | } | 98 | 161 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 503 | PaddedPODArray<UInt8>& c) { | 88 | 503 | size_t size = a.size(); | 89 | 503 | const A* __restrict a_pos = a.data(); | 90 | 503 | UInt8* __restrict c_pos = c.data(); | 91 | 503 | 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 | 503 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 94 | PaddedPODArray<UInt8>& c) { | 88 | 94 | size_t size = a.size(); | 89 | 94 | const A* __restrict a_pos = a.data(); | 90 | 94 | UInt8* __restrict c_pos = c.data(); | 91 | 94 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 210 | while (a_pos < a_end) { | 94 | 116 | *c_pos = Op::apply(*a_pos, b); | 95 | 116 | ++a_pos; | 96 | 116 | ++c_pos; | 97 | 116 | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 373 | PaddedPODArray<UInt8>& c) { | 88 | 373 | size_t size = a.size(); | 89 | 373 | const A* __restrict a_pos = a.data(); | 90 | 373 | UInt8* __restrict c_pos = c.data(); | 91 | 373 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 45.5k | while (a_pos < a_end) { | 94 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 45.1k | ++a_pos; | 96 | 45.1k | ++c_pos; | 97 | 45.1k | } | 98 | 373 | } |
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.30k | PaddedPODArray<UInt8>& c) { | 88 | 1.30k | size_t size = a.size(); | 89 | 1.30k | const A* __restrict a_pos = a.data(); | 90 | 1.30k | UInt8* __restrict c_pos = c.data(); | 91 | 1.30k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.10k | while (a_pos < a_end) { | 94 | 5.79k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.79k | ++a_pos; | 96 | 5.79k | ++c_pos; | 97 | 5.79k | } | 98 | 1.30k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.01k | PaddedPODArray<UInt8>& c) { | 88 | 2.01k | size_t size = a.size(); | 89 | 2.01k | const A* __restrict a_pos = a.data(); | 90 | 2.01k | UInt8* __restrict c_pos = c.data(); | 91 | 2.01k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.78k | while (a_pos < a_end) { | 94 | 5.76k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.76k | ++a_pos; | 96 | 5.76k | ++c_pos; | 97 | 5.76k | } | 98 | 2.01k | } |
_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.45k | while (a_pos < a_end) { | 94 | 5.00k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.00k | ++a_pos; | 96 | 5.00k | ++c_pos; | 97 | 5.00k | } | 98 | 1.45k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 372 | PaddedPODArray<UInt8>& c) { | 88 | 372 | size_t size = a.size(); | 89 | 372 | const A* __restrict a_pos = a.data(); | 90 | 372 | UInt8* __restrict c_pos = c.data(); | 91 | 372 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.7k | while (a_pos < a_end) { | 94 | 13.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 13.3k | ++a_pos; | 96 | 13.3k | ++c_pos; | 97 | 13.3k | } | 98 | 372 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10.3k | PaddedPODArray<UInt8>& c) { | 88 | 10.3k | size_t size = a.size(); | 89 | 10.3k | const A* __restrict a_pos = a.data(); | 90 | 10.3k | UInt8* __restrict c_pos = c.data(); | 91 | 10.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.35M | while (a_pos < a_end) { | 94 | 2.34M | *c_pos = Op::apply(*a_pos, b); | 95 | 2.34M | ++a_pos; | 96 | 2.34M | ++c_pos; | 97 | 2.34M | } | 98 | 10.3k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 65.5k | PaddedPODArray<UInt8>& c) { | 88 | 65.5k | size_t size = a.size(); | 89 | 65.5k | const A* __restrict a_pos = a.data(); | 90 | 65.5k | UInt8* __restrict c_pos = c.data(); | 91 | 65.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.76M | while (a_pos < a_end) { | 94 | 9.69M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.69M | ++a_pos; | 96 | 9.69M | ++c_pos; | 97 | 9.69M | } | 98 | 65.5k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.2k | PaddedPODArray<UInt8>& c) { | 88 | 13.2k | size_t size = a.size(); | 89 | 13.2k | const A* __restrict a_pos = a.data(); | 90 | 13.2k | UInt8* __restrict c_pos = c.data(); | 91 | 13.2k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 169k | while (a_pos < a_end) { | 94 | 156k | *c_pos = Op::apply(*a_pos, b); | 95 | 156k | ++a_pos; | 96 | 156k | ++c_pos; | 97 | 156k | } | 98 | 13.2k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.90k | PaddedPODArray<UInt8>& c) { | 88 | 1.90k | size_t size = a.size(); | 89 | 1.90k | const A* __restrict a_pos = a.data(); | 90 | 1.90k | UInt8* __restrict c_pos = c.data(); | 91 | 1.90k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 14.1k | while (a_pos < a_end) { | 94 | 12.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 12.2k | ++a_pos; | 96 | 12.2k | ++c_pos; | 97 | 12.2k | } | 98 | 1.90k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 253 | PaddedPODArray<UInt8>& c) { | 88 | 253 | size_t size = a.size(); | 89 | 253 | const A* __restrict a_pos = a.data(); | 90 | 253 | UInt8* __restrict c_pos = c.data(); | 91 | 253 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.87k | while (a_pos < a_end) { | 94 | 1.62k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.62k | ++a_pos; | 96 | 1.62k | ++c_pos; | 97 | 1.62k | } | 98 | 253 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 100 | PaddedPODArray<UInt8>& c) { | 88 | 100 | size_t size = a.size(); | 89 | 100 | const A* __restrict a_pos = a.data(); | 90 | 100 | UInt8* __restrict c_pos = c.data(); | 91 | 100 | 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 | 100 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 216 | PaddedPODArray<UInt8>& c) { | 88 | 216 | size_t size = a.size(); | 89 | 216 | const A* __restrict a_pos = a.data(); | 90 | 216 | UInt8* __restrict c_pos = c.data(); | 91 | 216 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.44k | while (a_pos < a_end) { | 94 | 3.22k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.22k | ++a_pos; | 96 | 3.22k | ++c_pos; | 97 | 3.22k | } | 98 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 64 | while (a_pos < a_end) { | 94 | 38 | *c_pos = Op::apply(*a_pos, b); | 95 | 38 | ++a_pos; | 96 | 38 | ++c_pos; | 97 | 38 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.33k | PaddedPODArray<UInt8>& c) { | 88 | 2.33k | size_t size = a.size(); | 89 | 2.33k | const A* __restrict a_pos = a.data(); | 90 | 2.33k | UInt8* __restrict c_pos = c.data(); | 91 | 2.33k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 345k | while (a_pos < a_end) { | 94 | 343k | *c_pos = Op::apply(*a_pos, b); | 95 | 343k | ++a_pos; | 96 | 343k | ++c_pos; | 97 | 343k | } | 98 | 2.33k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_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 | 316k | while (a_pos < a_end) { | 94 | 316k | *c_pos = Op::apply(*a_pos, b); | 95 | 316k | ++a_pos; | 96 | 316k | ++c_pos; | 97 | 316k | } | 98 | 225 | } |
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 | 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 | 122k | while (a_pos < a_end) { | 94 | 122k | *c_pos = Op::apply(*a_pos, b); | 95 | 122k | ++a_pos; | 96 | 122k | ++c_pos; | 97 | 122k | } | 98 | 170 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 194 | PaddedPODArray<UInt8>& c) { | 88 | 194 | size_t size = a.size(); | 89 | 194 | const A* __restrict a_pos = a.data(); | 90 | 194 | UInt8* __restrict c_pos = c.data(); | 91 | 194 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 182k | while (a_pos < a_end) { | 94 | 182k | *c_pos = Op::apply(*a_pos, b); | 95 | 182k | ++a_pos; | 96 | 182k | ++c_pos; | 97 | 182k | } | 98 | 194 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2.25k | PaddedPODArray<UInt8>& c) { | 88 | 2.25k | size_t size = a.size(); | 89 | 2.25k | const A* __restrict a_pos = a.data(); | 90 | 2.25k | UInt8* __restrict c_pos = c.data(); | 91 | 2.25k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.66M | while (a_pos < a_end) { | 94 | 4.65M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.65M | ++a_pos; | 96 | 4.65M | ++c_pos; | 97 | 4.65M | } | 98 | 2.25k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 28.4k | PaddedPODArray<UInt8>& c) { | 88 | 28.4k | size_t size = a.size(); | 89 | 28.4k | const A* __restrict a_pos = a.data(); | 90 | 28.4k | UInt8* __restrict c_pos = c.data(); | 91 | 28.4k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 75.4M | while (a_pos < a_end) { | 94 | 75.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 75.3M | ++a_pos; | 96 | 75.3M | ++c_pos; | 97 | 75.3M | } | 98 | 28.4k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 720 | PaddedPODArray<UInt8>& c) { | 88 | 720 | size_t size = a.size(); | 89 | 720 | const A* __restrict a_pos = a.data(); | 90 | 720 | UInt8* __restrict c_pos = c.data(); | 91 | 720 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.8k | while (a_pos < a_end) { | 94 | 30.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.1k | ++a_pos; | 96 | 30.1k | ++c_pos; | 97 | 30.1k | } | 98 | 720 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 378 | PaddedPODArray<UInt8>& c) { | 88 | 378 | size_t size = a.size(); | 89 | 378 | const A* __restrict a_pos = a.data(); | 90 | 378 | UInt8* __restrict c_pos = c.data(); | 91 | 378 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.8k | while (a_pos < a_end) { | 94 | 15.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.4k | ++a_pos; | 96 | 15.4k | ++c_pos; | 97 | 15.4k | } | 98 | 378 | } |
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 | 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 | 43.2k | while (a_pos < a_end) { | 94 | 43.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 43.1k | ++a_pos; | 96 | 43.1k | ++c_pos; | 97 | 43.1k | } | 98 | 59 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 94 | PaddedPODArray<UInt8>& c) { | 88 | 94 | size_t size = a.size(); | 89 | 94 | const A* __restrict a_pos = a.data(); | 90 | 94 | UInt8* __restrict c_pos = c.data(); | 91 | 94 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 170k | while (a_pos < a_end) { | 94 | 170k | *c_pos = Op::apply(*a_pos, b); | 95 | 170k | ++a_pos; | 96 | 170k | ++c_pos; | 97 | 170k | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 73 | PaddedPODArray<UInt8>& c) { | 88 | 73 | size_t size = a.size(); | 89 | 73 | const A* __restrict a_pos = a.data(); | 90 | 73 | UInt8* __restrict c_pos = c.data(); | 91 | 73 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 123k | while (a_pos < a_end) { | 94 | 123k | *c_pos = Op::apply(*a_pos, b); | 95 | 123k | ++a_pos; | 96 | 123k | ++c_pos; | 97 | 123k | } | 98 | 73 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 96 | PaddedPODArray<UInt8>& c) { | 88 | 96 | size_t size = a.size(); | 89 | 96 | const A* __restrict a_pos = a.data(); | 90 | 96 | UInt8* __restrict c_pos = c.data(); | 91 | 96 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 114k | while (a_pos < a_end) { | 94 | 114k | *c_pos = Op::apply(*a_pos, b); | 95 | 114k | ++a_pos; | 96 | 114k | ++c_pos; | 97 | 114k | } | 98 | 96 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 37.7k | PaddedPODArray<UInt8>& c) { | 88 | 37.7k | size_t size = a.size(); | 89 | 37.7k | const A* __restrict a_pos = a.data(); | 90 | 37.7k | UInt8* __restrict c_pos = c.data(); | 91 | 37.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 29.2M | while (a_pos < a_end) { | 94 | 29.2M | *c_pos = Op::apply(*a_pos, b); | 95 | 29.2M | ++a_pos; | 96 | 29.2M | ++c_pos; | 97 | 29.2M | } | 98 | 37.7k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 45.1k | PaddedPODArray<UInt8>& c) { | 88 | 45.1k | size_t size = a.size(); | 89 | 45.1k | const A* __restrict a_pos = a.data(); | 90 | 45.1k | UInt8* __restrict c_pos = c.data(); | 91 | 45.1k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 33.1M | while (a_pos < a_end) { | 94 | 33.1M | *c_pos = Op::apply(*a_pos, b); | 95 | 33.1M | ++a_pos; | 96 | 33.1M | ++c_pos; | 97 | 33.1M | } | 98 | 45.1k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 564 | PaddedPODArray<UInt8>& c) { | 88 | 564 | size_t size = a.size(); | 89 | 564 | const A* __restrict a_pos = a.data(); | 90 | 564 | UInt8* __restrict c_pos = c.data(); | 91 | 564 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 34.4k | while (a_pos < a_end) { | 94 | 33.9k | *c_pos = Op::apply(*a_pos, b); | 95 | 33.9k | ++a_pos; | 96 | 33.9k | ++c_pos; | 97 | 33.9k | } | 98 | 564 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 739 | PaddedPODArray<UInt8>& c) { | 88 | 739 | size_t size = a.size(); | 89 | 739 | const A* __restrict a_pos = a.data(); | 90 | 739 | UInt8* __restrict c_pos = c.data(); | 91 | 739 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 40.3k | while (a_pos < a_end) { | 94 | 39.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 39.5k | ++a_pos; | 96 | 39.5k | ++c_pos; | 97 | 39.5k | } | 98 | 739 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 55 | PaddedPODArray<UInt8>& c) { | 88 | 55 | size_t size = a.size(); | 89 | 55 | const A* __restrict a_pos = a.data(); | 90 | 55 | UInt8* __restrict c_pos = c.data(); | 91 | 55 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 142k | while (a_pos < a_end) { | 94 | 142k | *c_pos = Op::apply(*a_pos, b); | 95 | 142k | ++a_pos; | 96 | 142k | ++c_pos; | 97 | 142k | } | 98 | 55 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_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 | 92.1k | while (a_pos < a_end) { | 94 | 92.0k | *c_pos = Op::apply(*a_pos, b); | 95 | 92.0k | ++a_pos; | 96 | 92.0k | ++c_pos; | 97 | 92.0k | } | 98 | 59 | } |
_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 | 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 | 342 | while (a_pos < a_end) { | 94 | 172 | *c_pos = Op::apply(*a_pos, b); | 95 | 172 | ++a_pos; | 96 | 172 | ++c_pos; | 97 | 172 | } | 98 | 170 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 166 | PaddedPODArray<UInt8>& c) { | 88 | 166 | size_t size = a.size(); | 89 | 166 | const A* __restrict a_pos = a.data(); | 90 | 166 | UInt8* __restrict c_pos = c.data(); | 91 | 166 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 332 | while (a_pos < a_end) { | 94 | 166 | *c_pos = Op::apply(*a_pos, b); | 95 | 166 | ++a_pos; | 96 | 166 | ++c_pos; | 97 | 166 | } | 98 | 166 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 128 | PaddedPODArray<UInt8>& c) { | 88 | 128 | size_t size = a.size(); | 89 | 128 | const A* __restrict a_pos = a.data(); | 90 | 128 | UInt8* __restrict c_pos = c.data(); | 91 | 128 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 356k | while (a_pos < a_end) { | 94 | 356k | *c_pos = Op::apply(*a_pos, b); | 95 | 356k | ++a_pos; | 96 | 356k | ++c_pos; | 97 | 356k | } | 98 | 128 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 124 | PaddedPODArray<UInt8>& c) { | 88 | 124 | size_t size = a.size(); | 89 | 124 | const A* __restrict a_pos = a.data(); | 90 | 124 | UInt8* __restrict c_pos = c.data(); | 91 | 124 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 276k | 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 | 124 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 65.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 65.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 65.5k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 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 | 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 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 336 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 336 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 336 | } |
_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 | 100 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 100 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 100 | } |
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 | 234 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 234 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 234 | } |
_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 | 62.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 62.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 62.5k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 511 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 511 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 511 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 50 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 50 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 50 | } |
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 | 193 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 193 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 193 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 67 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 67 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 67 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 52 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 52 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 52 | } |
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 | 564 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 564 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 564 | } |
_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 | 136 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 136 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 438k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 438k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 438k | } |
119 | 136 | } _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 | 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 | 190k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 190k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 190k | } | 119 | 42 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 57 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 57 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 247k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 247k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 247k | } | 119 | 57 | } |
|
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 | 629 | PaddedPODArray<UInt8>& c) { |
133 | 629 | size_t size = a_offsets.size(); |
134 | 629 | ColumnString::Offset prev_a_offset = 0; |
135 | 629 | ColumnString::Offset prev_b_offset = 0; |
136 | 629 | const auto* a_pos = a_data.data(); |
137 | 629 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.98k | for (size_t i = 0; i < size; ++i) { |
140 | 1.35k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.35k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.35k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.35k | 0); |
144 | | |
145 | 1.35k | prev_a_offset = a_offsets[i]; |
146 | 1.35k | prev_b_offset = b_offsets[i]; |
147 | 1.35k | } |
148 | 629 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 94 | PaddedPODArray<UInt8>& c) { | 133 | 94 | size_t size = a_offsets.size(); | 134 | 94 | ColumnString::Offset prev_a_offset = 0; | 135 | 94 | ColumnString::Offset prev_b_offset = 0; | 136 | 94 | const auto* a_pos = a_data.data(); | 137 | 94 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 346 | for (size_t i = 0; i < size; ++i) { | 140 | 252 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 252 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 252 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 252 | 0); | 144 | | | 145 | 252 | prev_a_offset = a_offsets[i]; | 146 | 252 | prev_b_offset = b_offsets[i]; | 147 | 252 | } | 148 | 94 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 395 | PaddedPODArray<UInt8>& c) { | 133 | 395 | size_t size = a_offsets.size(); | 134 | 395 | ColumnString::Offset prev_a_offset = 0; | 135 | 395 | ColumnString::Offset prev_b_offset = 0; | 136 | 395 | const auto* a_pos = a_data.data(); | 137 | 395 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.31k | for (size_t i = 0; i < size; ++i) { | 140 | 917 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 917 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 917 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 917 | 0); | 144 | | | 145 | 917 | prev_a_offset = a_offsets[i]; | 146 | 917 | prev_b_offset = b_offsets[i]; | 147 | 917 | } | 148 | 395 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 138 | PaddedPODArray<UInt8>& c) { | 133 | 138 | size_t size = a_offsets.size(); | 134 | 138 | ColumnString::Offset prev_a_offset = 0; | 135 | 138 | ColumnString::Offset prev_b_offset = 0; | 136 | 138 | const auto* a_pos = a_data.data(); | 137 | 138 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 276 | for (size_t i = 0; i < size; ++i) { | 140 | 138 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 138 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 138 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 138 | 0); | 144 | | | 145 | 138 | prev_a_offset = a_offsets[i]; | 146 | 138 | prev_b_offset = b_offsets[i]; | 147 | 138 | } | 148 | 138 | } |
|
149 | | |
150 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
151 | | const ColumnString::Offsets& a_offsets, |
152 | | const ColumnString::Chars& b_data, |
153 | | ColumnString::Offset b_size, |
154 | 1.87k | PaddedPODArray<UInt8>& c) { |
155 | 1.87k | size_t size = a_offsets.size(); |
156 | 1.87k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.87k | const auto* a_pos = a_data.data(); |
158 | 1.87k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.53M | for (size_t i = 0; i < size; ++i) { |
161 | 1.52M | c[i] = Op::apply( |
162 | 1.52M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.52M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.52M | 0); |
165 | | |
166 | 1.52M | prev_a_offset = a_offsets[i]; |
167 | 1.52M | } |
168 | 1.87k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 178 | PaddedPODArray<UInt8>& c) { | 155 | 178 | size_t size = a_offsets.size(); | 156 | 178 | ColumnString::Offset prev_a_offset = 0; | 157 | 178 | const auto* a_pos = a_data.data(); | 158 | 178 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 325k | for (size_t i = 0; i < size; ++i) { | 161 | 325k | c[i] = Op::apply( | 162 | 325k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 325k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 325k | 0); | 165 | | | 166 | 325k | prev_a_offset = a_offsets[i]; | 167 | 325k | } | 168 | 178 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 243 | PaddedPODArray<UInt8>& c) { | 155 | 243 | size_t size = a_offsets.size(); | 156 | 243 | ColumnString::Offset prev_a_offset = 0; | 157 | 243 | const auto* a_pos = a_data.data(); | 158 | 243 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 73.2k | for (size_t i = 0; i < size; ++i) { | 161 | 73.0k | c[i] = Op::apply( | 162 | 73.0k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 73.0k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 73.0k | 0); | 165 | | | 166 | 73.0k | prev_a_offset = a_offsets[i]; | 167 | 73.0k | } | 168 | 243 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 639 | PaddedPODArray<UInt8>& c) { | 155 | 639 | size_t size = a_offsets.size(); | 156 | 639 | ColumnString::Offset prev_a_offset = 0; | 157 | 639 | const auto* a_pos = a_data.data(); | 158 | 639 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 536k | for (size_t i = 0; i < size; ++i) { | 161 | 535k | c[i] = Op::apply( | 162 | 535k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 535k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 535k | 0); | 165 | | | 166 | 535k | prev_a_offset = a_offsets[i]; | 167 | 535k | } | 168 | 639 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 810 | PaddedPODArray<UInt8>& c) { | 155 | 810 | size_t size = a_offsets.size(); | 156 | 810 | ColumnString::Offset prev_a_offset = 0; | 157 | 810 | const auto* a_pos = a_data.data(); | 158 | 810 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 594k | for (size_t i = 0; i < size; ++i) { | 161 | 594k | c[i] = Op::apply( | 162 | 594k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 594k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 594k | 0); | 165 | | | 166 | 594k | prev_a_offset = a_offsets[i]; | 167 | 594k | } | 168 | 810 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 1.36k | PaddedPODArray<UInt8>& c) { |
187 | 1.36k | size_t size = a_offsets.size(); |
188 | 1.36k | ColumnString::Offset prev_a_offset = 0; |
189 | 1.36k | ColumnString::Offset prev_b_offset = 0; |
190 | 1.36k | const auto* a_pos = a_data.data(); |
191 | 1.36k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 3.20k | for (size_t i = 0; i < size; ++i) { |
194 | 1.83k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.83k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.83k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.83k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.83k | prev_a_offset = a_offsets[i]; |
201 | 1.83k | prev_b_offset = b_offsets[i]; |
202 | 1.83k | } |
203 | 1.36k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1.31k | PaddedPODArray<UInt8>& c) { | 187 | 1.31k | size_t size = a_offsets.size(); | 188 | 1.31k | ColumnString::Offset prev_a_offset = 0; | 189 | 1.31k | ColumnString::Offset prev_b_offset = 0; | 190 | 1.31k | const auto* a_pos = a_data.data(); | 191 | 1.31k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 3.09k | for (size_t i = 0; i < size; ++i) { | 194 | 1.77k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.77k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.77k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.77k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.77k | prev_a_offset = a_offsets[i]; | 201 | 1.77k | prev_b_offset = b_offsets[i]; | 202 | 1.77k | } | 203 | 1.31k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 52 | PaddedPODArray<UInt8>& c) { | 187 | 52 | size_t size = a_offsets.size(); | 188 | 52 | ColumnString::Offset prev_a_offset = 0; | 189 | 52 | ColumnString::Offset prev_b_offset = 0; | 190 | 52 | const auto* a_pos = a_data.data(); | 191 | 52 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 113 | for (size_t i = 0; i < size; ++i) { | 194 | 61 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 61 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 61 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 61 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 61 | prev_a_offset = a_offsets[i]; | 201 | 61 | prev_b_offset = b_offsets[i]; | 202 | 61 | } | 203 | 52 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 24.7k | PaddedPODArray<UInt8>& c) { |
210 | 24.7k | size_t size = a_offsets.size(); |
211 | 24.7k | if (b_size == 0) { |
212 | 2 | auto* __restrict data = c.data(); |
213 | 2 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 2 | ColumnString::Offset prev_a_offset = 0; |
216 | 10 | for (size_t i = 0; i < size; ++i) { |
217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 8 | prev_a_offset = offsets[i]; |
219 | 8 | } |
220 | 24.7k | } else { |
221 | 24.7k | ColumnString::Offset prev_a_offset = 0; |
222 | 24.7k | const auto* a_pos = a_data.data(); |
223 | 24.7k | const auto* b_pos = b_data.data(); |
224 | 12.5M | for (size_t i = 0; i < size; ++i) { |
225 | 12.5M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 12.5M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 12.5M | b_pos, b_size); |
228 | 12.5M | prev_a_offset = a_offsets[i]; |
229 | 12.5M | } |
230 | 24.7k | } |
231 | 24.7k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 22.3k | PaddedPODArray<UInt8>& c) { | 210 | 22.3k | size_t size = a_offsets.size(); | 211 | 22.3k | 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 | 22.3k | } else { | 221 | 22.3k | ColumnString::Offset prev_a_offset = 0; | 222 | 22.3k | const auto* a_pos = a_data.data(); | 223 | 22.3k | const auto* b_pos = b_data.data(); | 224 | 8.65M | for (size_t i = 0; i < size; ++i) { | 225 | 8.63M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.63M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.63M | b_pos, b_size); | 228 | 8.63M | prev_a_offset = a_offsets[i]; | 229 | 8.63M | } | 230 | 22.3k | } | 231 | 22.3k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 2.42k | PaddedPODArray<UInt8>& c) { | 210 | 2.42k | size_t size = a_offsets.size(); | 211 | 2.42k | if (b_size == 0) { | 212 | 2 | auto* __restrict data = c.data(); | 213 | 2 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 2 | ColumnString::Offset prev_a_offset = 0; | 216 | 10 | for (size_t i = 0; i < size; ++i) { | 217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 8 | prev_a_offset = offsets[i]; | 219 | 8 | } | 220 | 2.42k | } else { | 221 | 2.42k | ColumnString::Offset prev_a_offset = 0; | 222 | 2.42k | const auto* a_pos = a_data.data(); | 223 | 2.42k | const auto* b_pos = b_data.data(); | 224 | 3.89M | for (size_t i = 0; i < size; ++i) { | 225 | 3.89M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.89M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.89M | b_pos, b_size); | 228 | 3.89M | prev_a_offset = a_offsets[i]; | 229 | 3.89M | } | 230 | 2.42k | } | 231 | 2.42k | } |
|
232 | | |
233 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
234 | | ColumnString::Offset a_size, |
235 | | const ColumnString::Chars& b_data, |
236 | | const ColumnString::Offsets& b_offsets, |
237 | 0 | PaddedPODArray<UInt8>& c) { |
238 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
240 | | }; |
241 | | |
242 | | template <PrimitiveType PT> |
243 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
244 | | |
245 | | template <PrimitiveType PT> |
246 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
247 | | |
248 | | struct NameEquals { |
249 | | static constexpr auto name = "eq"; |
250 | | }; |
251 | | struct NameNotEquals { |
252 | | static constexpr auto name = "ne"; |
253 | | }; |
254 | | struct NameLess { |
255 | | static constexpr auto name = "lt"; |
256 | | }; |
257 | | struct NameGreater { |
258 | | static constexpr auto name = "gt"; |
259 | | }; |
260 | | struct NameLessOrEquals { |
261 | | static constexpr auto name = "le"; |
262 | | }; |
263 | | struct NameGreaterOrEquals { |
264 | | static constexpr auto name = "ge"; |
265 | | }; |
266 | | |
267 | | namespace comparison_zonemap_detail { |
268 | | enum class Op { |
269 | | EQ, |
270 | | NE, |
271 | | LT, |
272 | | LE, |
273 | | GT, |
274 | | GE, |
275 | | }; |
276 | | |
277 | 4 | inline Op symmetric_op(Op op) { |
278 | 4 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 2 | case Op::LT: |
283 | 2 | return Op::GT; |
284 | 0 | case Op::LE: |
285 | 0 | return Op::GE; |
286 | 0 | case Op::GT: |
287 | 0 | return Op::LT; |
288 | 2 | case Op::GE: |
289 | 2 | return Op::LE; |
290 | 4 | } |
291 | 0 | __builtin_unreachable(); |
292 | 4 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 36.7k | Op op) { |
296 | 36.7k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 36.7k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 36.7k | slot_literal->slot_type); |
300 | 36.7k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 36.7k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 36.7k | if (zone_map_ptr == nullptr) { |
305 | 922 | return unsupported_zonemap_filter(ctx); |
306 | 922 | } |
307 | 35.8k | const auto& zone_map = *zone_map_ptr; |
308 | 35.8k | if (!zone_map.has_not_null) { |
309 | 214 | return ZoneMapFilterResult::kNoMatch; |
310 | 214 | } |
311 | 35.6k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 99 | return unsupported_zonemap_filter(ctx); |
313 | 99 | } |
314 | | |
315 | 35.5k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 35.5k | const auto& literal = slot_literal->literal; |
317 | 35.5k | switch (effective_op) { |
318 | 9.25k | case Op::EQ: |
319 | 9.25k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 9.25k | ? ZoneMapFilterResult::kNoMatch |
321 | 9.25k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.11k | case Op::NE: |
323 | 1.11k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.11k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.11k | : ZoneMapFilterResult::kMayMatch; |
326 | 2.97k | case Op::LT: |
327 | 2.97k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 2.97k | : ZoneMapFilterResult::kMayMatch; |
329 | 9.97k | case Op::LE: |
330 | 9.97k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 9.97k | : ZoneMapFilterResult::kMayMatch; |
332 | 5.08k | case Op::GT: |
333 | 5.08k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 5.08k | : ZoneMapFilterResult::kMayMatch; |
335 | 7.19k | case Op::GE: |
336 | 7.19k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 7.19k | : ZoneMapFilterResult::kMayMatch; |
338 | 35.5k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 35.5k | } |
343 | | |
344 | 172k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 172k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 172k | if (!slot_literal.has_value()) { |
347 | 43.6k | return false; |
348 | 43.6k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 129k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 129k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 129k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 129k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 13 | return false; |
364 | 13 | } |
365 | | |
366 | 129k | return true; |
367 | 129k | } |
368 | | |
369 | 65.5k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 65.5k | return op == Op::EQ && can_evaluate(arguments); |
371 | 65.5k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 40.9k | const VExprSPtrs& arguments, Op op) { |
375 | 40.9k | DORIS_CHECK(op == Op::EQ); |
376 | 40.9k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 40.9k | DORIS_CHECK(slot_literal.has_value()); |
378 | 40.9k | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 40.9k | } |
380 | | |
381 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
382 | 14 | const VExprSPtrs& arguments, Op op) { |
383 | 14 | DORIS_CHECK(op == Op::EQ); |
384 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 14 | DORIS_CHECK(slot_literal.has_value()); |
386 | 14 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
387 | 14 | } |
388 | | |
389 | 260k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 260k | if (name == NameEquals::name) { |
391 | 151k | return Op::EQ; |
392 | 151k | } |
393 | 109k | if (name == NameNotEquals::name) { |
394 | 7.83k | return Op::NE; |
395 | 7.83k | } |
396 | 101k | if (name == NameLess::name) { |
397 | 14.4k | return Op::LT; |
398 | 14.4k | } |
399 | 86.9k | if (name == NameLessOrEquals::name) { |
400 | 33.0k | return Op::LE; |
401 | 33.0k | } |
402 | 53.8k | if (name == NameGreater::name) { |
403 | 27.0k | return Op::GT; |
404 | 27.0k | } |
405 | 27.0k | if (name == NameGreaterOrEquals::name) { |
406 | 27.0k | return Op::GE; |
407 | 27.0k | } |
408 | 18.4E | return std::nullopt; |
409 | 26.8k | } |
410 | | } // namespace comparison_zonemap_detail |
411 | | |
412 | | template <template <PrimitiveType> class Op, typename Name> |
413 | | class FunctionComparison : public IFunction { |
414 | | public: |
415 | | static constexpr auto name = Name::name; |
416 | 519k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 466k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 2.72k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 9.02k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 13.8k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 4.46k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 22.3k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 519k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 467k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 2.73k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 9.03k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 13.8k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 4.46k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 22.3k | FunctionComparison() = default; |
|
419 | | |
420 | 1.26M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 1.24M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 657 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 3.08k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 12.4k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 420 | 1.73k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 420 | 8.44k | double execute_cost() const override { return 0.5; } |
|
421 | | |
422 | | private: |
423 | | template <PrimitiveType PT> |
424 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
425 | 266k | const ColumnPtr& col_right_ptr) const { |
426 | 266k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 266k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 266k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 266k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 266k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 266k | if (!left_is_const && !right_is_const) { |
435 | 11.5k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 11.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 11.5k | vec_res.resize(col_left->get_data().size()); |
439 | 11.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 11.5k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 11.5k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 11.5k | vec_res); |
443 | | |
444 | 11.5k | block.replace_by_position(result, std::move(col_res)); |
445 | 255k | } else if (!left_is_const && right_is_const) { |
446 | 189k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 189k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 189k | vec_res.resize(col_left->size()); |
450 | 189k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 189k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 189k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 189k | col_right->get_element(0), vec_res); |
454 | | |
455 | 189k | block.replace_by_position(result, std::move(col_res)); |
456 | 189k | } else if (left_is_const && !right_is_const) { |
457 | 65.5k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 65.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 65.5k | vec_res.resize(col_right->size()); |
461 | 65.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 65.5k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 65.5k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 65.5k | col_right->get_data(), vec_res); |
465 | | |
466 | 65.5k | block.replace_by_position(result, std::move(col_res)); |
467 | 65.5k | } |
468 | 266k | return Status::OK(); |
469 | 266k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.61k | const ColumnPtr& col_right_ptr) const { | 426 | 1.61k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.61k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.61k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.61k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.61k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.61k | if (!left_is_const && !right_is_const) { | 435 | 73 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 73 | vec_res.resize(col_left->get_data().size()); | 439 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 73 | vec_res); | 443 | | | 444 | 73 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.53k | } else if (!left_is_const && right_is_const) { | 446 | 1.53k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.53k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.53k | vec_res.resize(col_left->size()); | 450 | 1.53k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.53k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.53k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.53k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.53k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.53k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.61k | return Status::OK(); | 469 | 1.61k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.68k | const ColumnPtr& col_right_ptr) const { | 426 | 1.68k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.68k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.68k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.68k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.68k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.68k | if (!left_is_const && !right_is_const) { | 435 | 671 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 671 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 671 | vec_res.resize(col_left->get_data().size()); | 439 | 671 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 671 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 671 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 671 | vec_res); | 443 | | | 444 | 671 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.01k | } else if (!left_is_const && right_is_const) { | 446 | 1.01k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.01k | vec_res.resize(col_left->size()); | 450 | 1.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.01k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.01k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.01k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.01k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.01k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.68k | return Status::OK(); | 469 | 1.68k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 644 | const ColumnPtr& col_right_ptr) const { | 426 | 644 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 644 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 644 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 644 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 644 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 644 | if (!left_is_const && !right_is_const) { | 435 | 339 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 339 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 339 | vec_res.resize(col_left->get_data().size()); | 439 | 339 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 339 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 339 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 339 | vec_res); | 443 | | | 444 | 339 | block.replace_by_position(result, std::move(col_res)); | 445 | 339 | } else if (!left_is_const && right_is_const) { | 446 | 305 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 305 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 305 | vec_res.resize(col_left->size()); | 450 | 305 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 305 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 305 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 305 | col_right->get_element(0), vec_res); | 454 | | | 455 | 305 | block.replace_by_position(result, std::move(col_res)); | 456 | 305 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 644 | return Status::OK(); | 469 | 644 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 5.39k | const ColumnPtr& col_right_ptr) const { | 426 | 5.39k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 5.39k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 5.39k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 5.39k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 5.39k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 5.39k | if (!left_is_const && !right_is_const) { | 435 | 133 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 133 | vec_res.resize(col_left->get_data().size()); | 439 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 133 | vec_res); | 443 | | | 444 | 133 | block.replace_by_position(result, std::move(col_res)); | 445 | 5.26k | } else if (!left_is_const && right_is_const) { | 446 | 4.98k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 4.98k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 4.98k | vec_res.resize(col_left->size()); | 450 | 4.98k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 4.98k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 4.98k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 4.98k | col_right->get_element(0), vec_res); | 454 | | | 455 | 4.98k | block.replace_by_position(result, std::move(col_res)); | 456 | 4.98k | } else if (left_is_const && !right_is_const) { | 457 | 276 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 276 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 276 | vec_res.resize(col_right->size()); | 461 | 276 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 276 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 276 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 276 | col_right->get_data(), vec_res); | 465 | | | 466 | 276 | block.replace_by_position(result, std::move(col_res)); | 467 | 276 | } | 468 | 5.39k | return Status::OK(); | 469 | 5.39k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 753 | const ColumnPtr& col_right_ptr) const { | 426 | 753 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 753 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 753 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 753 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 753 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 753 | if (!left_is_const && !right_is_const) { | 435 | 62 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 62 | vec_res.resize(col_left->get_data().size()); | 439 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 62 | vec_res); | 443 | | | 444 | 62 | block.replace_by_position(result, std::move(col_res)); | 445 | 691 | } else if (!left_is_const && right_is_const) { | 446 | 655 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 655 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 655 | vec_res.resize(col_left->size()); | 450 | 655 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 655 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 655 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 655 | col_right->get_element(0), vec_res); | 454 | | | 455 | 655 | block.replace_by_position(result, std::move(col_res)); | 456 | 655 | } else if (left_is_const && !right_is_const) { | 457 | 36 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 36 | vec_res.resize(col_right->size()); | 461 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 36 | col_right->get_data(), vec_res); | 465 | | | 466 | 36 | block.replace_by_position(result, std::move(col_res)); | 467 | 36 | } | 468 | 753 | return Status::OK(); | 469 | 753 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 8.21k | const ColumnPtr& col_right_ptr) const { | 426 | 8.21k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 8.21k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 8.21k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 8.21k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 8.21k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 8.21k | if (!left_is_const && !right_is_const) { | 435 | 1.01k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.01k | vec_res.resize(col_left->get_data().size()); | 439 | 1.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.01k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.01k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.01k | vec_res); | 443 | | | 444 | 1.01k | block.replace_by_position(result, std::move(col_res)); | 445 | 7.20k | } else if (!left_is_const && right_is_const) { | 446 | 7.13k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 7.13k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 7.13k | vec_res.resize(col_left->size()); | 450 | 7.13k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 7.13k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 7.13k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 7.13k | col_right->get_element(0), vec_res); | 454 | | | 455 | 7.13k | block.replace_by_position(result, std::move(col_res)); | 456 | 7.13k | } else if (left_is_const && !right_is_const) { | 457 | 79 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 79 | vec_res.resize(col_right->size()); | 461 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 79 | col_right->get_data(), vec_res); | 465 | | | 466 | 79 | block.replace_by_position(result, std::move(col_res)); | 467 | 79 | } | 468 | 8.21k | return Status::OK(); | 469 | 8.21k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 17.3k | const ColumnPtr& col_right_ptr) const { | 426 | 17.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 17.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 17.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 17.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 17.3k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 17.3k | if (!left_is_const && !right_is_const) { | 435 | 259 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 259 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 259 | vec_res.resize(col_left->get_data().size()); | 439 | 259 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 259 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 259 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 259 | vec_res); | 443 | | | 444 | 259 | block.replace_by_position(result, std::move(col_res)); | 445 | 17.1k | } else if (!left_is_const && right_is_const) { | 446 | 16.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 16.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 16.7k | vec_res.resize(col_left->size()); | 450 | 16.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 16.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 16.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 16.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 16.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 16.7k | } else if (left_is_const && !right_is_const) { | 457 | 336 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 336 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 336 | vec_res.resize(col_right->size()); | 461 | 336 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 336 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 336 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 336 | col_right->get_data(), vec_res); | 465 | | | 466 | 336 | block.replace_by_position(result, std::move(col_res)); | 467 | 336 | } | 468 | 17.3k | return Status::OK(); | 469 | 17.3k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 135 | const ColumnPtr& col_right_ptr) const { | 426 | 135 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 135 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 135 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 135 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 135 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 135 | if (!left_is_const && !right_is_const) { | 435 | 62 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 62 | vec_res.resize(col_left->get_data().size()); | 439 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 62 | vec_res); | 443 | | | 444 | 62 | block.replace_by_position(result, std::move(col_res)); | 445 | 73 | } else if (!left_is_const && right_is_const) { | 446 | 57 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 57 | vec_res.resize(col_left->size()); | 450 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 57 | col_right->get_element(0), vec_res); | 454 | | | 455 | 57 | block.replace_by_position(result, std::move(col_res)); | 456 | 57 | } else if (left_is_const && !right_is_const) { | 457 | 16 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 16 | vec_res.resize(col_right->size()); | 461 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 16 | col_right->get_data(), vec_res); | 465 | | | 466 | 16 | block.replace_by_position(result, std::move(col_res)); | 467 | 16 | } | 468 | 135 | return Status::OK(); | 469 | 135 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 5 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 5 | vec_res.resize(col_left->get_data().size()); | 439 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 5 | vec_res); | 443 | | | 444 | 5 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 13 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13 | vec_res.resize(col_left->size()); | 450 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13 | col_right->get_element(0), vec_res); | 454 | | | 455 | 13 | block.replace_by_position(result, std::move(col_res)); | 456 | 13 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 19 | const ColumnPtr& col_right_ptr) const { | 426 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 19 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 19 | if (!left_is_const && !right_is_const) { | 435 | 13 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 13 | vec_res.resize(col_left->get_data().size()); | 439 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 13 | vec_res); | 443 | | | 444 | 13 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 6 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6 | vec_res.resize(col_left->size()); | 450 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6 | col_right->get_element(0), vec_res); | 454 | | | 455 | 6 | block.replace_by_position(result, std::move(col_res)); | 456 | 6 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 19 | return Status::OK(); | 469 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 86 | const ColumnPtr& col_right_ptr) const { | 426 | 86 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 86 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 86 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 86 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 86 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 86 | if (!left_is_const && !right_is_const) { | 435 | 82 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 82 | vec_res.resize(col_left->get_data().size()); | 439 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 82 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 82 | vec_res); | 443 | | | 444 | 82 | block.replace_by_position(result, std::move(col_res)); | 445 | 82 | } else if (!left_is_const && right_is_const) { | 446 | 4 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 4 | vec_res.resize(col_left->size()); | 450 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 4 | col_right->get_element(0), vec_res); | 454 | | | 455 | 4 | block.replace_by_position(result, std::move(col_res)); | 456 | 4 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 86 | return Status::OK(); | 469 | 86 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 899 | const ColumnPtr& col_right_ptr) const { | 426 | 899 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 899 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 899 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 899 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 899 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 899 | if (!left_is_const && !right_is_const) { | 435 | 83 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 83 | vec_res.resize(col_left->get_data().size()); | 439 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 83 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 83 | vec_res); | 443 | | | 444 | 83 | block.replace_by_position(result, std::move(col_res)); | 445 | 816 | } else if (!left_is_const && right_is_const) { | 446 | 816 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 816 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 816 | vec_res.resize(col_left->size()); | 450 | 816 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 816 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 816 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 816 | col_right->get_element(0), vec_res); | 454 | | | 455 | 816 | block.replace_by_position(result, std::move(col_res)); | 456 | 816 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 899 | return Status::OK(); | 469 | 899 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 82 | const ColumnPtr& col_right_ptr) const { | 426 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 82 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 82 | if (!left_is_const && !right_is_const) { | 435 | 47 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 47 | vec_res.resize(col_left->get_data().size()); | 439 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 47 | vec_res); | 443 | | | 444 | 47 | block.replace_by_position(result, std::move(col_res)); | 445 | 47 | } else if (!left_is_const && right_is_const) { | 446 | 35 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 35 | vec_res.resize(col_left->size()); | 450 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 35 | col_right->get_element(0), vec_res); | 454 | | | 455 | 35 | block.replace_by_position(result, std::move(col_res)); | 456 | 35 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 82 | return Status::OK(); | 469 | 82 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 100 | const ColumnPtr& col_right_ptr) const { | 426 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 100 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 100 | if (!left_is_const && !right_is_const) { | 435 | 56 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 56 | vec_res.resize(col_left->get_data().size()); | 439 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 56 | vec_res); | 443 | | | 444 | 56 | block.replace_by_position(result, std::move(col_res)); | 445 | 56 | } else if (!left_is_const && right_is_const) { | 446 | 44 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 44 | vec_res.resize(col_left->size()); | 450 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 44 | col_right->get_element(0), vec_res); | 454 | | | 455 | 44 | block.replace_by_position(result, std::move(col_res)); | 456 | 44 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 100 | return Status::OK(); | 469 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 10 | const ColumnPtr& col_right_ptr) const { | 426 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 10 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 10 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 10 | return Status::OK(); | 469 | 10 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3.62k | const ColumnPtr& col_right_ptr) const { | 426 | 3.62k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3.62k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3.62k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3.62k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3.62k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3.62k | if (!left_is_const && !right_is_const) { | 435 | 2.41k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2.41k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2.41k | vec_res.resize(col_left->get_data().size()); | 439 | 2.41k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2.41k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2.41k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2.41k | vec_res); | 443 | | | 444 | 2.41k | block.replace_by_position(result, std::move(col_res)); | 445 | 2.41k | } else if (!left_is_const && right_is_const) { | 446 | 1.20k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.20k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.20k | vec_res.resize(col_left->size()); | 450 | 1.20k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.20k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.20k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.20k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.20k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.20k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3.62k | return Status::OK(); | 469 | 3.62k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.38k | const ColumnPtr& col_right_ptr) const { | 426 | 2.38k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.38k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.38k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.38k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.38k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.38k | if (!left_is_const && !right_is_const) { | 435 | 315 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 315 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 315 | vec_res.resize(col_left->get_data().size()); | 439 | 315 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 315 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 315 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 315 | vec_res); | 443 | | | 444 | 315 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.06k | } else if (!left_is_const && right_is_const) { | 446 | 1.96k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.96k | vec_res.resize(col_left->size()); | 450 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.96k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.96k | } else if (left_is_const && !right_is_const) { | 457 | 100 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 100 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 100 | vec_res.resize(col_right->size()); | 461 | 100 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 100 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 100 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 100 | col_right->get_data(), vec_res); | 465 | | | 466 | 100 | block.replace_by_position(result, std::move(col_res)); | 467 | 100 | } | 468 | 2.38k | return Status::OK(); | 469 | 2.38k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 48 | const ColumnPtr& col_right_ptr) const { | 426 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 48 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 48 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 28 | } else if (!left_is_const && right_is_const) { | 446 | 28 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28 | vec_res.resize(col_left->size()); | 450 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28 | col_right->get_element(0), vec_res); | 454 | | | 455 | 28 | block.replace_by_position(result, std::move(col_res)); | 456 | 28 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 48 | return Status::OK(); | 469 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60 | const ColumnPtr& col_right_ptr) const { | 426 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 40 | } else if (!left_is_const && right_is_const) { | 446 | 40 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 40 | vec_res.resize(col_left->size()); | 450 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 40 | col_right->get_element(0), vec_res); | 454 | | | 455 | 40 | block.replace_by_position(result, std::move(col_res)); | 456 | 40 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 60 | return Status::OK(); | 469 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.30k | const ColumnPtr& col_right_ptr) const { | 426 | 1.30k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.30k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.30k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.30k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.30k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.30k | if (!left_is_const && !right_is_const) { | 435 | 1.14k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.14k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.14k | vec_res.resize(col_left->get_data().size()); | 439 | 1.14k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.14k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.14k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.14k | vec_res); | 443 | | | 444 | 1.14k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.14k | } else if (!left_is_const && right_is_const) { | 446 | 161 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 161 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 161 | vec_res.resize(col_left->size()); | 450 | 161 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 161 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 161 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 161 | col_right->get_element(0), vec_res); | 454 | | | 455 | 161 | block.replace_by_position(result, std::move(col_res)); | 456 | 161 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.30k | return Status::OK(); | 469 | 1.30k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 94 | const ColumnPtr& col_right_ptr) const { | 426 | 94 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 94 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 94 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 94 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 94 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 94 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 94 | } else if (!left_is_const && right_is_const) { | 446 | 94 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 94 | vec_res.resize(col_left->size()); | 450 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 94 | col_right->get_element(0), vec_res); | 454 | | | 455 | 94 | block.replace_by_position(result, std::move(col_res)); | 456 | 94 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 94 | return Status::OK(); | 469 | 94 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.33k | const ColumnPtr& col_right_ptr) const { | 426 | 1.33k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.33k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.33k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.33k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.33k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.33k | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.29k | } else if (!left_is_const && right_is_const) { | 446 | 1.06k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.06k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.06k | vec_res.resize(col_left->size()); | 450 | 1.06k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.06k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.06k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.06k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.06k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.06k | } else if (left_is_const && !right_is_const) { | 457 | 234 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 234 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 234 | vec_res.resize(col_right->size()); | 461 | 234 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 234 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 234 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 234 | col_right->get_data(), vec_res); | 465 | | | 466 | 234 | block.replace_by_position(result, std::move(col_res)); | 467 | 234 | } | 468 | 1.33k | return Status::OK(); | 469 | 1.33k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.79k | const ColumnPtr& col_right_ptr) const { | 426 | 1.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.79k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.79k | if (!left_is_const && !right_is_const) { | 435 | 112 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 112 | vec_res.resize(col_left->get_data().size()); | 439 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 112 | vec_res); | 443 | | | 444 | 112 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.67k | } else if (!left_is_const && right_is_const) { | 446 | 1.45k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.45k | vec_res.resize(col_left->size()); | 450 | 1.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.45k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.45k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.45k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.45k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.45k | } else if (left_is_const && !right_is_const) { | 457 | 228 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 228 | vec_res.resize(col_right->size()); | 461 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 228 | col_right->get_data(), vec_res); | 465 | | | 466 | 228 | block.replace_by_position(result, std::move(col_res)); | 467 | 228 | } | 468 | 1.79k | return Status::OK(); | 469 | 1.79k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 72.7k | const ColumnPtr& col_right_ptr) const { | 426 | 72.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 72.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 72.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 72.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 72.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 72.7k | if (!left_is_const && !right_is_const) { | 435 | 79 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 79 | vec_res.resize(col_left->get_data().size()); | 439 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 79 | vec_res); | 443 | | | 444 | 79 | block.replace_by_position(result, std::move(col_res)); | 445 | 72.7k | } else if (!left_is_const && right_is_const) { | 446 | 10.1k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10.1k | vec_res.resize(col_left->size()); | 450 | 10.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10.1k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10.1k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10.1k | col_right->get_element(0), vec_res); | 454 | | | 455 | 10.1k | block.replace_by_position(result, std::move(col_res)); | 456 | 62.5k | } else if (left_is_const && !right_is_const) { | 457 | 62.5k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 62.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 62.5k | vec_res.resize(col_right->size()); | 461 | 62.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 62.5k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 62.5k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 62.5k | col_right->get_data(), vec_res); | 465 | | | 466 | 62.5k | block.replace_by_position(result, std::move(col_res)); | 467 | 62.5k | } | 468 | 72.7k | return Status::OK(); | 469 | 72.7k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13.7k | const ColumnPtr& col_right_ptr) const { | 426 | 13.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13.7k | if (!left_is_const && !right_is_const) { | 435 | 63 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 63 | vec_res.resize(col_left->get_data().size()); | 439 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 63 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 63 | vec_res); | 443 | | | 444 | 63 | block.replace_by_position(result, std::move(col_res)); | 445 | 13.7k | } else if (!left_is_const && right_is_const) { | 446 | 13.2k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13.2k | vec_res.resize(col_left->size()); | 450 | 13.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13.2k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13.2k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13.2k | col_right->get_element(0), vec_res); | 454 | | | 455 | 13.2k | block.replace_by_position(result, std::move(col_res)); | 456 | 13.2k | } else if (left_is_const && !right_is_const) { | 457 | 511 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 511 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 511 | vec_res.resize(col_right->size()); | 461 | 511 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 511 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 511 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 511 | col_right->get_data(), vec_res); | 465 | | | 466 | 511 | block.replace_by_position(result, std::move(col_res)); | 467 | 511 | } | 468 | 13.7k | return Status::OK(); | 469 | 13.7k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 253 | const ColumnPtr& col_right_ptr) const { | 426 | 253 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 253 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 253 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 253 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 253 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 253 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 251 | } else if (!left_is_const && right_is_const) { | 446 | 201 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 201 | vec_res.resize(col_left->size()); | 450 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 201 | col_right->get_element(0), vec_res); | 454 | | | 455 | 201 | block.replace_by_position(result, std::move(col_res)); | 456 | 201 | } else if (left_is_const && !right_is_const) { | 457 | 50 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 50 | vec_res.resize(col_right->size()); | 461 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 50 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 50 | col_right->get_data(), vec_res); | 465 | | | 466 | 50 | block.replace_by_position(result, std::move(col_res)); | 467 | 50 | } | 468 | 253 | return Status::OK(); | 469 | 253 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 3 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3 | vec_res.resize(col_left->size()); | 450 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3 | col_right->get_element(0), vec_res); | 454 | | | 455 | 3 | block.replace_by_position(result, std::move(col_res)); | 456 | 3 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 236 | const ColumnPtr& col_right_ptr) const { | 426 | 236 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 236 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 236 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 236 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 236 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 236 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 216 | } else if (!left_is_const && right_is_const) { | 446 | 216 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 216 | vec_res.resize(col_left->size()); | 450 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 216 | col_right->get_element(0), vec_res); | 454 | | | 455 | 216 | block.replace_by_position(result, std::move(col_res)); | 456 | 216 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 236 | return Status::OK(); | 469 | 236 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.36k | const ColumnPtr& col_right_ptr) const { | 426 | 2.36k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.36k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.36k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.36k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.36k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.36k | if (!left_is_const && !right_is_const) { | 435 | 26 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 26 | vec_res.resize(col_left->get_data().size()); | 439 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 26 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 26 | vec_res); | 443 | | | 444 | 26 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.33k | } else if (!left_is_const && right_is_const) { | 446 | 2.33k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.33k | vec_res.resize(col_left->size()); | 450 | 2.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.33k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.33k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.33k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.33k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.33k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.36k | return Status::OK(); | 469 | 2.36k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 182 | const ColumnPtr& col_right_ptr) const { | 426 | 182 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 182 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 182 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 182 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 182 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 182 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 170 | } else if (!left_is_const && right_is_const) { | 446 | 170 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 170 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 170 | vec_res.resize(col_left->size()); | 450 | 170 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 170 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 170 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 170 | col_right->get_element(0), vec_res); | 454 | | | 455 | 170 | block.replace_by_position(result, std::move(col_res)); | 456 | 170 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 182 | return Status::OK(); | 469 | 182 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.29k | const ColumnPtr& col_right_ptr) const { | 426 | 2.29k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.29k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.29k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.29k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.29k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.29k | if (!left_is_const && !right_is_const) { | 435 | 31 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 31 | vec_res.resize(col_left->get_data().size()); | 439 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 31 | vec_res); | 443 | | | 444 | 31 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.26k | } else if (!left_is_const && right_is_const) { | 446 | 2.25k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.25k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.25k | vec_res.resize(col_left->size()); | 450 | 2.25k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.25k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.25k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.25k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.25k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.25k | } else if (left_is_const && !right_is_const) { | 457 | 6 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 6 | vec_res.resize(col_right->size()); | 461 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 6 | col_right->get_data(), vec_res); | 465 | | | 466 | 6 | block.replace_by_position(result, std::move(col_res)); | 467 | 6 | } | 468 | 2.29k | return Status::OK(); | 469 | 2.29k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 786 | const ColumnPtr& col_right_ptr) const { | 426 | 786 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 786 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 786 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 786 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 786 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 786 | if (!left_is_const && !right_is_const) { | 435 | 66 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 66 | vec_res.resize(col_left->get_data().size()); | 439 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 66 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 66 | vec_res); | 443 | | | 444 | 66 | block.replace_by_position(result, std::move(col_res)); | 445 | 720 | } else if (!left_is_const && right_is_const) { | 446 | 720 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 720 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 720 | vec_res.resize(col_left->size()); | 450 | 720 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 720 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 720 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 720 | col_right->get_element(0), vec_res); | 454 | | | 455 | 720 | block.replace_by_position(result, std::move(col_res)); | 456 | 720 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 786 | return Status::OK(); | 469 | 786 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 59 | const ColumnPtr& col_right_ptr) const { | 426 | 59 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 59 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 59 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 59 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 59 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 59 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 59 | } else if (!left_is_const && right_is_const) { | 446 | 59 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 59 | vec_res.resize(col_left->size()); | 450 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 59 | col_right->get_element(0), vec_res); | 454 | | | 455 | 59 | block.replace_by_position(result, std::move(col_res)); | 456 | 59 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 59 | return Status::OK(); | 469 | 59 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 73 | const ColumnPtr& col_right_ptr) const { | 426 | 73 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 73 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 73 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 73 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 73 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 73 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 73 | } else if (!left_is_const && right_is_const) { | 446 | 73 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 73 | vec_res.resize(col_left->size()); | 450 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 73 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 73 | col_right->get_element(0), vec_res); | 454 | | | 455 | 73 | block.replace_by_position(result, std::move(col_res)); | 456 | 73 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 73 | return Status::OK(); | 469 | 73 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 37.1k | const ColumnPtr& col_right_ptr) const { | 426 | 37.1k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 37.1k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 37.1k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 37.1k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 37.1k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 37.1k | if (!left_is_const && !right_is_const) { | 435 | 49 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 49 | vec_res.resize(col_left->get_data().size()); | 439 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 49 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 49 | vec_res); | 443 | | | 444 | 49 | block.replace_by_position(result, std::move(col_res)); | 445 | 37.1k | } else if (!left_is_const && right_is_const) { | 446 | 37.1k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 37.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 37.1k | vec_res.resize(col_left->size()); | 450 | 37.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 37.1k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 37.1k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 37.1k | col_right->get_element(0), vec_res); | 454 | | | 455 | 37.1k | block.replace_by_position(result, std::move(col_res)); | 456 | 37.1k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 37.1k | return Status::OK(); | 469 | 37.1k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 537 | const ColumnPtr& col_right_ptr) const { | 426 | 537 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 537 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 537 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 537 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 537 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 537 | if (!left_is_const && !right_is_const) { | 435 | 21 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 21 | vec_res.resize(col_left->get_data().size()); | 439 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 21 | vec_res); | 443 | | | 444 | 21 | block.replace_by_position(result, std::move(col_res)); | 445 | 516 | } else if (!left_is_const && right_is_const) { | 446 | 516 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 516 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 516 | vec_res.resize(col_left->size()); | 450 | 516 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 516 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 516 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 516 | col_right->get_element(0), vec_res); | 454 | | | 455 | 516 | block.replace_by_position(result, std::move(col_res)); | 456 | 516 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 537 | return Status::OK(); | 469 | 537 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 55 | const ColumnPtr& col_right_ptr) const { | 426 | 55 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 55 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 55 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 55 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 55 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 55 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 55 | } else if (!left_is_const && right_is_const) { | 446 | 55 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 55 | vec_res.resize(col_left->size()); | 450 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 55 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 55 | col_right->get_element(0), vec_res); | 454 | | | 455 | 55 | block.replace_by_position(result, std::move(col_res)); | 456 | 55 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 55 | return Status::OK(); | 469 | 55 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 11 | const ColumnPtr& col_right_ptr) const { | 426 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 11 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 11 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 11 | return Status::OK(); | 469 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 230 | const ColumnPtr& col_right_ptr) const { | 426 | 230 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 230 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 230 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 230 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 230 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 230 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 170 | } else if (!left_is_const && right_is_const) { | 446 | 170 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 170 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 170 | vec_res.resize(col_left->size()); | 450 | 170 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 170 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 170 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 170 | col_right->get_element(0), vec_res); | 454 | | | 455 | 170 | block.replace_by_position(result, std::move(col_res)); | 456 | 170 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 230 | return Status::OK(); | 469 | 230 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 149 | const ColumnPtr& col_right_ptr) const { | 426 | 149 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 149 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 149 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 149 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 149 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 149 | if (!left_is_const && !right_is_const) { | 435 | 22 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 22 | vec_res.resize(col_left->get_data().size()); | 439 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 22 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 22 | vec_res); | 443 | | | 444 | 22 | block.replace_by_position(result, std::move(col_res)); | 445 | 127 | } else if (!left_is_const && right_is_const) { | 446 | 127 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 127 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 127 | vec_res.resize(col_left->size()); | 450 | 127 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 127 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 127 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 127 | col_right->get_element(0), vec_res); | 454 | | | 455 | 127 | block.replace_by_position(result, std::move(col_res)); | 456 | 127 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 149 | return Status::OK(); | 469 | 149 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 101 | const ColumnPtr& col_right_ptr) const { | 426 | 101 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 101 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 101 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 101 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 101 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 101 | if (!left_is_const && !right_is_const) { | 435 | 101 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 101 | vec_res.resize(col_left->get_data().size()); | 439 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 101 | vec_res); | 443 | | | 444 | 101 | block.replace_by_position(result, std::move(col_res)); | 445 | 101 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 101 | return Status::OK(); | 469 | 101 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.52k | const ColumnPtr& col_right_ptr) const { | 426 | 2.52k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.52k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.52k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.52k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.52k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.52k | if (!left_is_const && !right_is_const) { | 435 | 2.02k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2.02k | vec_res.resize(col_left->get_data().size()); | 439 | 2.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2.02k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2.02k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2.02k | vec_res); | 443 | | | 444 | 2.02k | block.replace_by_position(result, std::move(col_res)); | 445 | 2.02k | } else if (!left_is_const && right_is_const) { | 446 | 503 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 503 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 503 | vec_res.resize(col_left->size()); | 450 | 503 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 503 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 503 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 503 | col_right->get_element(0), vec_res); | 454 | | | 455 | 503 | block.replace_by_position(result, std::move(col_res)); | 456 | 18.4E | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.52k | return Status::OK(); | 469 | 2.52k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 626 | const ColumnPtr& col_right_ptr) const { | 426 | 626 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 626 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 626 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 626 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 626 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 626 | if (!left_is_const && !right_is_const) { | 435 | 253 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 253 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 253 | vec_res.resize(col_left->get_data().size()); | 439 | 253 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 253 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 253 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 253 | vec_res); | 443 | | | 444 | 253 | block.replace_by_position(result, std::move(col_res)); | 445 | 373 | } else if (!left_is_const && right_is_const) { | 446 | 373 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 373 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 373 | vec_res.resize(col_left->size()); | 450 | 373 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 373 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 373 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 373 | col_right->get_element(0), vec_res); | 454 | | | 455 | 373 | block.replace_by_position(result, std::move(col_res)); | 456 | 373 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 626 | return Status::OK(); | 469 | 626 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 1 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1 | vec_res.resize(col_left->size()); | 450 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1 | col_right->get_element(0), vec_res); | 454 | | | 455 | 1 | block.replace_by_position(result, std::move(col_res)); | 456 | 1 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.16k | const ColumnPtr& col_right_ptr) const { | 426 | 2.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.16k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.16k | if (!left_is_const && !right_is_const) { | 435 | 142 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 142 | vec_res.resize(col_left->get_data().size()); | 439 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 142 | vec_res); | 443 | | | 444 | 142 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.02k | } else if (!left_is_const && right_is_const) { | 446 | 1.78k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.78k | vec_res.resize(col_left->size()); | 450 | 1.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.78k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.78k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.78k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.78k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.78k | } else if (left_is_const && !right_is_const) { | 457 | 240 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 240 | vec_res.resize(col_right->size()); | 461 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 240 | col_right->get_data(), vec_res); | 465 | | | 466 | 240 | block.replace_by_position(result, std::move(col_res)); | 467 | 240 | } | 468 | 2.16k | return Status::OK(); | 469 | 2.16k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 266 | const ColumnPtr& col_right_ptr) const { | 426 | 266 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 266 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 266 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 266 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 266 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 266 | if (!left_is_const && !right_is_const) { | 435 | 121 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 121 | vec_res.resize(col_left->get_data().size()); | 439 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 121 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 121 | vec_res); | 443 | | | 444 | 121 | block.replace_by_position(result, std::move(col_res)); | 445 | 145 | } else if (!left_is_const && right_is_const) { | 446 | 144 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 144 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 144 | vec_res.resize(col_left->size()); | 450 | 144 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 144 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 144 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 144 | col_right->get_element(0), vec_res); | 454 | | | 455 | 144 | block.replace_by_position(result, std::move(col_res)); | 456 | 144 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 266 | return Status::OK(); | 469 | 266 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3.32k | const ColumnPtr& col_right_ptr) const { | 426 | 3.32k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3.32k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3.32k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3.32k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3.32k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3.32k | if (!left_is_const && !right_is_const) { | 435 | 162 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 162 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 162 | vec_res.resize(col_left->get_data().size()); | 439 | 162 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 162 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 162 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 162 | vec_res); | 443 | | | 444 | 162 | block.replace_by_position(result, std::move(col_res)); | 445 | 3.16k | } else if (!left_is_const && right_is_const) { | 446 | 2.97k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.97k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.97k | vec_res.resize(col_left->size()); | 450 | 2.97k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.97k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.97k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.97k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.97k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.97k | } else if (left_is_const && !right_is_const) { | 457 | 193 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 193 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 193 | vec_res.resize(col_right->size()); | 461 | 193 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 193 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 193 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 193 | col_right->get_data(), vec_res); | 465 | | | 466 | 193 | block.replace_by_position(result, std::move(col_res)); | 467 | 193 | } | 468 | 3.32k | return Status::OK(); | 469 | 3.32k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.66k | const ColumnPtr& col_right_ptr) const { | 426 | 1.66k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.66k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.66k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.66k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.66k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.66k | if (!left_is_const && !right_is_const) { | 435 | 202 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 202 | vec_res.resize(col_left->get_data().size()); | 439 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 202 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 202 | vec_res); | 443 | | | 444 | 202 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.46k | } else if (!left_is_const && right_is_const) { | 446 | 1.39k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.39k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.39k | vec_res.resize(col_left->size()); | 450 | 1.39k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.39k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.39k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.39k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.39k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.39k | } else if (left_is_const && !right_is_const) { | 457 | 67 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 67 | vec_res.resize(col_right->size()); | 461 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 67 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 67 | col_right->get_data(), vec_res); | 465 | | | 466 | 67 | block.replace_by_position(result, std::move(col_res)); | 467 | 67 | } | 468 | 1.66k | return Status::OK(); | 469 | 1.66k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 244 | const ColumnPtr& col_right_ptr) const { | 426 | 244 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 244 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 244 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 244 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 244 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 244 | if (!left_is_const && !right_is_const) { | 435 | 142 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 142 | vec_res.resize(col_left->get_data().size()); | 439 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 142 | vec_res); | 443 | | | 444 | 142 | block.replace_by_position(result, std::move(col_res)); | 445 | 142 | } else if (!left_is_const && right_is_const) { | 446 | 50 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 50 | vec_res.resize(col_left->size()); | 450 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 50 | col_right->get_element(0), vec_res); | 454 | | | 455 | 50 | block.replace_by_position(result, std::move(col_res)); | 456 | 52 | } else if (left_is_const && !right_is_const) { | 457 | 52 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 52 | vec_res.resize(col_right->size()); | 461 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 52 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 52 | col_right->get_data(), vec_res); | 465 | | | 466 | 52 | block.replace_by_position(result, std::move(col_res)); | 467 | 52 | } | 468 | 244 | return Status::OK(); | 469 | 244 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16 | const ColumnPtr& col_right_ptr) const { | 426 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16 | return Status::OK(); | 469 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 164 | const ColumnPtr& col_right_ptr) const { | 426 | 164 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 164 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 164 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 164 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 164 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 164 | if (!left_is_const && !right_is_const) { | 435 | 138 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 138 | vec_res.resize(col_left->get_data().size()); | 439 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 138 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 138 | vec_res); | 443 | | | 444 | 138 | block.replace_by_position(result, std::move(col_res)); | 445 | 138 | } else if (!left_is_const && right_is_const) { | 446 | 26 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26 | vec_res.resize(col_left->size()); | 450 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26 | col_right->get_element(0), vec_res); | 454 | | | 455 | 26 | block.replace_by_position(result, std::move(col_res)); | 456 | 26 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 164 | return Status::OK(); | 469 | 164 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 371 | const ColumnPtr& col_right_ptr) const { | 426 | 371 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 371 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 371 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 371 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 371 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 371 | if (!left_is_const && !right_is_const) { | 435 | 146 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 146 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 146 | vec_res.resize(col_left->get_data().size()); | 439 | 146 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 146 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 146 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 146 | vec_res); | 443 | | | 444 | 146 | block.replace_by_position(result, std::move(col_res)); | 445 | 225 | } else if (!left_is_const && right_is_const) { | 446 | 225 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 225 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 225 | vec_res.resize(col_left->size()); | 450 | 225 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 225 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 225 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 225 | col_right->get_element(0), vec_res); | 454 | | | 455 | 225 | block.replace_by_position(result, std::move(col_res)); | 456 | 225 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 371 | return Status::OK(); | 469 | 371 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 206 | const ColumnPtr& col_right_ptr) const { | 426 | 206 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 206 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 206 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 206 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 206 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 206 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 194 | } else if (!left_is_const && right_is_const) { | 446 | 194 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 194 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 194 | vec_res.resize(col_left->size()); | 450 | 194 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 194 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 194 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 194 | col_right->get_element(0), vec_res); | 454 | | | 455 | 194 | block.replace_by_position(result, std::move(col_res)); | 456 | 194 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 206 | return Status::OK(); | 469 | 206 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 28.8k | const ColumnPtr& col_right_ptr) const { | 426 | 28.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 28.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 28.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 28.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 28.8k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 28.8k | if (!left_is_const && !right_is_const) { | 435 | 423 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 423 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 423 | vec_res.resize(col_left->get_data().size()); | 439 | 423 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 423 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 423 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 423 | vec_res); | 443 | | | 444 | 423 | block.replace_by_position(result, std::move(col_res)); | 445 | 28.4k | } else if (!left_is_const && right_is_const) { | 446 | 28.4k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28.4k | vec_res.resize(col_left->size()); | 450 | 28.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28.4k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28.4k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28.4k | col_right->get_element(0), vec_res); | 454 | | | 455 | 28.4k | block.replace_by_position(result, std::move(col_res)); | 456 | 28.4k | } else if (left_is_const && !right_is_const) { | 457 | 5 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 5 | vec_res.resize(col_right->size()); | 461 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 5 | col_right->get_data(), vec_res); | 465 | | | 466 | 5 | block.replace_by_position(result, std::move(col_res)); | 467 | 5 | } | 468 | 28.8k | return Status::OK(); | 469 | 28.8k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 438 | const ColumnPtr& col_right_ptr) const { | 426 | 438 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 438 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 438 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 438 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 438 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 438 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 378 | } else if (!left_is_const && right_is_const) { | 446 | 378 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 378 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 378 | vec_res.resize(col_left->size()); | 450 | 378 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 378 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 378 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 378 | col_right->get_element(0), vec_res); | 454 | | | 455 | 378 | block.replace_by_position(result, std::move(col_res)); | 456 | 378 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 438 | return Status::OK(); | 469 | 438 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 95 | const ColumnPtr& col_right_ptr) const { | 426 | 95 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 95 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 95 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 95 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 95 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 95 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 94 | } else if (!left_is_const && right_is_const) { | 446 | 94 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 94 | vec_res.resize(col_left->size()); | 450 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 94 | col_right->get_element(0), vec_res); | 454 | | | 455 | 94 | block.replace_by_position(result, std::move(col_res)); | 456 | 94 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 95 | return Status::OK(); | 469 | 95 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 96 | const ColumnPtr& col_right_ptr) const { | 426 | 96 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 96 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 96 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 96 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 96 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 96 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 96 | } else if (!left_is_const && right_is_const) { | 446 | 96 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 96 | vec_res.resize(col_left->size()); | 450 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 96 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 96 | col_right->get_element(0), vec_res); | 454 | | | 455 | 96 | block.replace_by_position(result, std::move(col_res)); | 456 | 96 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 96 | return Status::OK(); | 469 | 96 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 45.7k | const ColumnPtr& col_right_ptr) const { | 426 | 45.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 45.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 45.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 45.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 45.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 45.7k | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 45.7k | } else if (!left_is_const && right_is_const) { | 446 | 45.1k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 45.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 45.1k | vec_res.resize(col_left->size()); | 450 | 45.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 45.1k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 45.1k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 45.1k | col_right->get_element(0), vec_res); | 454 | | | 455 | 45.1k | block.replace_by_position(result, std::move(col_res)); | 456 | 45.1k | } else if (left_is_const && !right_is_const) { | 457 | 564 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 564 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 564 | vec_res.resize(col_right->size()); | 461 | 564 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 564 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 564 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 564 | col_right->get_data(), vec_res); | 465 | | | 466 | 564 | block.replace_by_position(result, std::move(col_res)); | 467 | 564 | } | 468 | 45.7k | return Status::OK(); | 469 | 45.7k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 868 | const ColumnPtr& col_right_ptr) const { | 426 | 868 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 868 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 868 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 868 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 868 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 868 | if (!left_is_const && !right_is_const) { | 435 | 81 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 81 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 81 | vec_res.resize(col_left->get_data().size()); | 439 | 81 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 81 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 81 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 81 | vec_res); | 443 | | | 444 | 81 | block.replace_by_position(result, std::move(col_res)); | 445 | 787 | } else if (!left_is_const && right_is_const) { | 446 | 739 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 739 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 739 | vec_res.resize(col_left->size()); | 450 | 739 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 739 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 739 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 739 | col_right->get_element(0), vec_res); | 454 | | | 455 | 739 | block.replace_by_position(result, std::move(col_res)); | 456 | 739 | } else if (left_is_const && !right_is_const) { | 457 | 48 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 48 | vec_res.resize(col_right->size()); | 461 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 48 | col_right->get_data(), vec_res); | 465 | | | 466 | 48 | block.replace_by_position(result, std::move(col_res)); | 467 | 48 | } | 468 | 868 | return Status::OK(); | 469 | 868 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 59 | const ColumnPtr& col_right_ptr) const { | 426 | 59 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 59 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 59 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 59 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 59 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 59 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 59 | } else if (!left_is_const && right_is_const) { | 446 | 59 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 59 | vec_res.resize(col_left->size()); | 450 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 59 | col_right->get_element(0), vec_res); | 454 | | | 455 | 59 | block.replace_by_position(result, std::move(col_res)); | 456 | 59 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 59 | return Status::OK(); | 469 | 59 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 10 | const ColumnPtr& col_right_ptr) const { | 426 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 10 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 10 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 10 | return Status::OK(); | 469 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 226 | const ColumnPtr& col_right_ptr) const { | 426 | 226 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 226 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 226 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 226 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 226 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 226 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 166 | } else if (!left_is_const && right_is_const) { | 446 | 166 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 166 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 166 | vec_res.resize(col_left->size()); | 450 | 166 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 166 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 166 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 166 | col_right->get_element(0), vec_res); | 454 | | | 455 | 166 | block.replace_by_position(result, std::move(col_res)); | 456 | 166 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 226 | return Status::OK(); | 469 | 226 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 145 | const ColumnPtr& col_right_ptr) const { | 426 | 145 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 145 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 145 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 145 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 145 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 145 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 125 | } else if (!left_is_const && right_is_const) { | 446 | 124 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 124 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 124 | vec_res.resize(col_left->size()); | 450 | 124 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 124 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 124 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 124 | col_right->get_element(0), vec_res); | 454 | | | 455 | 124 | block.replace_by_position(result, std::move(col_res)); | 456 | 124 | } else if (left_is_const && !right_is_const) { | 457 | 1 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1 | vec_res.resize(col_right->size()); | 461 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1 | col_right->get_data(), vec_res); | 465 | | | 466 | 1 | block.replace_by_position(result, std::move(col_res)); | 467 | 1 | } | 468 | 145 | return Status::OK(); | 469 | 145 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
470 | | |
471 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
472 | 24.7k | const ColumnWithTypeAndName& col_right) const { |
473 | 24.7k | auto call = [&](const auto& type) -> bool { |
474 | 24.7k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 24.7k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 24.7k | block, result, col_left, col_right); |
477 | 24.7k | return true; |
478 | 24.7k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 247 | auto call = [&](const auto& type) -> bool { | 474 | 247 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 247 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 247 | block, result, col_left, col_right); | 477 | 247 | return true; | 478 | 247 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 251 | auto call = [&](const auto& type) -> bool { | 474 | 251 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 251 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 251 | block, result, col_left, col_right); | 477 | 251 | return true; | 478 | 251 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.12k | auto call = [&](const auto& type) -> bool { | 474 | 1.12k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.12k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.12k | block, result, col_left, col_right); | 477 | 1.12k | return true; | 478 | 1.12k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 66 | auto call = [&](const auto& type) -> bool { | 474 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 66 | block, result, col_left, col_right); | 477 | 66 | return true; | 478 | 66 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 324 | auto call = [&](const auto& type) -> bool { | 474 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 324 | block, result, col_left, col_right); | 477 | 324 | return true; | 478 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 46 | auto call = [&](const auto& type) -> bool { | 474 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 46 | block, result, col_left, col_right); | 477 | 46 | return true; | 478 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 16.7k | auto call = [&](const auto& type) -> bool { | 474 | 16.7k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16.7k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16.7k | block, result, col_left, col_right); | 477 | 16.7k | return true; | 478 | 16.7k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.37k | auto call = [&](const auto& type) -> bool { | 474 | 1.37k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.37k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.37k | block, result, col_left, col_right); | 477 | 1.37k | return true; | 478 | 1.37k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 2 | auto call = [&](const auto& type) -> bool { | 474 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2 | block, result, col_left, col_right); | 477 | 2 | return true; | 478 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 12 | auto call = [&](const auto& type) -> bool { | 474 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 12 | block, result, col_left, col_right); | 477 | 12 | return true; | 478 | 12 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 350 | auto call = [&](const auto& type) -> bool { | 474 | 350 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 350 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 350 | block, result, col_left, col_right); | 477 | 350 | return true; | 478 | 350 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 62 | auto call = [&](const auto& type) -> bool { | 474 | 62 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 62 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 62 | block, result, col_left, col_right); | 477 | 62 | return true; | 478 | 62 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 21 | auto call = [&](const auto& type) -> bool { | 474 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 21 | block, result, col_left, col_right); | 477 | 21 | return true; | 478 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 188 | auto call = [&](const auto& type) -> bool { | 474 | 188 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 188 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 188 | block, result, col_left, col_right); | 477 | 188 | return true; | 478 | 188 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 228 | auto call = [&](const auto& type) -> bool { | 474 | 228 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 228 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 228 | block, result, col_left, col_right); | 477 | 228 | return true; | 478 | 228 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 455 | auto call = [&](const auto& type) -> bool { | 474 | 455 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 455 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 455 | block, result, col_left, col_right); | 477 | 455 | return true; | 478 | 455 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 1 | auto call = [&](const auto& type) -> bool { | 474 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1 | block, result, col_left, col_right); | 477 | 1 | return true; | 478 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 7 | auto call = [&](const auto& type) -> bool { | 474 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 7 | block, result, col_left, col_right); | 477 | 7 | return true; | 478 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 2.24k | auto call = [&](const auto& type) -> bool { | 474 | 2.24k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2.24k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2.24k | block, result, col_left, col_right); | 477 | 2.24k | return true; | 478 | 2.24k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 892 | auto call = [&](const auto& type) -> bool { | 474 | 892 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 892 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 892 | block, result, col_left, col_right); | 477 | 892 | return true; | 478 | 892 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 16 | auto call = [&](const auto& type) -> bool { | 474 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16 | block, result, col_left, col_right); | 477 | 16 | return true; | 478 | 16 | }; |
|
479 | | |
480 | 24.7k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
481 | 0 | return Status::RuntimeError( |
482 | 0 | "type of left column {} is not equal to type of right column {}", |
483 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
484 | 0 | } |
485 | | |
486 | 24.7k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
488 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
489 | 0 | } |
490 | 24.7k | return Status::OK(); |
491 | 24.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.65k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.65k | auto call = [&](const auto& type) -> bool { | 474 | 1.65k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.65k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.65k | block, result, col_left, col_right); | 477 | 1.65k | return true; | 478 | 1.65k | }; | 479 | | | 480 | 1.65k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.65k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.65k | return Status::OK(); | 491 | 1.65k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 420 | const ColumnWithTypeAndName& col_right) const { | 473 | 420 | auto call = [&](const auto& type) -> bool { | 474 | 420 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 420 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 420 | block, result, col_left, col_right); | 477 | 420 | return true; | 478 | 420 | }; | 479 | | | 480 | 420 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 420 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 420 | return Status::OK(); | 491 | 420 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 18.1k | const ColumnWithTypeAndName& col_right) const { | 473 | 18.1k | auto call = [&](const auto& type) -> bool { | 474 | 18.1k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 18.1k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 18.1k | block, result, col_left, col_right); | 477 | 18.1k | return true; | 478 | 18.1k | }; | 479 | | | 480 | 18.1k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 18.1k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 18.1k | return Status::OK(); | 491 | 18.1k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 445 | const ColumnWithTypeAndName& col_right) const { | 473 | 445 | auto call = [&](const auto& type) -> bool { | 474 | 445 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 445 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 445 | block, result, col_left, col_right); | 477 | 445 | return true; | 478 | 445 | }; | 479 | | | 480 | 445 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 445 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 445 | return Status::OK(); | 491 | 445 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 872 | const ColumnWithTypeAndName& col_right) const { | 473 | 872 | auto call = [&](const auto& type) -> bool { | 474 | 872 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 872 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 872 | block, result, col_left, col_right); | 477 | 872 | return true; | 478 | 872 | }; | 479 | | | 480 | 872 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 872 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 872 | return Status::OK(); | 491 | 872 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 3.15k | const ColumnWithTypeAndName& col_right) const { | 473 | 3.15k | auto call = [&](const auto& type) -> bool { | 474 | 3.15k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 3.15k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 3.15k | block, result, col_left, col_right); | 477 | 3.15k | return true; | 478 | 3.15k | }; | 479 | | | 480 | 3.15k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 3.15k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 3.15k | return Status::OK(); | 491 | 3.15k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
494 | 28.6k | const IColumn* c1) const { |
495 | 28.6k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
496 | 28.6k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
497 | 28.6k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
498 | 28.6k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
499 | 28.6k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
501 | 0 | c0->get_name(), c1->get_name(), name); |
502 | 0 | } |
503 | 28.6k | DCHECK(!(c0_const && c1_const)); |
504 | 28.6k | const ColumnString::Chars* c0_const_chars = nullptr; |
505 | 28.6k | const ColumnString::Chars* c1_const_chars = nullptr; |
506 | 28.6k | ColumnString::Offset c0_const_size = 0; |
507 | 28.6k | ColumnString::Offset c1_const_size = 0; |
508 | | |
509 | 28.6k | if (c0_const) { |
510 | 6 | const ColumnString* c0_const_string = |
511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
512 | | |
513 | 6 | if (c0_const_string) { |
514 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
516 | 6 | } else { |
517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
518 | 0 | c0->get_name(), name); |
519 | 0 | } |
520 | 6 | } |
521 | | |
522 | 28.6k | if (c1_const) { |
523 | 26.6k | const ColumnString* c1_const_string = |
524 | 26.6k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 26.6k | if (c1_const_string) { |
527 | 26.6k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 26.6k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 26.6k | } else { |
530 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 1 | c1->get_name(), name); |
532 | 1 | } |
533 | 26.6k | } |
534 | | |
535 | 28.6k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
536 | | |
537 | 28.6k | auto c_res = ColumnUInt8::create(); |
538 | 28.6k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
539 | 28.6k | vec_res.resize(c0->size()); |
540 | | |
541 | 28.6k | if (c0_string && c1_string) { |
542 | 1.99k | StringImpl::string_vector_string_vector( |
543 | 1.99k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 1.99k | c1_string->get_offsets(), vec_res); |
545 | 26.6k | } else if (c0_string && c1_const) { |
546 | 26.6k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 26.6k | *c1_const_chars, c1_const_size, vec_res); |
548 | 26.6k | } else if (c0_const && c1_string) { |
549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
551 | 6 | vec_res); |
552 | 18.4E | } else { |
553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
554 | 18.4E | c0->get_name(), c1->get_name(), name); |
555 | 18.4E | } |
556 | 28.6k | block.replace_by_position(result, std::move(c_res)); |
557 | 28.6k | return Status::OK(); |
558 | 28.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 23.6k | const IColumn* c1) const { | 495 | 23.6k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 23.6k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 23.6k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 23.6k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 23.6k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 23.6k | DCHECK(!(c0_const && c1_const)); | 504 | 23.6k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 23.6k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 23.6k | ColumnString::Offset c0_const_size = 0; | 507 | 23.6k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 23.6k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 23.6k | if (c1_const) { | 523 | 22.3k | const ColumnString* c1_const_string = | 524 | 22.3k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 22.3k | if (c1_const_string) { | 527 | 22.3k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 22.3k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 22.3k | } else { | 530 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 1 | c1->get_name(), name); | 532 | 1 | } | 533 | 22.3k | } | 534 | | | 535 | 23.6k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 23.6k | auto c_res = ColumnUInt8::create(); | 538 | 23.6k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 23.6k | vec_res.resize(c0->size()); | 540 | | | 541 | 23.6k | if (c0_string && c1_string) { | 542 | 1.31k | StringImpl::string_vector_string_vector( | 543 | 1.31k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 1.31k | c1_string->get_offsets(), vec_res); | 545 | 22.3k | } else if (c0_string && c1_const) { | 546 | 22.3k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 22.3k | *c1_const_chars, c1_const_size, vec_res); | 548 | 18.4E | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 18.4E | } else { | 553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 18.4E | c0->get_name(), c1->get_name(), name); | 555 | 18.4E | } | 556 | 23.6k | block.replace_by_position(result, std::move(c_res)); | 557 | 23.6k | return Status::OK(); | 558 | 23.6k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 2.47k | const IColumn* c1) const { | 495 | 2.47k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 2.47k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 2.47k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 2.47k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 2.47k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 2.47k | DCHECK(!(c0_const && c1_const)); | 504 | 2.47k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 2.47k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 2.47k | ColumnString::Offset c0_const_size = 0; | 507 | 2.47k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 2.47k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 2.47k | if (c1_const) { | 523 | 2.42k | const ColumnString* c1_const_string = | 524 | 2.42k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 2.42k | if (c1_const_string) { | 527 | 2.42k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 2.42k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 2.42k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 2.42k | } | 534 | | | 535 | 2.47k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 2.47k | auto c_res = ColumnUInt8::create(); | 538 | 2.47k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 2.47k | vec_res.resize(c0->size()); | 540 | | | 541 | 2.47k | if (c0_string && c1_string) { | 542 | 52 | StringImpl::string_vector_string_vector( | 543 | 52 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 52 | c1_string->get_offsets(), vec_res); | 545 | 2.42k | } else if (c0_string && c1_const) { | 546 | 2.42k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 2.42k | *c1_const_chars, c1_const_size, vec_res); | 548 | 2.42k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 2.47k | block.replace_by_position(result, std::move(c_res)); | 557 | 2.47k | return Status::OK(); | 558 | 2.47k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 174 | const IColumn* c1) const { | 495 | 174 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 174 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 174 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 174 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 174 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 174 | DCHECK(!(c0_const && c1_const)); | 504 | 174 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 174 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 174 | ColumnString::Offset c0_const_size = 0; | 507 | 174 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 174 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 174 | if (c1_const) { | 523 | 172 | const ColumnString* c1_const_string = | 524 | 172 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 172 | if (c1_const_string) { | 527 | 172 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 172 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 172 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 172 | } | 534 | | | 535 | 174 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 174 | auto c_res = ColumnUInt8::create(); | 538 | 174 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 174 | vec_res.resize(c0->size()); | 540 | | | 541 | 174 | if (c0_string && c1_string) { | 542 | 2 | StringImpl::string_vector_string_vector( | 543 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 2 | c1_string->get_offsets(), vec_res); | 545 | 172 | } else if (c0_string && c1_const) { | 546 | 172 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 172 | *c1_const_chars, c1_const_size, vec_res); | 548 | 172 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 174 | block.replace_by_position(result, std::move(c_res)); | 557 | 174 | return Status::OK(); | 558 | 174 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 733 | const IColumn* c1) const { | 495 | 733 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 733 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 733 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 733 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 733 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 733 | DCHECK(!(c0_const && c1_const)); | 504 | 733 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 733 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 733 | ColumnString::Offset c0_const_size = 0; | 507 | 733 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 733 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 733 | if (c1_const) { | 523 | 639 | const ColumnString* c1_const_string = | 524 | 639 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 639 | if (c1_const_string) { | 527 | 639 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 639 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 639 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 639 | } | 534 | | | 535 | 733 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 733 | auto c_res = ColumnUInt8::create(); | 538 | 733 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 733 | vec_res.resize(c0->size()); | 540 | | | 541 | 733 | if (c0_string && c1_string) { | 542 | 94 | StringImpl::string_vector_string_vector( | 543 | 94 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 94 | c1_string->get_offsets(), vec_res); | 545 | 639 | } else if (c0_string && c1_const) { | 546 | 639 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 639 | *c1_const_chars, c1_const_size, vec_res); | 548 | 639 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 733 | block.replace_by_position(result, std::move(c_res)); | 557 | 733 | return Status::OK(); | 558 | 733 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 643 | const IColumn* c1) const { | 495 | 643 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 643 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 643 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 643 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 643 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 643 | DCHECK(!(c0_const && c1_const)); | 504 | 643 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 643 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 643 | ColumnString::Offset c0_const_size = 0; | 507 | 643 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 643 | if (c0_const) { | 510 | 6 | const ColumnString* c0_const_string = | 511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | | | 513 | 6 | if (c0_const_string) { | 514 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 6 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 6 | } | 521 | | | 522 | 643 | if (c1_const) { | 523 | 243 | const ColumnString* c1_const_string = | 524 | 243 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 243 | if (c1_const_string) { | 527 | 243 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 243 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 243 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 243 | } | 534 | | | 535 | 643 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 643 | auto c_res = ColumnUInt8::create(); | 538 | 643 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 643 | vec_res.resize(c0->size()); | 540 | | | 541 | 643 | if (c0_string && c1_string) { | 542 | 395 | StringImpl::string_vector_string_vector( | 543 | 395 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 395 | c1_string->get_offsets(), vec_res); | 545 | 395 | } else if (c0_string && c1_const) { | 546 | 243 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 243 | *c1_const_chars, c1_const_size, vec_res); | 548 | 243 | } else if (c0_const && c1_string) { | 549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 6 | vec_res); | 552 | 18.4E | } else { | 553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 18.4E | c0->get_name(), c1->get_name(), name); | 555 | 18.4E | } | 556 | 644 | block.replace_by_position(result, std::move(c_res)); | 557 | 644 | return Status::OK(); | 558 | 643 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 948 | const IColumn* c1) const { | 495 | 948 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 948 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 948 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 948 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 948 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 948 | DCHECK(!(c0_const && c1_const)); | 504 | 948 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 948 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 948 | ColumnString::Offset c0_const_size = 0; | 507 | 948 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 948 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 948 | if (c1_const) { | 523 | 810 | const ColumnString* c1_const_string = | 524 | 810 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 810 | if (c1_const_string) { | 527 | 810 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 810 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 810 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 810 | } | 534 | | | 535 | 948 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 948 | auto c_res = ColumnUInt8::create(); | 538 | 948 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 948 | vec_res.resize(c0->size()); | 540 | | | 541 | 948 | if (c0_string && c1_string) { | 542 | 138 | StringImpl::string_vector_string_vector( | 543 | 138 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 138 | c1_string->get_offsets(), vec_res); | 545 | 810 | } else if (c0_string && c1_const) { | 546 | 810 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 810 | *c1_const_chars, c1_const_size, vec_res); | 548 | 810 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 948 | block.replace_by_position(result, std::move(c_res)); | 557 | 948 | return Status::OK(); | 558 | 948 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 145 | const IColumn* c1) const { |
562 | 145 | bool c0_const = is_column_const(*c0); |
563 | 145 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 145 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 145 | auto c_res = ColumnUInt8::create(); |
568 | 145 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 145 | vec_res.resize(c0->size()); |
570 | | |
571 | 145 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 145 | } else if (c1_const) { |
574 | 136 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 136 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 145 | block.replace_by_position(result, std::move(c_res)); |
580 | 145 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 17 | const IColumn* c1) const { | 562 | 17 | bool c0_const = is_column_const(*c0); | 563 | 17 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 17 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 17 | auto c_res = ColumnUInt8::create(); | 568 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 17 | vec_res.resize(c0->size()); | 570 | | | 571 | 17 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 17 | } else if (c1_const) { | 574 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 13 | } else { | 576 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 4 | } | 578 | | | 579 | 17 | block.replace_by_position(result, std::move(c_res)); | 580 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 8 | const IColumn* c1) const { | 562 | 8 | bool c0_const = is_column_const(*c0); | 563 | 8 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 8 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 8 | auto c_res = ColumnUInt8::create(); | 568 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 8 | vec_res.resize(c0->size()); | 570 | | | 571 | 8 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 8 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 8 | block.replace_by_position(result, std::move(c_res)); | 580 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 9 | const IColumn* c1) const { | 562 | 9 | bool c0_const = is_column_const(*c0); | 563 | 9 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 9 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 9 | auto c_res = ColumnUInt8::create(); | 568 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 9 | vec_res.resize(c0->size()); | 570 | | | 571 | 9 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 9 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 9 | block.replace_by_position(result, std::move(c_res)); | 580 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 58 | const IColumn* c1) const { | 562 | 58 | bool c0_const = is_column_const(*c0); | 563 | 58 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 58 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 58 | auto c_res = ColumnUInt8::create(); | 568 | 58 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 58 | vec_res.resize(c0->size()); | 570 | | | 571 | 58 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 58 | } else if (c1_const) { | 574 | 57 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 57 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 58 | block.replace_by_position(result, std::move(c_res)); | 580 | 58 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 11 | const IColumn* c1) const { | 562 | 11 | bool c0_const = is_column_const(*c0); | 563 | 11 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 11 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 11 | auto c_res = ColumnUInt8::create(); | 568 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 11 | vec_res.resize(c0->size()); | 570 | | | 571 | 11 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 11 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 3 | } | 578 | | | 579 | 11 | block.replace_by_position(result, std::move(c_res)); | 580 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 42 | const IColumn* c1) const { | 562 | 42 | bool c0_const = is_column_const(*c0); | 563 | 42 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 42 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 42 | auto c_res = ColumnUInt8::create(); | 568 | 42 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 42 | vec_res.resize(c0->size()); | 570 | | | 571 | 42 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 42 | } else if (c1_const) { | 574 | 42 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 42 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 42 | block.replace_by_position(result, std::move(c_res)); | 580 | 42 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 145 | const ColumnWithTypeAndName& c1) const { |
584 | 145 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 145 | return Status::OK(); |
586 | 145 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 17 | const ColumnWithTypeAndName& c1) const { | 584 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 17 | return Status::OK(); | 586 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 8 | const ColumnWithTypeAndName& c1) const { | 584 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 8 | return Status::OK(); | 586 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 9 | const ColumnWithTypeAndName& c1) const { | 584 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 9 | return Status::OK(); | 586 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 58 | const ColumnWithTypeAndName& c1) const { | 584 | 58 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 58 | return Status::OK(); | 586 | 58 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 11 | const ColumnWithTypeAndName& c1) const { | 584 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 11 | return Status::OK(); | 586 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 42 | const ColumnWithTypeAndName& c1) const { | 584 | 42 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 42 | return Status::OK(); | 586 | 42 | } |
|
587 | | |
588 | | public: |
589 | 222 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
|
590 | | |
591 | 519k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 466k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 2.71k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 9.00k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 13.7k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 4.45k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 22.3k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 36.7k | const VExprSPtrs& arguments) const override { |
595 | 36.7k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 36.7k | DORIS_CHECK(op.has_value()); |
597 | 36.7k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 36.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.39k | const VExprSPtrs& arguments) const override { | 595 | 9.39k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.39k | DORIS_CHECK(op.has_value()); | 597 | 9.39k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.39k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.16k | const VExprSPtrs& arguments) const override { | 595 | 1.16k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.16k | DORIS_CHECK(op.has_value()); | 597 | 1.16k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.08k | const VExprSPtrs& arguments) const override { | 595 | 5.08k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.08k | DORIS_CHECK(op.has_value()); | 597 | 5.08k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.08k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 7.59k | const VExprSPtrs& arguments) const override { | 595 | 7.59k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 7.59k | DORIS_CHECK(op.has_value()); | 597 | 7.59k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 7.59k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 3.04k | const VExprSPtrs& arguments) const override { | 595 | 3.04k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 3.04k | DORIS_CHECK(op.has_value()); | 597 | 3.04k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 3.04k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 10.4k | const VExprSPtrs& arguments) const override { | 595 | 10.4k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 10.4k | DORIS_CHECK(op.has_value()); | 597 | 10.4k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 10.4k | } |
|
599 | | |
600 | 117k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 117k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 117k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 117k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 45.6k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 45.6k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 45.6k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 45.6k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 4.62k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 4.62k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 4.63k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 4.62k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 17.2k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 17.2k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 17.2k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 17.2k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 18.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 18.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 18.1k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 18.1k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 9.96k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 9.96k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 9.96k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 9.96k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 21.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 21.9k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 21.9k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 21.9k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 40.9k | const VExprSPtrs& arguments) const override { |
607 | 40.9k | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 40.9k | DORIS_CHECK(op.has_value()); |
609 | 40.9k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 40.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 40.9k | const VExprSPtrs& arguments) const override { | 607 | 40.9k | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 40.9k | DORIS_CHECK(op.has_value()); | 609 | 40.9k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 40.9k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
611 | | |
612 | 57.4k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 57.4k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 57.4k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 57.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 50.8k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 50.8k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 50.8k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 50.8k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 1.34k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 1.34k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 1.34k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 1.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 3.13k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 3.13k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 3.13k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 3.13k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 864 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 864 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 864 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 864 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 966 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 966 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 966 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 966 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 336 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 336 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 336 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 336 | } |
|
616 | | |
617 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
618 | 14 | const VExprSPtrs& arguments) const override { |
619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
620 | 14 | DORIS_CHECK(op.has_value()); |
621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
622 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 618 | 14 | const VExprSPtrs& arguments) const override { | 619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); | 620 | 14 | DORIS_CHECK(op.has_value()); | 621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 622 | 14 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
623 | | |
624 | 8.02k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 8.02k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 8.02k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 8.02k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 4.55k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 4.55k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 4.55k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 4.55k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 695 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 695 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 695 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 695 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 1.58k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 1.58k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 1.59k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 1.58k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 432 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 432 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 434 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 432 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 514 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 514 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 516 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 514 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 242 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 242 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 242 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 242 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 518k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 518k | return std::make_shared<DataTypeUInt8>(); |
632 | 518k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 466k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 466k | return std::make_shared<DataTypeUInt8>(); | 632 | 466k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 2.71k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 2.71k | return std::make_shared<DataTypeUInt8>(); | 632 | 2.71k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 9.02k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 9.02k | return std::make_shared<DataTypeUInt8>(); | 632 | 9.02k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 13.8k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 13.8k | return std::make_shared<DataTypeUInt8>(); | 632 | 13.8k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 4.45k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 4.45k | return std::make_shared<DataTypeUInt8>(); | 632 | 4.45k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 22.2k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 22.2k | return std::make_shared<DataTypeUInt8>(); | 632 | 22.2k | } |
|
633 | | |
634 | | Status evaluate_inverted_index( |
635 | | const ColumnsWithTypeAndName& arguments, |
636 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
637 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
638 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
639 | 1.33k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.33k | DCHECK(arguments.size() == 1); |
641 | 1.33k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.33k | DCHECK(iterators.size() == 1); |
643 | 1.33k | auto* iter = iterators[0]; |
644 | 1.33k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.33k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.33k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 304 | return Status::OK(); |
650 | 304 | } |
651 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.03k | std::string_view name_view(name); |
653 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 710 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 710 | } else if (name_view == NameLess::name) { |
656 | 77 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 246 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 165 | } else if (name_view == NameGreater::name) { |
660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 18.4E | } else { |
664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 18.4E | } |
666 | | |
667 | 1.03k | if (segment_v2::is_range_query(query_type) && |
668 | 1.03k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 901 | Field param_value; |
673 | 901 | arguments[0].column->get(0, param_value); |
674 | 901 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 899 | segment_v2::InvertedIndexParam param; |
678 | 899 | param.column_name = data_type_with_name.first; |
679 | 899 | param.column_type = data_type_with_name.second; |
680 | 899 | param.query_value = param_value; |
681 | 899 | param.query_type = query_type; |
682 | 899 | param.num_rows = num_rows; |
683 | 899 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 899 | param.analyzer_ctx = analyzer_ctx; |
685 | 899 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 749 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 749 | if (iter->has_null()) { |
688 | 749 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 749 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 749 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 749 | } |
692 | 749 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 749 | bitmap_result = result; |
694 | 749 | bitmap_result.mask_out_null(); |
695 | | |
696 | 749 | if (name_view == NameNotEquals::name) { |
697 | 59 | roaring::Roaring full_result; |
698 | 59 | full_result.addRange(0, num_rows); |
699 | 59 | bitmap_result.op_not(&full_result); |
700 | 59 | } |
701 | | |
702 | 749 | return Status::OK(); |
703 | 749 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 679 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 679 | DCHECK(arguments.size() == 1); | 641 | 679 | DCHECK(data_type_with_names.size() == 1); | 642 | 679 | DCHECK(iterators.size() == 1); | 643 | 679 | auto* iter = iterators[0]; | 644 | 679 | auto data_type_with_name = data_type_with_names[0]; | 645 | 679 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 679 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 36 | return Status::OK(); | 650 | 36 | } | 651 | 643 | segment_v2::InvertedIndexQueryType query_type; | 652 | 643 | std::string_view name_view(name); | 653 | 644 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 644 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 18.4E | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 18.4E | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 644 | if (segment_v2::is_range_query(query_type) && | 668 | 644 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 644 | Field param_value; | 673 | 644 | arguments[0].column->get(0, param_value); | 674 | 644 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 642 | segment_v2::InvertedIndexParam param; | 678 | 642 | param.column_name = data_type_with_name.first; | 679 | 642 | param.column_type = data_type_with_name.second; | 680 | 642 | param.query_value = param_value; | 681 | 642 | param.query_type = query_type; | 682 | 642 | param.num_rows = num_rows; | 683 | 642 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 642 | param.analyzer_ctx = analyzer_ctx; | 685 | 642 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 599 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 599 | if (iter->has_null()) { | 688 | 599 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 599 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 599 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 599 | } | 692 | 599 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 599 | bitmap_result = result; | 694 | 599 | bitmap_result.mask_out_null(); | 695 | | | 696 | 599 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 599 | return Status::OK(); | 703 | 599 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 72 | DCHECK(arguments.size() == 1); | 641 | 72 | DCHECK(data_type_with_names.size() == 1); | 642 | 72 | DCHECK(iterators.size() == 1); | 643 | 72 | auto* iter = iterators[0]; | 644 | 72 | auto data_type_with_name = data_type_with_names[0]; | 645 | 72 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 6 | return Status::OK(); | 650 | 6 | } | 651 | 66 | segment_v2::InvertedIndexQueryType query_type; | 652 | 66 | std::string_view name_view(name); | 653 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 66 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 0 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 66 | if (segment_v2::is_range_query(query_type) && | 668 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 66 | Field param_value; | 673 | 66 | arguments[0].column->get(0, param_value); | 674 | 66 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 66 | segment_v2::InvertedIndexParam param; | 678 | 66 | param.column_name = data_type_with_name.first; | 679 | 66 | param.column_type = data_type_with_name.second; | 680 | 66 | param.query_value = param_value; | 681 | 66 | param.query_type = query_type; | 682 | 66 | param.num_rows = num_rows; | 683 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 66 | param.analyzer_ctx = analyzer_ctx; | 685 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 59 | if (iter->has_null()) { | 688 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 59 | } | 692 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 59 | bitmap_result = result; | 694 | 59 | bitmap_result.mask_out_null(); | 695 | | | 696 | 59 | if (name_view == NameNotEquals::name) { | 697 | 59 | roaring::Roaring full_result; | 698 | 59 | full_result.addRange(0, num_rows); | 699 | 59 | bitmap_result.op_not(&full_result); | 700 | 59 | } | 701 | | | 702 | 59 | return Status::OK(); | 703 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 112 | DCHECK(arguments.size() == 1); | 641 | 112 | DCHECK(data_type_with_names.size() == 1); | 642 | 112 | DCHECK(iterators.size() == 1); | 643 | 112 | auto* iter = iterators[0]; | 644 | 112 | auto data_type_with_name = data_type_with_names[0]; | 645 | 112 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 39 | return Status::OK(); | 650 | 39 | } | 651 | 73 | segment_v2::InvertedIndexQueryType query_type; | 652 | 73 | std::string_view name_view(name); | 653 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 73 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 73 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 73 | } else if (name_view == NameGreater::name) { | 660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 73 | if (segment_v2::is_range_query(query_type) && | 668 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 17 | return Status::OK(); | 671 | 17 | } | 672 | 56 | Field param_value; | 673 | 56 | arguments[0].column->get(0, param_value); | 674 | 56 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 56 | segment_v2::InvertedIndexParam param; | 678 | 56 | param.column_name = data_type_with_name.first; | 679 | 56 | param.column_type = data_type_with_name.second; | 680 | 56 | param.query_value = param_value; | 681 | 56 | param.query_type = query_type; | 682 | 56 | param.num_rows = num_rows; | 683 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 56 | param.analyzer_ctx = analyzer_ctx; | 685 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 37 | if (iter->has_null()) { | 688 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 37 | } | 692 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 37 | bitmap_result = result; | 694 | 37 | bitmap_result.mask_out_null(); | 695 | | | 696 | 37 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 37 | return Status::OK(); | 703 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 179 | DCHECK(arguments.size() == 1); | 641 | 179 | DCHECK(data_type_with_names.size() == 1); | 642 | 179 | DCHECK(iterators.size() == 1); | 643 | 179 | auto* iter = iterators[0]; | 644 | 179 | auto data_type_with_name = data_type_with_names[0]; | 645 | 179 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 86 | return Status::OK(); | 650 | 86 | } | 651 | 93 | segment_v2::InvertedIndexQueryType query_type; | 652 | 93 | std::string_view name_view(name); | 653 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 93 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 93 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 93 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 93 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 93 | if (segment_v2::is_range_query(query_type) && | 668 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 47 | return Status::OK(); | 671 | 47 | } | 672 | 46 | Field param_value; | 673 | 46 | arguments[0].column->get(0, param_value); | 674 | 46 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 46 | segment_v2::InvertedIndexParam param; | 678 | 46 | param.column_name = data_type_with_name.first; | 679 | 46 | param.column_type = data_type_with_name.second; | 680 | 46 | param.query_value = param_value; | 681 | 46 | param.query_type = query_type; | 682 | 46 | param.num_rows = num_rows; | 683 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 46 | param.analyzer_ctx = analyzer_ctx; | 685 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 5 | if (iter->has_null()) { | 688 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 5 | } | 692 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 5 | bitmap_result = result; | 694 | 5 | bitmap_result.mask_out_null(); | 695 | | | 696 | 5 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 5 | return Status::OK(); | 703 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 120 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 120 | DCHECK(arguments.size() == 1); | 641 | 120 | DCHECK(data_type_with_names.size() == 1); | 642 | 120 | DCHECK(iterators.size() == 1); | 643 | 120 | auto* iter = iterators[0]; | 644 | 120 | auto data_type_with_name = data_type_with_names[0]; | 645 | 120 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 120 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 43 | return Status::OK(); | 650 | 43 | } | 651 | 77 | segment_v2::InvertedIndexQueryType query_type; | 652 | 77 | std::string_view name_view(name); | 653 | 77 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 77 | } else if (name_view == NameLess::name) { | 656 | 77 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 77 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 77 | if (segment_v2::is_range_query(query_type) && | 668 | 77 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 18 | return Status::OK(); | 671 | 18 | } | 672 | 59 | Field param_value; | 673 | 59 | arguments[0].column->get(0, param_value); | 674 | 59 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 59 | segment_v2::InvertedIndexParam param; | 678 | 59 | param.column_name = data_type_with_name.first; | 679 | 59 | param.column_type = data_type_with_name.second; | 680 | 59 | param.query_value = param_value; | 681 | 59 | param.query_type = query_type; | 682 | 59 | param.num_rows = num_rows; | 683 | 59 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 59 | param.analyzer_ctx = analyzer_ctx; | 685 | 59 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 40 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 40 | if (iter->has_null()) { | 688 | 40 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 40 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 40 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 40 | } | 692 | 40 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 40 | bitmap_result = result; | 694 | 40 | bitmap_result.mask_out_null(); | 695 | | | 696 | 40 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 40 | return Status::OK(); | 703 | 40 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 175 | DCHECK(arguments.size() == 1); | 641 | 175 | DCHECK(data_type_with_names.size() == 1); | 642 | 175 | DCHECK(iterators.size() == 1); | 643 | 175 | auto* iter = iterators[0]; | 644 | 175 | auto data_type_with_name = data_type_with_names[0]; | 645 | 175 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 94 | return Status::OK(); | 650 | 94 | } | 651 | 81 | segment_v2::InvertedIndexQueryType query_type; | 652 | 81 | std::string_view name_view(name); | 653 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 81 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 81 | } else if (name_view == NameLessOrEquals::name) { | 658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 81 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 81 | if (segment_v2::is_range_query(query_type) && | 668 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 51 | return Status::OK(); | 671 | 51 | } | 672 | 30 | Field param_value; | 673 | 30 | arguments[0].column->get(0, param_value); | 674 | 30 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 30 | segment_v2::InvertedIndexParam param; | 678 | 30 | param.column_name = data_type_with_name.first; | 679 | 30 | param.column_type = data_type_with_name.second; | 680 | 30 | param.query_value = param_value; | 681 | 30 | param.query_type = query_type; | 682 | 30 | param.num_rows = num_rows; | 683 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 30 | param.analyzer_ctx = analyzer_ctx; | 685 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 9 | if (iter->has_null()) { | 688 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 9 | } | 692 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 9 | bitmap_result = result; | 694 | 9 | bitmap_result.mask_out_null(); | 695 | | | 696 | 9 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 9 | return Status::OK(); | 703 | 9 | } |
|
704 | | |
705 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
706 | 320k | uint32_t result, size_t input_rows_count) const override { |
707 | 320k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 320k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 320k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 320k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 320k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 320k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 320k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 320k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
717 | | |
718 | | /// The case when arguments are the same (tautological comparison). Return constant. |
719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
721 | 320k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 320k | col_left_untyped == col_right_untyped) { |
723 | | /// Always true: =, <=, >= |
724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
728 | 0 | block.get_by_position(result).column = |
729 | 0 | DataTypeUInt8() |
730 | 0 | .create_column_const(input_rows_count, |
731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
732 | 0 | ->convert_to_full_column_if_const(); |
733 | 0 | return Status::OK(); |
734 | 0 | } else { |
735 | 0 | block.get_by_position(result).column = |
736 | 0 | DataTypeUInt8() |
737 | 0 | .create_column_const(input_rows_count, |
738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
739 | 0 | ->convert_to_full_column_if_const(); |
740 | 0 | return Status::OK(); |
741 | 0 | } |
742 | 0 | } |
743 | | |
744 | 587k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 587k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 587k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 99.0k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 99.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 99.0k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 15.5k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 15.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 15.5k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 206k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 206k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 206k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 84.4k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 84.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 84.4k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 24.4k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 24.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 24.4k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 157k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 157k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 157k | }; |
|
747 | | |
748 | 320k | if (can_compare(left_type->get_primitive_type()) && |
749 | 320k | can_compare(right_type->get_primitive_type())) { |
750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
751 | 267k | if (!left_type->equals_ignore_precision(*right_type)) { |
752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
753 | 0 | get_name(), left_type->get_name(), |
754 | 0 | right_type->get_name()); |
755 | 0 | } |
756 | 267k | } |
757 | | |
758 | 320k | auto compare_type = left_type->get_primitive_type(); |
759 | 320k | switch (compare_type) { |
760 | 2.10k | case TYPE_BOOLEAN: |
761 | 2.10k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 36.7k | case TYPE_DATEV2: |
763 | 36.7k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 2.59k | case TYPE_DATETIMEV2: |
765 | 2.59k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 7 | case TYPE_TIMESTAMPTZ: |
767 | 7 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 9.15k | case TYPE_TINYINT: |
769 | 9.15k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 2.98k | case TYPE_SMALLINT: |
771 | 2.98k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 170k | case TYPE_INT: |
773 | 170k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 36.6k | case TYPE_BIGINT: |
775 | 36.6k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 746 | case TYPE_LARGEINT: |
777 | 746 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 61 | case TYPE_IPV4: |
779 | 61 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
780 | 37 | case TYPE_IPV6: |
781 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
782 | 990 | case TYPE_FLOAT: |
783 | 990 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 3.98k | case TYPE_DOUBLE: |
785 | 3.98k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
786 | 4 | case TYPE_TIMEV2: |
787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
788 | 0 | case TYPE_DECIMALV2: |
789 | 500 | case TYPE_DECIMAL32: |
790 | 20.3k | case TYPE_DECIMAL64: |
791 | 24.6k | case TYPE_DECIMAL128I: |
792 | 24.7k | case TYPE_DECIMAL256: |
793 | 24.7k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 24.7k | col_with_type_and_name_right); |
795 | 1.25k | case TYPE_CHAR: |
796 | 10.1k | case TYPE_VARCHAR: |
797 | 28.6k | case TYPE_STRING: |
798 | 28.6k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 145 | default: |
800 | 145 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 145 | col_with_type_and_name_right); |
802 | 320k | } |
803 | 0 | return Status::OK(); |
804 | 320k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 62.1k | uint32_t result, size_t input_rows_count) const override { | 707 | 62.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 62.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 62.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 62.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 62.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 62.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 62.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 62.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 62.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 62.1k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 62.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 62.1k | }; | 747 | | | 748 | 62.1k | if (can_compare(left_type->get_primitive_type()) && | 749 | 62.1k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 36.8k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 36.8k | } | 757 | | | 758 | 62.1k | auto compare_type = left_type->get_primitive_type(); | 759 | 62.1k | switch (compare_type) { | 760 | 1.61k | case TYPE_BOOLEAN: | 761 | 1.61k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.68k | case TYPE_DATEV2: | 763 | 1.68k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 644 | case TYPE_DATETIMEV2: | 765 | 644 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 5.39k | case TYPE_TINYINT: | 769 | 5.39k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 753 | case TYPE_SMALLINT: | 771 | 753 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 8.21k | case TYPE_INT: | 773 | 8.21k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 17.3k | case TYPE_BIGINT: | 775 | 17.3k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 135 | case TYPE_LARGEINT: | 777 | 135 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 19 | case TYPE_IPV6: | 781 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 86 | case TYPE_FLOAT: | 783 | 86 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 899 | case TYPE_DOUBLE: | 785 | 899 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 4 | case TYPE_TIMEV2: | 787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 247 | case TYPE_DECIMAL32: | 790 | 498 | case TYPE_DECIMAL64: | 791 | 1.62k | case TYPE_DECIMAL128I: | 792 | 1.65k | case TYPE_DECIMAL256: | 793 | 1.65k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.65k | col_with_type_and_name_right); | 795 | 928 | case TYPE_CHAR: | 796 | 8.72k | case TYPE_VARCHAR: | 797 | 23.6k | case TYPE_STRING: | 798 | 23.6k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 17 | default: | 800 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 17 | col_with_type_and_name_right); | 802 | 62.1k | } | 803 | 0 | return Status::OK(); | 804 | 62.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 9.20k | uint32_t result, size_t input_rows_count) const override { | 707 | 9.20k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 9.20k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 9.20k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 9.20k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 9.20k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 9.20k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 9.20k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 9.20k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 9.20k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 9.20k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 9.20k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 9.20k | }; | 747 | | | 748 | 9.20k | if (can_compare(left_type->get_primitive_type()) && | 749 | 9.20k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 6.30k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 6.30k | } | 757 | | | 758 | 9.20k | auto compare_type = left_type->get_primitive_type(); | 759 | 9.20k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 82 | case TYPE_DATEV2: | 763 | 82 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 2 | case TYPE_DATETIMEV2: | 765 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 0 | case TYPE_TIMESTAMPTZ: | 767 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 100 | case TYPE_TINYINT: | 769 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 10 | case TYPE_SMALLINT: | 771 | 10 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 3.62k | case TYPE_INT: | 773 | 3.62k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 2.38k | case TYPE_BIGINT: | 775 | 2.38k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 0 | case TYPE_LARGEINT: | 777 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 0 | case TYPE_IPV4: | 779 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 48 | case TYPE_FLOAT: | 783 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 60 | case TYPE_DOUBLE: | 785 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 0 | case TYPE_DECIMAL32: | 790 | 66 | case TYPE_DECIMAL64: | 791 | 390 | case TYPE_DECIMAL128I: | 792 | 420 | case TYPE_DECIMAL256: | 793 | 420 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 420 | col_with_type_and_name_right); | 795 | 9 | case TYPE_CHAR: | 796 | 307 | case TYPE_VARCHAR: | 797 | 2.47k | case TYPE_STRING: | 798 | 2.47k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 8 | default: | 800 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 8 | col_with_type_and_name_right); | 802 | 9.20k | } | 803 | 0 | return Status::OK(); | 804 | 9.20k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 112k | uint32_t result, size_t input_rows_count) const override { | 707 | 112k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 112k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 112k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 112k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 112k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 112k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 112k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 112k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 112k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 112k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 112k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 112k | }; | 747 | | | 748 | 112k | if (can_compare(left_type->get_primitive_type()) && | 749 | 112k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 93.9k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 93.9k | } | 757 | | | 758 | 112k | auto compare_type = left_type->get_primitive_type(); | 759 | 112k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.30k | case TYPE_DATEV2: | 763 | 1.30k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 94 | case TYPE_DATETIMEV2: | 765 | 94 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 1 | case TYPE_TIMESTAMPTZ: | 767 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 1.33k | case TYPE_TINYINT: | 769 | 1.33k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.79k | case TYPE_SMALLINT: | 771 | 1.79k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 72.7k | case TYPE_INT: | 773 | 72.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 13.7k | case TYPE_BIGINT: | 775 | 13.7k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 253 | case TYPE_LARGEINT: | 777 | 253 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 4 | case TYPE_IPV4: | 779 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 236 | case TYPE_FLOAT: | 783 | 236 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 2.36k | case TYPE_DOUBLE: | 785 | 2.36k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 46 | case TYPE_DECIMAL32: | 790 | 16.7k | case TYPE_DECIMAL64: | 791 | 18.1k | case TYPE_DECIMAL128I: | 792 | 18.1k | case TYPE_DECIMAL256: | 793 | 18.1k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 18.1k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 174 | case TYPE_STRING: | 798 | 174 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 9 | default: | 800 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 9 | col_with_type_and_name_right); | 802 | 112k | } | 803 | 0 | return Status::OK(); | 804 | 112k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 42.8k | uint32_t result, size_t input_rows_count) const override { | 707 | 42.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 42.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 42.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 42.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 42.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 42.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 42.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 42.8k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 42.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 42.8k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 42.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 42.8k | }; | 747 | | | 748 | 42.8k | if (can_compare(left_type->get_primitive_type()) && | 749 | 42.8k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 41.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 41.6k | } | 757 | | | 758 | 42.8k | auto compare_type = left_type->get_primitive_type(); | 759 | 42.8k | switch (compare_type) { | 760 | 182 | case TYPE_BOOLEAN: | 761 | 182 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.29k | case TYPE_DATEV2: | 763 | 2.29k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 786 | case TYPE_DATETIMEV2: | 765 | 786 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 1 | case TYPE_TIMESTAMPTZ: | 767 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 59 | case TYPE_TINYINT: | 769 | 59 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 73 | case TYPE_SMALLINT: | 771 | 73 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 37.1k | case TYPE_INT: | 773 | 37.1k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 537 | case TYPE_BIGINT: | 775 | 537 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 55 | case TYPE_LARGEINT: | 777 | 55 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 11 | case TYPE_IPV4: | 779 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 230 | case TYPE_FLOAT: | 783 | 230 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 149 | case TYPE_DOUBLE: | 785 | 149 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 12 | case TYPE_DECIMAL32: | 790 | 362 | case TYPE_DECIMAL64: | 791 | 424 | case TYPE_DECIMAL128I: | 792 | 445 | case TYPE_DECIMAL256: | 793 | 445 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 445 | col_with_type_and_name_right); | 795 | 42 | case TYPE_CHAR: | 796 | 301 | case TYPE_VARCHAR: | 797 | 733 | case TYPE_STRING: | 798 | 733 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 58 | default: | 800 | 58 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 58 | col_with_type_and_name_right); | 802 | 42.8k | } | 803 | 0 | return Status::OK(); | 804 | 42.8k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 13.0k | uint32_t result, size_t input_rows_count) const override { | 707 | 13.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 13.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 13.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 13.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 13.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 13.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 13.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 13.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 13.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 13.0k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 13.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 13.0k | }; | 747 | | | 748 | 13.0k | if (can_compare(left_type->get_primitive_type()) && | 749 | 13.0k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 11.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 11.4k | } | 757 | | | 758 | 13.0k | auto compare_type = left_type->get_primitive_type(); | 759 | 13.0k | switch (compare_type) { | 760 | 101 | case TYPE_BOOLEAN: | 761 | 101 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.52k | case TYPE_DATEV2: | 763 | 2.52k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 626 | case TYPE_DATETIMEV2: | 765 | 626 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.16k | case TYPE_TINYINT: | 769 | 2.16k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 266 | case TYPE_SMALLINT: | 771 | 266 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 3.32k | case TYPE_INT: | 773 | 3.32k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.66k | case TYPE_BIGINT: | 775 | 1.66k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 244 | case TYPE_LARGEINT: | 777 | 244 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 16 | case TYPE_IPV6: | 781 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 164 | case TYPE_FLOAT: | 783 | 164 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 371 | case TYPE_DOUBLE: | 785 | 371 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 188 | case TYPE_DECIMAL32: | 790 | 416 | case TYPE_DECIMAL64: | 791 | 871 | case TYPE_DECIMAL128I: | 792 | 872 | case TYPE_DECIMAL256: | 793 | 872 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 872 | col_with_type_and_name_right); | 795 | 172 | case TYPE_CHAR: | 796 | 343 | case TYPE_VARCHAR: | 797 | 644 | case TYPE_STRING: | 798 | 644 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 11 | default: | 800 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 11 | col_with_type_and_name_right); | 802 | 13.0k | } | 803 | 0 | return Status::OK(); | 804 | 13.0k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 80.8k | uint32_t result, size_t input_rows_count) const override { | 707 | 80.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 80.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 80.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 80.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 80.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 80.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 80.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 80.8k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 80.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 80.8k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 80.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 80.8k | }; | 747 | | | 748 | 80.8k | if (can_compare(left_type->get_primitive_type()) && | 749 | 80.8k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 76.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 76.7k | } | 757 | | | 758 | 80.8k | auto compare_type = left_type->get_primitive_type(); | 759 | 80.8k | switch (compare_type) { | 760 | 206 | case TYPE_BOOLEAN: | 761 | 206 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 28.8k | case TYPE_DATEV2: | 763 | 28.8k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 438 | case TYPE_DATETIMEV2: | 765 | 438 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 1 | case TYPE_TIMESTAMPTZ: | 767 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 95 | case TYPE_TINYINT: | 769 | 95 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 96 | case TYPE_SMALLINT: | 771 | 96 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 45.7k | case TYPE_INT: | 773 | 45.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 868 | case TYPE_BIGINT: | 775 | 868 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 59 | case TYPE_LARGEINT: | 777 | 59 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 10 | case TYPE_IPV4: | 779 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 226 | case TYPE_FLOAT: | 783 | 226 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 145 | case TYPE_DOUBLE: | 785 | 145 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 7 | case TYPE_DECIMAL32: | 790 | 2.24k | case TYPE_DECIMAL64: | 791 | 3.14k | case TYPE_DECIMAL128I: | 792 | 3.15k | case TYPE_DECIMAL256: | 793 | 3.15k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 3.15k | col_with_type_and_name_right); | 795 | 94 | case TYPE_CHAR: | 796 | 423 | case TYPE_VARCHAR: | 797 | 948 | case TYPE_STRING: | 798 | 948 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 42 | default: | 800 | 42 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 42 | col_with_type_and_name_right); | 802 | 80.8k | } | 803 | 0 | return Status::OK(); | 804 | 80.8k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |