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 <limits> |
24 | | #include <type_traits> |
25 | | |
26 | | #include "common/logging.h" |
27 | | #include "core/accurate_comparison.h" |
28 | | #include "core/assert_cast.h" |
29 | | #include "core/column/column_const.h" |
30 | | #include "core/column/column_decimal.h" |
31 | | #include "core/column/column_nullable.h" |
32 | | #include "core/column/column_string.h" |
33 | | #include "core/data_type/data_type_number.h" |
34 | | #include "core/data_type/data_type_string.h" |
35 | | #include "core/data_type/define_primitive_type.h" |
36 | | #include "core/decimal_comparison.h" |
37 | | #include "core/field.h" |
38 | | #include "core/memcmp_small.h" |
39 | | #include "core/value/vdatetime_value.h" |
40 | | #include "exprs/function/function.h" |
41 | | #include "exprs/function/function_helpers.h" |
42 | | #include "exprs/function/functions_logical.h" |
43 | | #include "storage/index/index_reader_helper.h" |
44 | | |
45 | | namespace doris { |
46 | | |
47 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
48 | | * The comparison functions always return 0 or 1 (UInt8). |
49 | | * |
50 | | * You can compare the following types: |
51 | | * - numbers and decimals; |
52 | | * - strings and fixed strings; |
53 | | * - dates; |
54 | | * - datetimes; |
55 | | * within each group, but not from different groups; |
56 | | * - tuples (lexicographic comparison). |
57 | | * |
58 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
59 | | */ |
60 | | |
61 | | template <typename A, typename B, typename Op> |
62 | | struct NumComparisonImpl { |
63 | | /// 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. |
64 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
65 | 7.38k | PaddedPODArray<UInt8>& c) { |
66 | 7.38k | size_t size = a.size(); |
67 | 7.38k | const A* __restrict a_pos = a.data(); |
68 | 7.38k | const B* __restrict b_pos = b.data(); |
69 | 7.38k | UInt8* __restrict c_pos = c.data(); |
70 | 7.38k | const A* __restrict a_end = a_pos + size; |
71 | | |
72 | 5.26M | while (a_pos < a_end) { |
73 | 5.25M | *c_pos = Op::apply(*a_pos, *b_pos); |
74 | 5.25M | ++a_pos; |
75 | 5.25M | ++b_pos; |
76 | 5.25M | ++c_pos; |
77 | 5.25M | } |
78 | 7.38k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 61 | PaddedPODArray<UInt8>& c) { | 66 | 61 | size_t size = a.size(); | 67 | 61 | const A* __restrict a_pos = a.data(); | 68 | 61 | const B* __restrict b_pos = b.data(); | 69 | 61 | UInt8* __restrict c_pos = c.data(); | 70 | 61 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 122 | while (a_pos < a_end) { | 73 | 61 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 61 | ++a_pos; | 75 | 61 | ++b_pos; | 76 | 61 | ++c_pos; | 77 | 61 | } | 78 | 61 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 200 | PaddedPODArray<UInt8>& c) { | 66 | 200 | size_t size = a.size(); | 67 | 200 | const A* __restrict a_pos = a.data(); | 68 | 200 | const B* __restrict b_pos = b.data(); | 69 | 200 | UInt8* __restrict c_pos = c.data(); | 70 | 200 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 406 | while (a_pos < a_end) { | 73 | 206 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 206 | ++a_pos; | 75 | 206 | ++b_pos; | 76 | 206 | ++c_pos; | 77 | 206 | } | 78 | 200 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 237 | PaddedPODArray<UInt8>& c) { | 66 | 237 | size_t size = a.size(); | 67 | 237 | const A* __restrict a_pos = a.data(); | 68 | 237 | const B* __restrict b_pos = b.data(); | 69 | 237 | UInt8* __restrict c_pos = c.data(); | 70 | 237 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 492 | while (a_pos < a_end) { | 73 | 255 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 255 | ++a_pos; | 75 | 255 | ++b_pos; | 76 | 255 | ++c_pos; | 77 | 255 | } | 78 | 237 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 2 | PaddedPODArray<UInt8>& c) { | 66 | 2 | size_t size = a.size(); | 67 | 2 | const A* __restrict a_pos = a.data(); | 68 | 2 | const B* __restrict b_pos = b.data(); | 69 | 2 | UInt8* __restrict c_pos = c.data(); | 70 | 2 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 12 | while (a_pos < a_end) { | 73 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 10 | ++a_pos; | 75 | 10 | ++b_pos; | 76 | 10 | ++c_pos; | 77 | 10 | } | 78 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 139 | PaddedPODArray<UInt8>& c) { | 66 | 139 | size_t size = a.size(); | 67 | 139 | const A* __restrict a_pos = a.data(); | 68 | 139 | const B* __restrict b_pos = b.data(); | 69 | 139 | UInt8* __restrict c_pos = c.data(); | 70 | 139 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 420 | while (a_pos < a_end) { | 73 | 281 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 281 | ++a_pos; | 75 | 281 | ++b_pos; | 76 | 281 | ++c_pos; | 77 | 281 | } | 78 | 139 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 71 | PaddedPODArray<UInt8>& c) { | 66 | 71 | size_t size = a.size(); | 67 | 71 | const A* __restrict a_pos = a.data(); | 68 | 71 | const B* __restrict b_pos = b.data(); | 69 | 71 | UInt8* __restrict c_pos = c.data(); | 70 | 71 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 142 | while (a_pos < a_end) { | 73 | 71 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 71 | ++a_pos; | 75 | 71 | ++b_pos; | 76 | 71 | ++c_pos; | 77 | 71 | } | 78 | 71 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 280 | PaddedPODArray<UInt8>& c) { | 66 | 280 | size_t size = a.size(); | 67 | 280 | const A* __restrict a_pos = a.data(); | 68 | 280 | const B* __restrict b_pos = b.data(); | 69 | 280 | UInt8* __restrict c_pos = c.data(); | 70 | 280 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.72k | while (a_pos < a_end) { | 73 | 1.44k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.44k | ++a_pos; | 75 | 1.44k | ++b_pos; | 76 | 1.44k | ++c_pos; | 77 | 1.44k | } | 78 | 280 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 250 | PaddedPODArray<UInt8>& c) { | 66 | 250 | size_t size = a.size(); | 67 | 250 | const A* __restrict a_pos = a.data(); | 68 | 250 | const B* __restrict b_pos = b.data(); | 69 | 250 | UInt8* __restrict c_pos = c.data(); | 70 | 250 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.63k | while (a_pos < a_end) { | 73 | 1.38k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.38k | ++a_pos; | 75 | 1.38k | ++b_pos; | 76 | 1.38k | ++c_pos; | 77 | 1.38k | } | 78 | 250 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 71 | PaddedPODArray<UInt8>& c) { | 66 | 71 | size_t size = a.size(); | 67 | 71 | const A* __restrict a_pos = a.data(); | 68 | 71 | const B* __restrict b_pos = b.data(); | 69 | 71 | UInt8* __restrict c_pos = c.data(); | 70 | 71 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 142 | while (a_pos < a_end) { | 73 | 71 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 71 | ++a_pos; | 75 | 71 | ++b_pos; | 76 | 71 | ++c_pos; | 77 | 71 | } | 78 | 71 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 5 | PaddedPODArray<UInt8>& c) { | 66 | 5 | size_t size = a.size(); | 67 | 5 | const A* __restrict a_pos = a.data(); | 68 | 5 | const B* __restrict b_pos = b.data(); | 69 | 5 | UInt8* __restrict c_pos = c.data(); | 70 | 5 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5 | ++a_pos; | 75 | 5 | ++b_pos; | 76 | 5 | ++c_pos; | 77 | 5 | } | 78 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 13 | PaddedPODArray<UInt8>& c) { | 66 | 13 | size_t size = a.size(); | 67 | 13 | const A* __restrict a_pos = a.data(); | 68 | 13 | const B* __restrict b_pos = b.data(); | 69 | 13 | UInt8* __restrict c_pos = c.data(); | 70 | 13 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 26 | while (a_pos < a_end) { | 73 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 13 | ++a_pos; | 75 | 13 | ++b_pos; | 76 | 13 | ++c_pos; | 77 | 13 | } | 78 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 88 | PaddedPODArray<UInt8>& c) { | 66 | 88 | size_t size = a.size(); | 67 | 88 | const A* __restrict a_pos = a.data(); | 68 | 88 | const B* __restrict b_pos = b.data(); | 69 | 88 | UInt8* __restrict c_pos = c.data(); | 70 | 88 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 195 | while (a_pos < a_end) { | 73 | 107 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 107 | ++a_pos; | 75 | 107 | ++b_pos; | 76 | 107 | ++c_pos; | 77 | 107 | } | 78 | 88 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 92 | PaddedPODArray<UInt8>& c) { | 66 | 92 | size_t size = a.size(); | 67 | 92 | const A* __restrict a_pos = a.data(); | 68 | 92 | const B* __restrict b_pos = b.data(); | 69 | 92 | UInt8* __restrict c_pos = c.data(); | 70 | 92 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 205 | while (a_pos < a_end) { | 73 | 113 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 113 | ++a_pos; | 75 | 113 | ++b_pos; | 76 | 113 | ++c_pos; | 77 | 113 | } | 78 | 92 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 4 | PaddedPODArray<UInt8>& c) { | 66 | 4 | size_t size = a.size(); | 67 | 4 | const A* __restrict a_pos = a.data(); | 68 | 4 | const B* __restrict b_pos = b.data(); | 69 | 4 | UInt8* __restrict c_pos = c.data(); | 70 | 4 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 8 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 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 | 65 | 39 | PaddedPODArray<UInt8>& c) { | 66 | 39 | size_t size = a.size(); | 67 | 39 | const A* __restrict a_pos = a.data(); | 68 | 39 | const B* __restrict b_pos = b.data(); | 69 | 39 | UInt8* __restrict c_pos = c.data(); | 70 | 39 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 108 | while (a_pos < a_end) { | 73 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 69 | ++a_pos; | 75 | 69 | ++b_pos; | 76 | 69 | ++c_pos; | 77 | 69 | } | 78 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 56 | PaddedPODArray<UInt8>& c) { | 66 | 56 | size_t size = a.size(); | 67 | 56 | const A* __restrict a_pos = a.data(); | 68 | 56 | const B* __restrict b_pos = b.data(); | 69 | 56 | UInt8* __restrict c_pos = c.data(); | 70 | 56 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 252 | while (a_pos < a_end) { | 73 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 196 | ++a_pos; | 75 | 196 | ++b_pos; | 76 | 196 | ++c_pos; | 77 | 196 | } | 78 | 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 | 65 | 520 | PaddedPODArray<UInt8>& c) { | 66 | 520 | size_t size = a.size(); | 67 | 520 | const A* __restrict a_pos = a.data(); | 68 | 520 | const B* __restrict b_pos = b.data(); | 69 | 520 | UInt8* __restrict c_pos = c.data(); | 70 | 520 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 297k | while (a_pos < a_end) { | 73 | 297k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 297k | ++a_pos; | 75 | 297k | ++b_pos; | 76 | 297k | ++c_pos; | 77 | 297k | } | 78 | 520 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 317 | PaddedPODArray<UInt8>& c) { | 66 | 317 | size_t size = a.size(); | 67 | 317 | const A* __restrict a_pos = a.data(); | 68 | 317 | const B* __restrict b_pos = b.data(); | 69 | 317 | UInt8* __restrict c_pos = c.data(); | 70 | 317 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.73k | while (a_pos < a_end) { | 73 | 5.41k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5.41k | ++a_pos; | 75 | 5.41k | ++b_pos; | 76 | 5.41k | ++c_pos; | 77 | 5.41k | } | 78 | 317 | } |
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 | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 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 | 65 | 1.03k | PaddedPODArray<UInt8>& c) { | 66 | 1.03k | size_t size = a.size(); | 67 | 1.03k | const A* __restrict a_pos = a.data(); | 68 | 1.03k | const B* __restrict b_pos = b.data(); | 69 | 1.03k | UInt8* __restrict c_pos = c.data(); | 70 | 1.03k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 3.71M | while (a_pos < a_end) { | 73 | 3.70M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 3.70M | ++a_pos; | 75 | 3.70M | ++b_pos; | 76 | 3.70M | ++c_pos; | 77 | 3.70M | } | 78 | 1.03k | } |
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 | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 38 | PaddedPODArray<UInt8>& c) { | 66 | 38 | size_t size = a.size(); | 67 | 38 | const A* __restrict a_pos = a.data(); | 68 | 38 | const B* __restrict b_pos = b.data(); | 69 | 38 | UInt8* __restrict c_pos = c.data(); | 70 | 38 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 322 | while (a_pos < a_end) { | 73 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 284 | ++a_pos; | 75 | 284 | ++b_pos; | 76 | 284 | ++c_pos; | 77 | 284 | } | 78 | 38 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 112 | PaddedPODArray<UInt8>& c) { | 66 | 112 | size_t size = a.size(); | 67 | 112 | const A* __restrict a_pos = a.data(); | 68 | 112 | const B* __restrict b_pos = b.data(); | 69 | 112 | UInt8* __restrict c_pos = c.data(); | 70 | 112 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 376 | while (a_pos < a_end) { | 73 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 264 | ++a_pos; | 75 | 264 | ++b_pos; | 76 | 264 | ++c_pos; | 77 | 264 | } | 78 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 39 | PaddedPODArray<UInt8>& c) { | 66 | 39 | size_t size = a.size(); | 67 | 39 | const A* __restrict a_pos = a.data(); | 68 | 39 | const B* __restrict b_pos = b.data(); | 69 | 39 | UInt8* __restrict c_pos = c.data(); | 70 | 39 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 235 | while (a_pos < a_end) { | 73 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 196 | ++a_pos; | 75 | 196 | ++b_pos; | 76 | 196 | ++c_pos; | 77 | 196 | } | 78 | 39 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 64 | PaddedPODArray<UInt8>& c) { | 66 | 64 | size_t size = a.size(); | 67 | 64 | const A* __restrict a_pos = a.data(); | 68 | 64 | const B* __restrict b_pos = b.data(); | 69 | 64 | UInt8* __restrict c_pos = c.data(); | 70 | 64 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 571 | while (a_pos < a_end) { | 73 | 507 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 507 | ++a_pos; | 75 | 507 | ++b_pos; | 76 | 507 | ++c_pos; | 77 | 507 | } | 78 | 64 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 2 | PaddedPODArray<UInt8>& c) { | 66 | 2 | size_t size = a.size(); | 67 | 2 | const A* __restrict a_pos = a.data(); | 68 | 2 | const B* __restrict b_pos = b.data(); | 69 | 2 | UInt8* __restrict c_pos = c.data(); | 70 | 2 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 31 | PaddedPODArray<UInt8>& c) { | 66 | 31 | size_t size = a.size(); | 67 | 31 | const A* __restrict a_pos = a.data(); | 68 | 31 | const B* __restrict b_pos = b.data(); | 69 | 31 | UInt8* __restrict c_pos = c.data(); | 70 | 31 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 104 | while (a_pos < a_end) { | 73 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 73 | ++a_pos; | 75 | 73 | ++b_pos; | 76 | 73 | ++c_pos; | 77 | 73 | } | 78 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 8 | PaddedPODArray<UInt8>& c) { | 66 | 8 | size_t size = a.size(); | 67 | 8 | const A* __restrict a_pos = a.data(); | 68 | 8 | const B* __restrict b_pos = b.data(); | 69 | 8 | UInt8* __restrict c_pos = c.data(); | 70 | 8 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 67 | while (a_pos < a_end) { | 73 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 59 | ++a_pos; | 75 | 59 | ++b_pos; | 76 | 59 | ++c_pos; | 77 | 59 | } | 78 | 8 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 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 | 65 | 3 | PaddedPODArray<UInt8>& c) { | 66 | 3 | size_t size = a.size(); | 67 | 3 | const A* __restrict a_pos = a.data(); | 68 | 3 | const B* __restrict b_pos = b.data(); | 69 | 3 | UInt8* __restrict c_pos = c.data(); | 70 | 3 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 7 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 3 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 8 | PaddedPODArray<UInt8>& c) { | 66 | 8 | size_t size = a.size(); | 67 | 8 | const A* __restrict a_pos = a.data(); | 68 | 8 | const B* __restrict b_pos = b.data(); | 69 | 8 | UInt8* __restrict c_pos = c.data(); | 70 | 8 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 62 | while (a_pos < a_end) { | 73 | 54 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 54 | ++a_pos; | 75 | 54 | ++b_pos; | 76 | 54 | ++c_pos; | 77 | 54 | } | 78 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 24 | PaddedPODArray<UInt8>& c) { | 66 | 24 | size_t size = a.size(); | 67 | 24 | const A* __restrict a_pos = a.data(); | 68 | 24 | const B* __restrict b_pos = b.data(); | 69 | 24 | UInt8* __restrict c_pos = c.data(); | 70 | 24 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 67 | while (a_pos < a_end) { | 73 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 43 | ++a_pos; | 75 | 43 | ++b_pos; | 76 | 43 | ++c_pos; | 77 | 43 | } | 78 | 24 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 71 | PaddedPODArray<UInt8>& c) { | 66 | 71 | size_t size = a.size(); | 67 | 71 | const A* __restrict a_pos = a.data(); | 68 | 71 | const B* __restrict b_pos = b.data(); | 69 | 71 | UInt8* __restrict c_pos = c.data(); | 70 | 71 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 142 | while (a_pos < a_end) { | 73 | 71 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 71 | ++a_pos; | 75 | 71 | ++b_pos; | 76 | 71 | ++c_pos; | 77 | 71 | } | 78 | 71 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1.66k | PaddedPODArray<UInt8>& c) { | 66 | 1.66k | size_t size = a.size(); | 67 | 1.66k | const A* __restrict a_pos = a.data(); | 68 | 1.66k | const B* __restrict b_pos = b.data(); | 69 | 1.66k | UInt8* __restrict c_pos = c.data(); | 70 | 1.66k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.22M | while (a_pos < a_end) { | 73 | 1.22M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.22M | ++a_pos; | 75 | 1.22M | ++b_pos; | 76 | 1.22M | ++c_pos; | 77 | 1.22M | } | 78 | 1.66k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 244 | PaddedPODArray<UInt8>& c) { | 66 | 244 | size_t size = a.size(); | 67 | 244 | const A* __restrict a_pos = a.data(); | 68 | 244 | const B* __restrict b_pos = b.data(); | 69 | 244 | UInt8* __restrict c_pos = c.data(); | 70 | 244 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 488 | while (a_pos < a_end) { | 73 | 244 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 244 | ++a_pos; | 75 | 244 | ++b_pos; | 76 | 244 | ++c_pos; | 77 | 244 | } | 78 | 244 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 132 | PaddedPODArray<UInt8>& c) { | 66 | 132 | size_t size = a.size(); | 67 | 132 | const A* __restrict a_pos = a.data(); | 68 | 132 | const B* __restrict b_pos = b.data(); | 69 | 132 | UInt8* __restrict c_pos = c.data(); | 70 | 132 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 264 | while (a_pos < a_end) { | 73 | 132 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 132 | ++a_pos; | 75 | 132 | ++b_pos; | 76 | 132 | ++c_pos; | 77 | 132 | } | 78 | 132 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 117 | PaddedPODArray<UInt8>& c) { | 66 | 117 | size_t size = a.size(); | 67 | 117 | const A* __restrict a_pos = a.data(); | 68 | 117 | const B* __restrict b_pos = b.data(); | 69 | 117 | UInt8* __restrict c_pos = c.data(); | 70 | 117 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 236 | while (a_pos < a_end) { | 73 | 119 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 119 | ++a_pos; | 75 | 119 | ++b_pos; | 76 | 119 | ++c_pos; | 77 | 119 | } | 78 | 117 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 153 | PaddedPODArray<UInt8>& c) { | 66 | 153 | size_t size = a.size(); | 67 | 153 | const A* __restrict a_pos = a.data(); | 68 | 153 | const B* __restrict b_pos = b.data(); | 69 | 153 | UInt8* __restrict c_pos = c.data(); | 70 | 153 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 806 | while (a_pos < a_end) { | 73 | 653 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 653 | ++a_pos; | 75 | 653 | ++b_pos; | 76 | 653 | ++c_pos; | 77 | 653 | } | 78 | 153 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 190 | PaddedPODArray<UInt8>& c) { | 66 | 190 | size_t size = a.size(); | 67 | 190 | const A* __restrict a_pos = a.data(); | 68 | 190 | const B* __restrict b_pos = b.data(); | 69 | 190 | UInt8* __restrict c_pos = c.data(); | 70 | 190 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.19k | while (a_pos < a_end) { | 73 | 5.00k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5.00k | ++a_pos; | 75 | 5.00k | ++b_pos; | 76 | 5.00k | ++c_pos; | 77 | 5.00k | } | 78 | 190 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 137 | PaddedPODArray<UInt8>& c) { | 66 | 137 | size_t size = a.size(); | 67 | 137 | const A* __restrict a_pos = a.data(); | 68 | 137 | const B* __restrict b_pos = b.data(); | 69 | 137 | UInt8* __restrict c_pos = c.data(); | 70 | 137 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 274 | while (a_pos < a_end) { | 73 | 137 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 137 | ++a_pos; | 75 | 137 | ++b_pos; | 76 | 137 | ++c_pos; | 77 | 137 | } | 78 | 137 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 16 | PaddedPODArray<UInt8>& c) { | 66 | 16 | size_t size = a.size(); | 67 | 16 | const A* __restrict a_pos = a.data(); | 68 | 16 | const B* __restrict b_pos = b.data(); | 69 | 16 | UInt8* __restrict c_pos = c.data(); | 70 | 16 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 32 | while (a_pos < a_end) { | 73 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 16 | ++a_pos; | 75 | 16 | ++b_pos; | 76 | 16 | ++c_pos; | 77 | 16 | } | 78 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 16 | PaddedPODArray<UInt8>& c) { | 66 | 16 | size_t size = a.size(); | 67 | 16 | const A* __restrict a_pos = a.data(); | 68 | 16 | const B* __restrict b_pos = b.data(); | 69 | 16 | UInt8* __restrict c_pos = c.data(); | 70 | 16 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 32 | while (a_pos < a_end) { | 73 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 16 | ++a_pos; | 75 | 16 | ++b_pos; | 76 | 16 | ++c_pos; | 77 | 16 | } | 78 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 128 | PaddedPODArray<UInt8>& c) { | 66 | 128 | size_t size = a.size(); | 67 | 128 | const A* __restrict a_pos = a.data(); | 68 | 128 | const B* __restrict b_pos = b.data(); | 69 | 128 | UInt8* __restrict c_pos = c.data(); | 70 | 128 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 275 | while (a_pos < a_end) { | 73 | 147 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 147 | ++a_pos; | 75 | 147 | ++b_pos; | 76 | 147 | ++c_pos; | 77 | 147 | } | 78 | 128 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 134 | PaddedPODArray<UInt8>& c) { | 66 | 134 | size_t size = a.size(); | 67 | 134 | const A* __restrict a_pos = a.data(); | 68 | 134 | const B* __restrict b_pos = b.data(); | 69 | 134 | UInt8* __restrict c_pos = c.data(); | 70 | 134 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 296 | while (a_pos < a_end) { | 73 | 162 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 162 | ++a_pos; | 75 | 162 | ++b_pos; | 76 | 162 | ++c_pos; | 77 | 162 | } | 78 | 134 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 407 | PaddedPODArray<UInt8>& c) { | 66 | 407 | size_t size = a.size(); | 67 | 407 | const A* __restrict a_pos = a.data(); | 68 | 407 | const B* __restrict b_pos = b.data(); | 69 | 407 | UInt8* __restrict c_pos = c.data(); | 70 | 407 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6.41k | while (a_pos < a_end) { | 73 | 6.01k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 6.01k | ++a_pos; | 75 | 6.01k | ++b_pos; | 76 | 6.01k | ++c_pos; | 77 | 6.01k | } | 78 | 407 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 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 | 65 | 10 | PaddedPODArray<UInt8>& c) { | 66 | 10 | size_t size = a.size(); | 67 | 10 | const A* __restrict a_pos = a.data(); | 68 | 10 | const B* __restrict b_pos = b.data(); | 69 | 10 | UInt8* __restrict c_pos = c.data(); | 70 | 10 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 33 | while (a_pos < a_end) { | 73 | 23 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 23 | ++a_pos; | 75 | 23 | ++b_pos; | 76 | 23 | ++c_pos; | 77 | 23 | } | 78 | 10 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 30 | PaddedPODArray<UInt8>& c) { | 66 | 30 | size_t size = a.size(); | 67 | 30 | const A* __restrict a_pos = a.data(); | 68 | 30 | const B* __restrict b_pos = b.data(); | 69 | 30 | UInt8* __restrict c_pos = c.data(); | 70 | 30 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 64 | while (a_pos < a_end) { | 73 | 34 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 34 | ++a_pos; | 75 | 34 | ++b_pos; | 76 | 34 | ++c_pos; | 77 | 34 | } | 78 | 30 | } |
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 | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
79 | | |
80 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
81 | 226k | PaddedPODArray<UInt8>& c) { |
82 | 226k | size_t size = a.size(); |
83 | 226k | const A* __restrict a_pos = a.data(); |
84 | 226k | UInt8* __restrict c_pos = c.data(); |
85 | 226k | const A* __restrict a_end = a_pos + size; |
86 | | |
87 | 159M | while (a_pos < a_end) { |
88 | 158M | *c_pos = Op::apply(*a_pos, b); |
89 | 158M | ++a_pos; |
90 | 158M | ++c_pos; |
91 | 158M | } |
92 | 226k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 1.54k | PaddedPODArray<UInt8>& c) { | 82 | 1.54k | size_t size = a.size(); | 83 | 1.54k | const A* __restrict a_pos = a.data(); | 84 | 1.54k | UInt8* __restrict c_pos = c.data(); | 85 | 1.54k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 5.04k | while (a_pos < a_end) { | 88 | 3.50k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.50k | ++a_pos; | 90 | 3.50k | ++c_pos; | 91 | 3.50k | } | 92 | 1.54k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 824 | PaddedPODArray<UInt8>& c) { | 82 | 824 | size_t size = a.size(); | 83 | 824 | const A* __restrict a_pos = a.data(); | 84 | 824 | UInt8* __restrict c_pos = c.data(); | 85 | 824 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 203k | while (a_pos < a_end) { | 88 | 202k | *c_pos = Op::apply(*a_pos, b); | 89 | 202k | ++a_pos; | 90 | 202k | ++c_pos; | 91 | 202k | } | 92 | 824 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 396 | PaddedPODArray<UInt8>& c) { | 82 | 396 | size_t size = a.size(); | 83 | 396 | const A* __restrict a_pos = a.data(); | 84 | 396 | UInt8* __restrict c_pos = c.data(); | 85 | 396 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 101k | while (a_pos < a_end) { | 88 | 100k | *c_pos = Op::apply(*a_pos, b); | 89 | 100k | ++a_pos; | 90 | 100k | ++c_pos; | 91 | 100k | } | 92 | 396 | } |
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 | 81 | 6.70k | PaddedPODArray<UInt8>& c) { | 82 | 6.70k | size_t size = a.size(); | 83 | 6.70k | const A* __restrict a_pos = a.data(); | 84 | 6.70k | UInt8* __restrict c_pos = c.data(); | 85 | 6.70k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 9.23M | while (a_pos < a_end) { | 88 | 9.23M | *c_pos = Op::apply(*a_pos, b); | 89 | 9.23M | ++a_pos; | 90 | 9.23M | ++c_pos; | 91 | 9.23M | } | 92 | 6.70k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.35k | PaddedPODArray<UInt8>& c) { | 82 | 1.35k | size_t size = a.size(); | 83 | 1.35k | const A* __restrict a_pos = a.data(); | 84 | 1.35k | UInt8* __restrict c_pos = c.data(); | 85 | 1.35k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 127k | while (a_pos < a_end) { | 88 | 126k | *c_pos = Op::apply(*a_pos, b); | 89 | 126k | ++a_pos; | 90 | 126k | ++c_pos; | 91 | 126k | } | 92 | 1.35k | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 30.7k | PaddedPODArray<UInt8>& c) { | 82 | 30.7k | size_t size = a.size(); | 83 | 30.7k | const A* __restrict a_pos = a.data(); | 84 | 30.7k | UInt8* __restrict c_pos = c.data(); | 85 | 30.7k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.03M | while (a_pos < a_end) { | 88 | 2.00M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.00M | ++a_pos; | 90 | 2.00M | ++c_pos; | 91 | 2.00M | } | 92 | 30.7k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 23.1k | PaddedPODArray<UInt8>& c) { | 82 | 23.1k | size_t size = a.size(); | 83 | 23.1k | const A* __restrict a_pos = a.data(); | 84 | 23.1k | UInt8* __restrict c_pos = c.data(); | 85 | 23.1k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.88M | while (a_pos < a_end) { | 88 | 2.86M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.86M | ++a_pos; | 90 | 2.86M | ++c_pos; | 91 | 2.86M | } | 92 | 23.1k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 73 | PaddedPODArray<UInt8>& c) { | 82 | 73 | size_t size = a.size(); | 83 | 73 | const A* __restrict a_pos = a.data(); | 84 | 73 | UInt8* __restrict c_pos = c.data(); | 85 | 73 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 101k | while (a_pos < a_end) { | 88 | 101k | *c_pos = Op::apply(*a_pos, b); | 89 | 101k | ++a_pos; | 90 | 101k | ++c_pos; | 91 | 101k | } | 92 | 73 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 15 | PaddedPODArray<UInt8>& c) { | 82 | 15 | size_t size = a.size(); | 83 | 15 | const A* __restrict a_pos = a.data(); | 84 | 15 | UInt8* __restrict c_pos = c.data(); | 85 | 15 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 129 | while (a_pos < a_end) { | 88 | 114 | *c_pos = Op::apply(*a_pos, b); | 89 | 114 | ++a_pos; | 90 | 114 | ++c_pos; | 91 | 114 | } | 92 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 6 | PaddedPODArray<UInt8>& c) { | 82 | 6 | size_t size = a.size(); | 83 | 6 | const A* __restrict a_pos = a.data(); | 84 | 6 | UInt8* __restrict c_pos = c.data(); | 85 | 6 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 12 | while (a_pos < a_end) { | 88 | 6 | *c_pos = Op::apply(*a_pos, b); | 89 | 6 | ++a_pos; | 90 | 6 | ++c_pos; | 91 | 6 | } | 92 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 4 | PaddedPODArray<UInt8>& c) { | 82 | 4 | size_t size = a.size(); | 83 | 4 | const A* __restrict a_pos = a.data(); | 84 | 4 | UInt8* __restrict c_pos = c.data(); | 85 | 4 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 26 | while (a_pos < a_end) { | 88 | 22 | *c_pos = Op::apply(*a_pos, b); | 89 | 22 | ++a_pos; | 90 | 22 | ++c_pos; | 91 | 22 | } | 92 | 4 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 296 | PaddedPODArray<UInt8>& c) { | 82 | 296 | size_t size = a.size(); | 83 | 296 | const A* __restrict a_pos = a.data(); | 84 | 296 | UInt8* __restrict c_pos = c.data(); | 85 | 296 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 701k | while (a_pos < a_end) { | 88 | 701k | *c_pos = Op::apply(*a_pos, b); | 89 | 701k | ++a_pos; | 90 | 701k | ++c_pos; | 91 | 701k | } | 92 | 296 | } |
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 | 81 | 39 | PaddedPODArray<UInt8>& c) { | 82 | 39 | size_t size = a.size(); | 83 | 39 | const A* __restrict a_pos = a.data(); | 84 | 39 | UInt8* __restrict c_pos = c.data(); | 85 | 39 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 98 | while (a_pos < a_end) { | 88 | 59 | *c_pos = Op::apply(*a_pos, b); | 89 | 59 | ++a_pos; | 90 | 59 | ++c_pos; | 91 | 59 | } | 92 | 39 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 2 | PaddedPODArray<UInt8>& c) { | 82 | 2 | size_t size = a.size(); | 83 | 2 | const A* __restrict a_pos = a.data(); | 84 | 2 | UInt8* __restrict c_pos = c.data(); | 85 | 2 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4 | while (a_pos < a_end) { | 88 | 2 | *c_pos = Op::apply(*a_pos, b); | 89 | 2 | ++a_pos; | 90 | 2 | ++c_pos; | 91 | 2 | } | 92 | 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 | 81 | 44 | PaddedPODArray<UInt8>& c) { | 82 | 44 | size_t size = a.size(); | 83 | 44 | const A* __restrict a_pos = a.data(); | 84 | 44 | UInt8* __restrict c_pos = c.data(); | 85 | 44 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.24k | while (a_pos < a_end) { | 88 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.19k | ++a_pos; | 90 | 1.19k | ++c_pos; | 91 | 1.19k | } | 92 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 26 | PaddedPODArray<UInt8>& c) { | 82 | 26 | size_t size = a.size(); | 83 | 26 | const A* __restrict a_pos = a.data(); | 84 | 26 | UInt8* __restrict c_pos = c.data(); | 85 | 26 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 802 | while (a_pos < a_end) { | 88 | 776 | *c_pos = Op::apply(*a_pos, b); | 89 | 776 | ++a_pos; | 90 | 776 | ++c_pos; | 91 | 776 | } | 92 | 26 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 2.85k | PaddedPODArray<UInt8>& c) { | 82 | 2.85k | size_t size = a.size(); | 83 | 2.85k | const A* __restrict a_pos = a.data(); | 84 | 2.85k | UInt8* __restrict c_pos = c.data(); | 85 | 2.85k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 658k | while (a_pos < a_end) { | 88 | 655k | *c_pos = Op::apply(*a_pos, b); | 89 | 655k | ++a_pos; | 90 | 655k | ++c_pos; | 91 | 655k | } | 92 | 2.85k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 2.71k | PaddedPODArray<UInt8>& c) { | 82 | 2.71k | size_t size = a.size(); | 83 | 2.71k | const A* __restrict a_pos = a.data(); | 84 | 2.71k | UInt8* __restrict c_pos = c.data(); | 85 | 2.71k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 272k | while (a_pos < a_end) { | 88 | 270k | *c_pos = Op::apply(*a_pos, b); | 89 | 270k | ++a_pos; | 90 | 270k | ++c_pos; | 91 | 270k | } | 92 | 2.71k | } |
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 | 81 | 28 | PaddedPODArray<UInt8>& c) { | 82 | 28 | size_t size = a.size(); | 83 | 28 | const A* __restrict a_pos = a.data(); | 84 | 28 | UInt8* __restrict c_pos = c.data(); | 85 | 28 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 70 | while (a_pos < a_end) { | 88 | 42 | *c_pos = Op::apply(*a_pos, b); | 89 | 42 | ++a_pos; | 90 | 42 | ++c_pos; | 91 | 42 | } | 92 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 40 | PaddedPODArray<UInt8>& c) { | 82 | 40 | size_t size = a.size(); | 83 | 40 | const A* __restrict a_pos = a.data(); | 84 | 40 | UInt8* __restrict c_pos = c.data(); | 85 | 40 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 282 | while (a_pos < a_end) { | 88 | 242 | *c_pos = Op::apply(*a_pos, b); | 89 | 242 | ++a_pos; | 90 | 242 | ++c_pos; | 91 | 242 | } | 92 | 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 | 81 | 157 | PaddedPODArray<UInt8>& c) { | 82 | 157 | size_t size = a.size(); | 83 | 157 | const A* __restrict a_pos = a.data(); | 84 | 157 | UInt8* __restrict c_pos = c.data(); | 85 | 157 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 743 | while (a_pos < a_end) { | 88 | 586 | *c_pos = Op::apply(*a_pos, b); | 89 | 586 | ++a_pos; | 90 | 586 | ++c_pos; | 91 | 586 | } | 92 | 157 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 525 | PaddedPODArray<UInt8>& c) { | 82 | 525 | size_t size = a.size(); | 83 | 525 | const A* __restrict a_pos = a.data(); | 84 | 525 | UInt8* __restrict c_pos = c.data(); | 85 | 525 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.67M | while (a_pos < a_end) { | 88 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.67M | ++a_pos; | 90 | 1.67M | ++c_pos; | 91 | 1.67M | } | 92 | 525 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 94 | PaddedPODArray<UInt8>& c) { | 82 | 94 | size_t size = a.size(); | 83 | 94 | const A* __restrict a_pos = a.data(); | 84 | 94 | UInt8* __restrict c_pos = c.data(); | 85 | 94 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 210 | while (a_pos < a_end) { | 88 | 116 | *c_pos = Op::apply(*a_pos, b); | 89 | 116 | ++a_pos; | 90 | 116 | ++c_pos; | 91 | 116 | } | 92 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 337 | PaddedPODArray<UInt8>& c) { | 82 | 337 | size_t size = a.size(); | 83 | 337 | const A* __restrict a_pos = a.data(); | 84 | 337 | UInt8* __restrict c_pos = c.data(); | 85 | 337 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 45.4k | while (a_pos < a_end) { | 88 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 45.1k | ++a_pos; | 90 | 45.1k | ++c_pos; | 91 | 45.1k | } | 92 | 337 | } |
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 | 81 | 1 | PaddedPODArray<UInt8>& c) { | 82 | 1 | size_t size = a.size(); | 83 | 1 | const A* __restrict a_pos = a.data(); | 84 | 1 | UInt8* __restrict c_pos = c.data(); | 85 | 1 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 8 | while (a_pos < a_end) { | 88 | 7 | *c_pos = Op::apply(*a_pos, b); | 89 | 7 | ++a_pos; | 90 | 7 | ++c_pos; | 91 | 7 | } | 92 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.00k | PaddedPODArray<UInt8>& c) { | 82 | 1.00k | size_t size = a.size(); | 83 | 1.00k | const A* __restrict a_pos = a.data(); | 84 | 1.00k | UInt8* __restrict c_pos = c.data(); | 85 | 1.00k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 6.32k | while (a_pos < a_end) { | 88 | 5.32k | *c_pos = Op::apply(*a_pos, b); | 89 | 5.32k | ++a_pos; | 90 | 5.32k | ++c_pos; | 91 | 5.32k | } | 92 | 1.00k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.95k | PaddedPODArray<UInt8>& c) { | 82 | 1.95k | size_t size = a.size(); | 83 | 1.95k | const A* __restrict a_pos = a.data(); | 84 | 1.95k | UInt8* __restrict c_pos = c.data(); | 85 | 1.95k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 7.62k | while (a_pos < a_end) { | 88 | 5.66k | *c_pos = Op::apply(*a_pos, b); | 89 | 5.66k | ++a_pos; | 90 | 5.66k | ++c_pos; | 91 | 5.66k | } | 92 | 1.95k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.55k | PaddedPODArray<UInt8>& c) { | 82 | 1.55k | size_t size = a.size(); | 83 | 1.55k | const A* __restrict a_pos = a.data(); | 84 | 1.55k | UInt8* __restrict c_pos = c.data(); | 85 | 1.55k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 10.4k | while (a_pos < a_end) { | 88 | 8.90k | *c_pos = Op::apply(*a_pos, b); | 89 | 8.90k | ++a_pos; | 90 | 8.90k | ++c_pos; | 91 | 8.90k | } | 92 | 1.55k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 490 | PaddedPODArray<UInt8>& c) { | 82 | 490 | size_t size = a.size(); | 83 | 490 | const A* __restrict a_pos = a.data(); | 84 | 490 | UInt8* __restrict c_pos = c.data(); | 85 | 490 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 13.8k | while (a_pos < a_end) { | 88 | 13.3k | *c_pos = Op::apply(*a_pos, b); | 89 | 13.3k | ++a_pos; | 90 | 13.3k | ++c_pos; | 91 | 13.3k | } | 92 | 490 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 21.0k | PaddedPODArray<UInt8>& c) { | 82 | 21.0k | size_t size = a.size(); | 83 | 21.0k | const A* __restrict a_pos = a.data(); | 84 | 21.0k | UInt8* __restrict c_pos = c.data(); | 85 | 21.0k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.38M | while (a_pos < a_end) { | 88 | 2.36M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.36M | ++a_pos; | 90 | 2.36M | ++c_pos; | 91 | 2.36M | } | 92 | 21.0k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 67.4k | PaddedPODArray<UInt8>& c) { | 82 | 67.4k | size_t size = a.size(); | 83 | 67.4k | const A* __restrict a_pos = a.data(); | 84 | 67.4k | UInt8* __restrict c_pos = c.data(); | 85 | 67.4k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 9.73M | while (a_pos < a_end) { | 88 | 9.67M | *c_pos = Op::apply(*a_pos, b); | 89 | 9.67M | ++a_pos; | 90 | 9.67M | ++c_pos; | 91 | 9.67M | } | 92 | 67.4k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 13.3k | PaddedPODArray<UInt8>& c) { | 82 | 13.3k | size_t size = a.size(); | 83 | 13.3k | const A* __restrict a_pos = a.data(); | 84 | 13.3k | UInt8* __restrict c_pos = c.data(); | 85 | 13.3k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 172k | while (a_pos < a_end) { | 88 | 158k | *c_pos = Op::apply(*a_pos, b); | 89 | 158k | ++a_pos; | 90 | 158k | ++c_pos; | 91 | 158k | } | 92 | 13.3k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.52k | PaddedPODArray<UInt8>& c) { | 82 | 1.52k | size_t size = a.size(); | 83 | 1.52k | const A* __restrict a_pos = a.data(); | 84 | 1.52k | UInt8* __restrict c_pos = c.data(); | 85 | 1.52k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.77k | while (a_pos < a_end) { | 88 | 3.24k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.24k | ++a_pos; | 90 | 3.24k | ++c_pos; | 91 | 3.24k | } | 92 | 1.52k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 293 | PaddedPODArray<UInt8>& c) { | 82 | 293 | size_t size = a.size(); | 83 | 293 | const A* __restrict a_pos = a.data(); | 84 | 293 | UInt8* __restrict c_pos = c.data(); | 85 | 293 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.93k | while (a_pos < a_end) { | 88 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.63k | ++a_pos; | 90 | 1.63k | ++c_pos; | 91 | 1.63k | } | 92 | 293 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 117 | PaddedPODArray<UInt8>& c) { | 82 | 117 | size_t size = a.size(); | 83 | 117 | const A* __restrict a_pos = a.data(); | 84 | 117 | UInt8* __restrict c_pos = c.data(); | 85 | 117 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 86.2k | while (a_pos < a_end) { | 88 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 86.1k | ++a_pos; | 90 | 86.1k | ++c_pos; | 91 | 86.1k | } | 92 | 117 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1 | PaddedPODArray<UInt8>& c) { | 82 | 1 | size_t size = a.size(); | 83 | 1 | const A* __restrict a_pos = a.data(); | 84 | 1 | UInt8* __restrict c_pos = c.data(); | 85 | 1 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 9 | while (a_pos < a_end) { | 88 | 8 | *c_pos = Op::apply(*a_pos, b); | 89 | 8 | ++a_pos; | 90 | 8 | ++c_pos; | 91 | 8 | } | 92 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 81 | 216 | PaddedPODArray<UInt8>& c) { | 82 | 216 | size_t size = a.size(); | 83 | 216 | const A* __restrict a_pos = a.data(); | 84 | 216 | UInt8* __restrict c_pos = c.data(); | 85 | 216 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.77k | while (a_pos < a_end) { | 88 | 3.55k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.55k | ++a_pos; | 90 | 3.55k | ++c_pos; | 91 | 3.55k | } | 92 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 26 | PaddedPODArray<UInt8>& c) { | 82 | 26 | size_t size = a.size(); | 83 | 26 | const A* __restrict a_pos = a.data(); | 84 | 26 | UInt8* __restrict c_pos = c.data(); | 85 | 26 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 64 | while (a_pos < a_end) { | 88 | 38 | *c_pos = Op::apply(*a_pos, b); | 89 | 38 | ++a_pos; | 90 | 38 | ++c_pos; | 91 | 38 | } | 92 | 26 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 2.47k | PaddedPODArray<UInt8>& c) { | 82 | 2.47k | size_t size = a.size(); | 83 | 2.47k | const A* __restrict a_pos = a.data(); | 84 | 2.47k | UInt8* __restrict c_pos = c.data(); | 85 | 2.47k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 346k | while (a_pos < a_end) { | 88 | 344k | *c_pos = Op::apply(*a_pos, b); | 89 | 344k | ++a_pos; | 90 | 344k | ++c_pos; | 91 | 344k | } | 92 | 2.47k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 256 | PaddedPODArray<UInt8>& c) { | 82 | 256 | size_t size = a.size(); | 83 | 256 | const A* __restrict a_pos = a.data(); | 84 | 256 | UInt8* __restrict c_pos = c.data(); | 85 | 256 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 641k | while (a_pos < a_end) { | 88 | 641k | *c_pos = Op::apply(*a_pos, b); | 89 | 641k | ++a_pos; | 90 | 641k | ++c_pos; | 91 | 641k | } | 92 | 256 | } |
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 | 81 | 142 | PaddedPODArray<UInt8>& c) { | 82 | 142 | size_t size = a.size(); | 83 | 142 | const A* __restrict a_pos = a.data(); | 84 | 142 | UInt8* __restrict c_pos = c.data(); | 85 | 142 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 112k | while (a_pos < a_end) { | 88 | 112k | *c_pos = Op::apply(*a_pos, b); | 89 | 112k | ++a_pos; | 90 | 112k | ++c_pos; | 91 | 112k | } | 92 | 142 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 390 | PaddedPODArray<UInt8>& c) { | 82 | 390 | size_t size = a.size(); | 83 | 390 | const A* __restrict a_pos = a.data(); | 84 | 390 | UInt8* __restrict c_pos = c.data(); | 85 | 390 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 172k | while (a_pos < a_end) { | 88 | 171k | *c_pos = Op::apply(*a_pos, b); | 89 | 171k | ++a_pos; | 90 | 171k | ++c_pos; | 91 | 171k | } | 92 | 390 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 1.56k | PaddedPODArray<UInt8>& c) { | 82 | 1.56k | size_t size = a.size(); | 83 | 1.56k | const A* __restrict a_pos = a.data(); | 84 | 1.56k | UInt8* __restrict c_pos = c.data(); | 85 | 1.56k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.88M | while (a_pos < a_end) { | 88 | 4.87M | *c_pos = Op::apply(*a_pos, b); | 89 | 4.87M | ++a_pos; | 90 | 4.87M | ++c_pos; | 91 | 4.87M | } | 92 | 1.56k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 4.31k | PaddedPODArray<UInt8>& c) { | 82 | 4.31k | size_t size = a.size(); | 83 | 4.31k | const A* __restrict a_pos = a.data(); | 84 | 4.31k | UInt8* __restrict c_pos = c.data(); | 85 | 4.31k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 27.7M | while (a_pos < a_end) { | 88 | 27.7M | *c_pos = Op::apply(*a_pos, b); | 89 | 27.7M | ++a_pos; | 90 | 27.7M | ++c_pos; | 91 | 27.7M | } | 92 | 4.31k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 611 | PaddedPODArray<UInt8>& c) { | 82 | 611 | size_t size = a.size(); | 83 | 611 | const A* __restrict a_pos = a.data(); | 84 | 611 | UInt8* __restrict c_pos = c.data(); | 85 | 611 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 30.6k | while (a_pos < a_end) { | 88 | 30.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 30.0k | ++a_pos; | 90 | 30.0k | ++c_pos; | 91 | 30.0k | } | 92 | 611 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 489 | PaddedPODArray<UInt8>& c) { | 82 | 489 | size_t size = a.size(); | 83 | 489 | const A* __restrict a_pos = a.data(); | 84 | 489 | UInt8* __restrict c_pos = c.data(); | 85 | 489 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 30.1k | while (a_pos < a_end) { | 88 | 29.6k | *c_pos = Op::apply(*a_pos, b); | 89 | 29.6k | ++a_pos; | 90 | 29.6k | ++c_pos; | 91 | 29.6k | } | 92 | 489 | } |
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 | 81 | 67 | PaddedPODArray<UInt8>& c) { | 82 | 67 | size_t size = a.size(); | 83 | 67 | const A* __restrict a_pos = a.data(); | 84 | 67 | UInt8* __restrict c_pos = c.data(); | 85 | 67 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 90.8k | while (a_pos < a_end) { | 88 | 90.7k | *c_pos = Op::apply(*a_pos, b); | 89 | 90.7k | ++a_pos; | 90 | 90.7k | ++c_pos; | 91 | 90.7k | } | 92 | 67 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 303 | PaddedPODArray<UInt8>& c) { | 82 | 303 | size_t size = a.size(); | 83 | 303 | const A* __restrict a_pos = a.data(); | 84 | 303 | UInt8* __restrict c_pos = c.data(); | 85 | 303 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 122k | while (a_pos < a_end) { | 88 | 121k | *c_pos = Op::apply(*a_pos, b); | 89 | 121k | ++a_pos; | 90 | 121k | ++c_pos; | 91 | 121k | } | 92 | 303 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 112 | PaddedPODArray<UInt8>& c) { | 82 | 112 | size_t size = a.size(); | 83 | 112 | const A* __restrict a_pos = a.data(); | 84 | 112 | UInt8* __restrict c_pos = c.data(); | 85 | 112 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 100k | while (a_pos < a_end) { | 88 | 100k | *c_pos = Op::apply(*a_pos, b); | 89 | 100k | ++a_pos; | 90 | 100k | ++c_pos; | 91 | 100k | } | 92 | 112 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 362 | PaddedPODArray<UInt8>& c) { | 82 | 362 | size_t size = a.size(); | 83 | 362 | const A* __restrict a_pos = a.data(); | 84 | 362 | UInt8* __restrict c_pos = c.data(); | 85 | 362 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 144k | while (a_pos < a_end) { | 88 | 144k | *c_pos = Op::apply(*a_pos, b); | 89 | 144k | ++a_pos; | 90 | 144k | ++c_pos; | 91 | 144k | } | 92 | 362 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 12.5k | PaddedPODArray<UInt8>& c) { | 82 | 12.5k | size_t size = a.size(); | 83 | 12.5k | const A* __restrict a_pos = a.data(); | 84 | 12.5k | UInt8* __restrict c_pos = c.data(); | 85 | 12.5k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 44.2M | while (a_pos < a_end) { | 88 | 44.1M | *c_pos = Op::apply(*a_pos, b); | 89 | 44.1M | ++a_pos; | 90 | 44.1M | ++c_pos; | 91 | 44.1M | } | 92 | 12.5k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 19.8k | PaddedPODArray<UInt8>& c) { | 82 | 19.8k | size_t size = a.size(); | 83 | 19.8k | const A* __restrict a_pos = a.data(); | 84 | 19.8k | UInt8* __restrict c_pos = c.data(); | 85 | 19.8k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 48.5M | while (a_pos < a_end) { | 88 | 48.4M | *c_pos = Op::apply(*a_pos, b); | 89 | 48.4M | ++a_pos; | 90 | 48.4M | ++c_pos; | 91 | 48.4M | } | 92 | 19.8k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 817 | PaddedPODArray<UInt8>& c) { | 82 | 817 | size_t size = a.size(); | 83 | 817 | const A* __restrict a_pos = a.data(); | 84 | 817 | UInt8* __restrict c_pos = c.data(); | 85 | 817 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 40.3k | while (a_pos < a_end) { | 88 | 39.5k | *c_pos = Op::apply(*a_pos, b); | 89 | 39.5k | ++a_pos; | 90 | 39.5k | ++c_pos; | 91 | 39.5k | } | 92 | 817 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 822 | PaddedPODArray<UInt8>& c) { | 82 | 822 | size_t size = a.size(); | 83 | 822 | const A* __restrict a_pos = a.data(); | 84 | 822 | UInt8* __restrict c_pos = c.data(); | 85 | 822 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 39.9k | while (a_pos < a_end) { | 88 | 39.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 39.1k | ++a_pos; | 90 | 39.1k | ++c_pos; | 91 | 39.1k | } | 92 | 822 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 35 | PaddedPODArray<UInt8>& c) { | 82 | 35 | size_t size = a.size(); | 83 | 35 | const A* __restrict a_pos = a.data(); | 84 | 35 | UInt8* __restrict c_pos = c.data(); | 85 | 35 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 80.5k | while (a_pos < a_end) { | 88 | 80.4k | *c_pos = Op::apply(*a_pos, b); | 89 | 80.4k | ++a_pos; | 90 | 80.4k | ++c_pos; | 91 | 80.4k | } | 92 | 35 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 43 | PaddedPODArray<UInt8>& c) { | 82 | 43 | size_t size = a.size(); | 83 | 43 | const A* __restrict a_pos = a.data(); | 84 | 43 | UInt8* __restrict c_pos = c.data(); | 85 | 43 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 120k | while (a_pos < a_end) { | 88 | 120k | *c_pos = Op::apply(*a_pos, b); | 89 | 120k | ++a_pos; | 90 | 120k | ++c_pos; | 91 | 120k | } | 92 | 43 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 10 | PaddedPODArray<UInt8>& c) { | 82 | 10 | size_t size = a.size(); | 83 | 10 | const A* __restrict a_pos = a.data(); | 84 | 10 | UInt8* __restrict c_pos = c.data(); | 85 | 10 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 110 | while (a_pos < a_end) { | 88 | 100 | *c_pos = Op::apply(*a_pos, b); | 89 | 100 | ++a_pos; | 90 | 100 | ++c_pos; | 91 | 100 | } | 92 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 10 | PaddedPODArray<UInt8>& c) { | 82 | 10 | size_t size = a.size(); | 83 | 10 | const A* __restrict a_pos = a.data(); | 84 | 10 | UInt8* __restrict c_pos = c.data(); | 85 | 10 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 110 | while (a_pos < a_end) { | 88 | 100 | *c_pos = Op::apply(*a_pos, b); | 89 | 100 | ++a_pos; | 90 | 100 | ++c_pos; | 91 | 100 | } | 92 | 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 | 81 | 108 | PaddedPODArray<UInt8>& c) { | 82 | 108 | size_t size = a.size(); | 83 | 108 | const A* __restrict a_pos = a.data(); | 84 | 108 | UInt8* __restrict c_pos = c.data(); | 85 | 108 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 218 | while (a_pos < a_end) { | 88 | 110 | *c_pos = Op::apply(*a_pos, b); | 89 | 110 | ++a_pos; | 90 | 110 | ++c_pos; | 91 | 110 | } | 92 | 108 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 104 | PaddedPODArray<UInt8>& c) { | 82 | 104 | size_t size = a.size(); | 83 | 104 | const A* __restrict a_pos = a.data(); | 84 | 104 | UInt8* __restrict c_pos = c.data(); | 85 | 104 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 208 | while (a_pos < a_end) { | 88 | 104 | *c_pos = Op::apply(*a_pos, b); | 89 | 104 | ++a_pos; | 90 | 104 | ++c_pos; | 91 | 104 | } | 92 | 104 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 138 | PaddedPODArray<UInt8>& c) { | 82 | 138 | size_t size = a.size(); | 83 | 138 | const A* __restrict a_pos = a.data(); | 84 | 138 | UInt8* __restrict c_pos = c.data(); | 85 | 138 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 601k | while (a_pos < a_end) { | 88 | 601k | *c_pos = Op::apply(*a_pos, b); | 89 | 601k | ++a_pos; | 90 | 601k | ++c_pos; | 91 | 601k | } | 92 | 138 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 144 | PaddedPODArray<UInt8>& c) { | 82 | 144 | size_t size = a.size(); | 83 | 144 | const A* __restrict a_pos = a.data(); | 84 | 144 | UInt8* __restrict c_pos = c.data(); | 85 | 144 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 601k | while (a_pos < a_end) { | 88 | 601k | *c_pos = Op::apply(*a_pos, b); | 89 | 601k | ++a_pos; | 90 | 601k | ++c_pos; | 91 | 601k | } | 92 | 144 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
93 | | |
94 | 64.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
95 | 64.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
96 | 64.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 | 94 | 270 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 270 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 270 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 42 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 42 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 42 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 141 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 141 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 141 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 565 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 565 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 565 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 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 | 94 | 772 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 772 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 772 | } |
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 | 94 | 222 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 222 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 222 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 222 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 222 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 222 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 61.6k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 61.6k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 61.6k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 121 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 121 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 121 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 57 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 57 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 57 | } |
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 | 94 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 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 | 94 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 228 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 23 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 23 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 23 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 67 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 67 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 67 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 92 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 92 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 92 | } |
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 | 94 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 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 | 94 | 18 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 18 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 18 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 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 | 94 | 1 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 1 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
97 | | }; |
98 | | |
99 | | /// Generic version, implemented for columns of same type. |
100 | | template <typename Op> |
101 | | struct GenericComparisonImpl { |
102 | 9 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
103 | 20 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
104 | 11 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
105 | 11 | } |
106 | 9 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 10 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 6 | } | 106 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 1 | } | 106 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 1 | } | 106 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 3 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 3 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 3 | } | 106 | 3 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
107 | | |
108 | 139 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 139 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
110 | 491k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
111 | 491k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
112 | 491k | } |
113 | 139 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 13 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 13 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 31 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 18 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 18 | } | 113 | 13 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 8 | } | 113 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 8 | } | 113 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 8 | } | 113 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 45 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 45 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 222k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 222k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 222k | } | 113 | 45 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 57 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 57 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 269k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 269k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 269k | } | 113 | 57 | } |
|
114 | | |
115 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
116 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
117 | 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 |
118 | | }; |
119 | | |
120 | | template <typename Op> |
121 | | struct StringComparisonImpl { |
122 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
123 | | const ColumnString::Offsets& a_offsets, |
124 | | const ColumnString::Chars& b_data, |
125 | | const ColumnString::Offsets& b_offsets, |
126 | 384 | PaddedPODArray<UInt8>& c) { |
127 | 384 | size_t size = a_offsets.size(); |
128 | 384 | ColumnString::Offset prev_a_offset = 0; |
129 | 384 | ColumnString::Offset prev_b_offset = 0; |
130 | 384 | const auto* a_pos = a_data.data(); |
131 | 384 | const auto* b_pos = b_data.data(); |
132 | | |
133 | 971 | for (size_t i = 0; i < size; ++i) { |
134 | 587 | c[i] = Op::apply(memcmp_small_allow_overflow15( |
135 | 587 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
136 | 587 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
137 | 587 | 0); |
138 | | |
139 | 587 | prev_a_offset = a_offsets[i]; |
140 | 587 | prev_b_offset = b_offsets[i]; |
141 | 587 | } |
142 | 384 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 2 | PaddedPODArray<UInt8>& c) { | 127 | 2 | size_t size = a_offsets.size(); | 128 | 2 | ColumnString::Offset prev_a_offset = 0; | 129 | 2 | ColumnString::Offset prev_b_offset = 0; | 130 | 2 | const auto* a_pos = a_data.data(); | 131 | 2 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 49 | for (size_t i = 0; i < size; ++i) { | 134 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 47 | 0); | 138 | | | 139 | 47 | prev_a_offset = a_offsets[i]; | 140 | 47 | prev_b_offset = b_offsets[i]; | 141 | 47 | } | 142 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 36 | PaddedPODArray<UInt8>& c) { | 127 | 36 | size_t size = a_offsets.size(); | 128 | 36 | ColumnString::Offset prev_a_offset = 0; | 129 | 36 | ColumnString::Offset prev_b_offset = 0; | 130 | 36 | const auto* a_pos = a_data.data(); | 131 | 36 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 230 | for (size_t i = 0; i < size; ++i) { | 134 | 194 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 194 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 194 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 194 | 0); | 138 | | | 139 | 194 | prev_a_offset = a_offsets[i]; | 140 | 194 | prev_b_offset = b_offsets[i]; | 141 | 194 | } | 142 | 36 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 346 | PaddedPODArray<UInt8>& c) { | 127 | 346 | size_t size = a_offsets.size(); | 128 | 346 | ColumnString::Offset prev_a_offset = 0; | 129 | 346 | ColumnString::Offset prev_b_offset = 0; | 130 | 346 | const auto* a_pos = a_data.data(); | 131 | 346 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 692 | for (size_t i = 0; i < size; ++i) { | 134 | 346 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 346 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 346 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 346 | 0); | 138 | | | 139 | 346 | prev_a_offset = a_offsets[i]; | 140 | 346 | prev_b_offset = b_offsets[i]; | 141 | 346 | } | 142 | 346 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
143 | | |
144 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
145 | | const ColumnString::Offsets& a_offsets, |
146 | | const ColumnString::Chars& b_data, |
147 | | ColumnString::Offset b_size, |
148 | 3.03k | PaddedPODArray<UInt8>& c) { |
149 | 3.03k | size_t size = a_offsets.size(); |
150 | 3.03k | ColumnString::Offset prev_a_offset = 0; |
151 | 3.03k | const auto* a_pos = a_data.data(); |
152 | 3.03k | const auto* b_pos = b_data.data(); |
153 | | |
154 | 1.87M | for (size_t i = 0; i < size; ++i) { |
155 | 1.87M | c[i] = Op::apply( |
156 | 1.87M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
157 | 1.87M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
158 | 1.87M | 0); |
159 | | |
160 | 1.87M | prev_a_offset = a_offsets[i]; |
161 | 1.87M | } |
162 | 3.03k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 229 | PaddedPODArray<UInt8>& c) { | 149 | 229 | size_t size = a_offsets.size(); | 150 | 229 | ColumnString::Offset prev_a_offset = 0; | 151 | 229 | const auto* a_pos = a_data.data(); | 152 | 229 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 601k | for (size_t i = 0; i < size; ++i) { | 155 | 601k | c[i] = Op::apply( | 156 | 601k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 601k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 601k | 0); | 159 | | | 160 | 601k | prev_a_offset = a_offsets[i]; | 161 | 601k | } | 162 | 229 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 281 | PaddedPODArray<UInt8>& c) { | 149 | 281 | size_t size = a_offsets.size(); | 150 | 281 | ColumnString::Offset prev_a_offset = 0; | 151 | 281 | const auto* a_pos = a_data.data(); | 152 | 281 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 150k | for (size_t i = 0; i < size; ++i) { | 155 | 150k | c[i] = Op::apply( | 156 | 150k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 150k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 150k | 0); | 159 | | | 160 | 150k | prev_a_offset = a_offsets[i]; | 161 | 150k | } | 162 | 281 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 640 | PaddedPODArray<UInt8>& c) { | 149 | 640 | size_t size = a_offsets.size(); | 150 | 640 | ColumnString::Offset prev_a_offset = 0; | 151 | 640 | const auto* a_pos = a_data.data(); | 152 | 640 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 446k | for (size_t i = 0; i < size; ++i) { | 155 | 445k | c[i] = Op::apply( | 156 | 445k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 445k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 445k | 0); | 159 | | | 160 | 445k | prev_a_offset = a_offsets[i]; | 161 | 445k | } | 162 | 640 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 1.88k | PaddedPODArray<UInt8>& c) { | 149 | 1.88k | size_t size = a_offsets.size(); | 150 | 1.88k | ColumnString::Offset prev_a_offset = 0; | 151 | 1.88k | const auto* a_pos = a_data.data(); | 152 | 1.88k | const auto* b_pos = b_data.data(); | 153 | | | 154 | 675k | for (size_t i = 0; i < size; ++i) { | 155 | 673k | c[i] = Op::apply( | 156 | 673k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 673k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 673k | 0); | 159 | | | 160 | 673k | prev_a_offset = a_offsets[i]; | 161 | 673k | } | 162 | 1.88k | } |
|
163 | | |
164 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
165 | | ColumnString::Offset a_size, |
166 | | const ColumnString::Chars& b_data, |
167 | | const ColumnString::Offsets& b_offsets, |
168 | 6 | PaddedPODArray<UInt8>& c) { |
169 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
170 | 6 | a_data, a_size, c); |
171 | 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 | 168 | 6 | PaddedPODArray<UInt8>& c) { | 169 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 170 | 6 | a_data, a_size, c); | 171 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
172 | | }; |
173 | | |
174 | | template <bool positive> |
175 | | struct StringEqualsImpl { |
176 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
177 | | const ColumnString::Offsets& a_offsets, |
178 | | const ColumnString::Chars& b_data, |
179 | | const ColumnString::Offsets& b_offsets, |
180 | 407 | PaddedPODArray<UInt8>& c) { |
181 | 407 | size_t size = a_offsets.size(); |
182 | 407 | ColumnString::Offset prev_a_offset = 0; |
183 | 407 | ColumnString::Offset prev_b_offset = 0; |
184 | 407 | const auto* a_pos = a_data.data(); |
185 | 407 | const auto* b_pos = b_data.data(); |
186 | | |
187 | 1.22k | for (size_t i = 0; i < size; ++i) { |
188 | 818 | auto a_size = a_offsets[i] - prev_a_offset; |
189 | 818 | auto b_size = b_offsets[i] - prev_b_offset; |
190 | | |
191 | 818 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
192 | 818 | b_pos + prev_b_offset, b_size); |
193 | | |
194 | 818 | prev_a_offset = a_offsets[i]; |
195 | 818 | prev_b_offset = b_offsets[i]; |
196 | 818 | } |
197 | 407 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 406 | PaddedPODArray<UInt8>& c) { | 181 | 406 | size_t size = a_offsets.size(); | 182 | 406 | ColumnString::Offset prev_a_offset = 0; | 183 | 406 | ColumnString::Offset prev_b_offset = 0; | 184 | 406 | const auto* a_pos = a_data.data(); | 185 | 406 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 1.22k | for (size_t i = 0; i < size; ++i) { | 188 | 814 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 814 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 814 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 814 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 814 | prev_a_offset = a_offsets[i]; | 195 | 814 | prev_b_offset = b_offsets[i]; | 196 | 814 | } | 197 | 406 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 1 | PaddedPODArray<UInt8>& c) { | 181 | 1 | size_t size = a_offsets.size(); | 182 | 1 | ColumnString::Offset prev_a_offset = 0; | 183 | 1 | ColumnString::Offset prev_b_offset = 0; | 184 | 1 | const auto* a_pos = a_data.data(); | 185 | 1 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 5 | for (size_t i = 0; i < size; ++i) { | 188 | 4 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 4 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 4 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 4 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 4 | prev_a_offset = a_offsets[i]; | 195 | 4 | prev_b_offset = b_offsets[i]; | 196 | 4 | } | 197 | 1 | } |
|
198 | | |
199 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
200 | | const ColumnString::Offsets& a_offsets, |
201 | | const ColumnString::Chars& b_data, |
202 | | ColumnString::Offset b_size, |
203 | 23.2k | PaddedPODArray<UInt8>& c) { |
204 | 23.2k | size_t size = a_offsets.size(); |
205 | 23.2k | if (b_size == 0) { |
206 | 1 | auto* __restrict data = c.data(); |
207 | 1 | auto* __restrict offsets = a_offsets.data(); |
208 | | |
209 | 1 | ColumnString::Offset prev_a_offset = 0; |
210 | 4 | for (size_t i = 0; i < size; ++i) { |
211 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
212 | 3 | prev_a_offset = offsets[i]; |
213 | 3 | } |
214 | 23.2k | } else { |
215 | 23.2k | ColumnString::Offset prev_a_offset = 0; |
216 | 23.2k | const auto* a_pos = a_data.data(); |
217 | 23.2k | const auto* b_pos = b_data.data(); |
218 | 9.09M | for (size_t i = 0; i < size; ++i) { |
219 | 9.06M | auto a_size = a_offsets[i] - prev_a_offset; |
220 | 9.06M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
221 | 9.06M | b_pos, b_size); |
222 | 9.06M | prev_a_offset = a_offsets[i]; |
223 | 9.06M | } |
224 | 23.2k | } |
225 | 23.2k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 21.7k | PaddedPODArray<UInt8>& c) { | 204 | 21.7k | size_t size = a_offsets.size(); | 205 | 21.7k | if (b_size == 0) { | 206 | 0 | auto* __restrict data = c.data(); | 207 | 0 | auto* __restrict offsets = a_offsets.data(); | 208 | |
| 209 | 0 | ColumnString::Offset prev_a_offset = 0; | 210 | 0 | for (size_t i = 0; i < size; ++i) { | 211 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 212 | 0 | prev_a_offset = offsets[i]; | 213 | 0 | } | 214 | 21.7k | } else { | 215 | 21.7k | ColumnString::Offset prev_a_offset = 0; | 216 | 21.7k | const auto* a_pos = a_data.data(); | 217 | 21.7k | const auto* b_pos = b_data.data(); | 218 | 8.13M | for (size_t i = 0; i < size; ++i) { | 219 | 8.11M | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 8.11M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 8.11M | b_pos, b_size); | 222 | 8.11M | prev_a_offset = a_offsets[i]; | 223 | 8.11M | } | 224 | 21.7k | } | 225 | 21.7k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 1.47k | PaddedPODArray<UInt8>& c) { | 204 | 1.47k | size_t size = a_offsets.size(); | 205 | 1.47k | if (b_size == 0) { | 206 | 1 | auto* __restrict data = c.data(); | 207 | 1 | auto* __restrict offsets = a_offsets.data(); | 208 | | | 209 | 1 | ColumnString::Offset prev_a_offset = 0; | 210 | 4 | for (size_t i = 0; i < size; ++i) { | 211 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 212 | 3 | prev_a_offset = offsets[i]; | 213 | 3 | } | 214 | 1.47k | } else { | 215 | 1.47k | ColumnString::Offset prev_a_offset = 0; | 216 | 1.47k | const auto* a_pos = a_data.data(); | 217 | 1.47k | const auto* b_pos = b_data.data(); | 218 | 954k | for (size_t i = 0; i < size; ++i) { | 219 | 953k | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 953k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 953k | b_pos, b_size); | 222 | 953k | prev_a_offset = a_offsets[i]; | 223 | 953k | } | 224 | 1.47k | } | 225 | 1.47k | } |
|
226 | | |
227 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
228 | | ColumnString::Offset a_size, |
229 | | const ColumnString::Chars& b_data, |
230 | | const ColumnString::Offsets& b_offsets, |
231 | 0 | PaddedPODArray<UInt8>& c) { |
232 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
233 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
234 | | }; |
235 | | |
236 | | template <PrimitiveType PT> |
237 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
238 | | |
239 | | template <PrimitiveType PT> |
240 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
241 | | |
242 | | struct NameEquals { |
243 | | static constexpr auto name = "eq"; |
244 | | }; |
245 | | struct NameNotEquals { |
246 | | static constexpr auto name = "ne"; |
247 | | }; |
248 | | struct NameLess { |
249 | | static constexpr auto name = "lt"; |
250 | | }; |
251 | | struct NameGreater { |
252 | | static constexpr auto name = "gt"; |
253 | | }; |
254 | | struct NameLessOrEquals { |
255 | | static constexpr auto name = "le"; |
256 | | }; |
257 | | struct NameGreaterOrEquals { |
258 | | static constexpr auto name = "ge"; |
259 | | }; |
260 | | |
261 | | template <template <PrimitiveType> class Op, typename Name> |
262 | | class FunctionComparison : public IFunction { |
263 | | public: |
264 | | static constexpr auto name = Name::name; |
265 | 460k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 265 | 426k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 265 | 1.33k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 265 | 6.27k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 265 | 10.3k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 265 | 3.12k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 265 | 13.7k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
266 | | |
267 | 461k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 267 | 426k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 267 | 1.33k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 267 | 6.27k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 267 | 10.3k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 267 | 3.12k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 267 | 13.7k | FunctionComparison() = default; |
|
268 | | |
269 | 1.22M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 269 | 1.17M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 269 | 1.18k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 269 | 6.54k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 269 | 16.1k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 269 | 3.24k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 269 | 15.0k | double execute_cost() const override { return 0.5; } |
|
270 | | |
271 | | private: |
272 | | template <PrimitiveType PT> |
273 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
274 | 234k | const ColumnPtr& col_right_ptr) const { |
275 | 234k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
276 | 234k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
277 | | |
278 | 234k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
279 | 234k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
280 | | |
281 | 234k | DCHECK(!(left_is_const && right_is_const)); |
282 | | |
283 | 234k | if (!left_is_const && !right_is_const) { |
284 | 7.38k | auto col_res = ColumnUInt8::create(); |
285 | | |
286 | 7.38k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
287 | 7.38k | vec_res.resize(col_left->get_data().size()); |
288 | 7.38k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
289 | 7.38k | typename PrimitiveTypeTraits<PT>::CppType, |
290 | 7.38k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
291 | 7.38k | vec_res); |
292 | | |
293 | 7.38k | block.replace_by_position(result, std::move(col_res)); |
294 | 226k | } else if (!left_is_const && right_is_const) { |
295 | 162k | auto col_res = ColumnUInt8::create(); |
296 | | |
297 | 162k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
298 | 162k | vec_res.resize(col_left->size()); |
299 | 162k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
300 | 162k | typename PrimitiveTypeTraits<PT>::CppType, |
301 | 162k | Op<PT>>::vector_constant(col_left->get_data(), |
302 | 162k | col_right->get_element(0), vec_res); |
303 | | |
304 | 162k | block.replace_by_position(result, std::move(col_res)); |
305 | 162k | } else if (left_is_const && !right_is_const) { |
306 | 64.5k | auto col_res = ColumnUInt8::create(); |
307 | | |
308 | 64.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
309 | 64.5k | vec_res.resize(col_right->size()); |
310 | 64.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
311 | 64.5k | typename PrimitiveTypeTraits<PT>::CppType, |
312 | 64.5k | Op<PT>>::constant_vector(col_left->get_element(0), |
313 | 64.5k | col_right->get_data(), vec_res); |
314 | | |
315 | 64.5k | block.replace_by_position(result, std::move(col_res)); |
316 | 64.5k | } |
317 | 234k | return Status::OK(); |
318 | 234k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.60k | const ColumnPtr& col_right_ptr) const { | 275 | 1.60k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.60k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.60k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.60k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.60k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.60k | if (!left_is_const && !right_is_const) { | 284 | 61 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 61 | vec_res.resize(col_left->get_data().size()); | 288 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 61 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 61 | vec_res); | 292 | | | 293 | 61 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.54k | } else if (!left_is_const && right_is_const) { | 295 | 1.54k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.54k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.54k | vec_res.resize(col_left->size()); | 299 | 1.54k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.54k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.54k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.54k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.54k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.54k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.60k | return Status::OK(); | 318 | 1.60k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.02k | const ColumnPtr& col_right_ptr) const { | 275 | 1.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.02k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.02k | if (!left_is_const && !right_is_const) { | 284 | 200 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 200 | vec_res.resize(col_left->get_data().size()); | 288 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 200 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 200 | vec_res); | 292 | | | 293 | 200 | block.replace_by_position(result, std::move(col_res)); | 294 | 824 | } else if (!left_is_const && right_is_const) { | 295 | 824 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 824 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 824 | vec_res.resize(col_left->size()); | 299 | 824 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 824 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 824 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 824 | col_right->get_element(0), vec_res); | 303 | | | 304 | 824 | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.02k | return Status::OK(); | 318 | 1.02k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 631 | const ColumnPtr& col_right_ptr) const { | 275 | 631 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 631 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 631 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 631 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 631 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 631 | if (!left_is_const && !right_is_const) { | 284 | 237 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 237 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 237 | vec_res.resize(col_left->get_data().size()); | 288 | 237 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 237 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 237 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 237 | vec_res); | 292 | | | 293 | 237 | block.replace_by_position(result, std::move(col_res)); | 294 | 394 | } else if (!left_is_const && right_is_const) { | 295 | 394 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 394 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 394 | vec_res.resize(col_left->size()); | 299 | 394 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 394 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 394 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 394 | col_right->get_element(0), vec_res); | 303 | | | 304 | 394 | block.replace_by_position(result, std::move(col_res)); | 305 | 394 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 631 | return Status::OK(); | 318 | 631 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 2 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 2 | vec_res.resize(col_left->get_data().size()); | 288 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 2 | vec_res); | 292 | | | 293 | 2 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 6.83k | const ColumnPtr& col_right_ptr) const { | 275 | 6.83k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 6.83k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 6.83k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 6.83k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 6.83k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 6.83k | if (!left_is_const && !right_is_const) { | 284 | 139 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 139 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 139 | vec_res.resize(col_left->get_data().size()); | 288 | 139 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 139 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 139 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 139 | vec_res); | 292 | | | 293 | 139 | block.replace_by_position(result, std::move(col_res)); | 294 | 6.69k | } else if (!left_is_const && right_is_const) { | 295 | 6.42k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 6.42k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 6.42k | vec_res.resize(col_left->size()); | 299 | 6.42k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 6.42k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 6.42k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 6.42k | col_right->get_element(0), vec_res); | 303 | | | 304 | 6.42k | block.replace_by_position(result, std::move(col_res)); | 305 | 6.42k | } else if (left_is_const && !right_is_const) { | 306 | 270 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 270 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 270 | vec_res.resize(col_right->size()); | 310 | 270 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 270 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 270 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 270 | col_right->get_data(), vec_res); | 314 | | | 315 | 270 | block.replace_by_position(result, std::move(col_res)); | 316 | 270 | } | 317 | 6.83k | return Status::OK(); | 318 | 6.83k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.42k | const ColumnPtr& col_right_ptr) const { | 275 | 1.42k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.42k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.42k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.42k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.42k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.42k | if (!left_is_const && !right_is_const) { | 284 | 71 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 71 | vec_res.resize(col_left->get_data().size()); | 288 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 71 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 71 | vec_res); | 292 | | | 293 | 71 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.35k | } else if (!left_is_const && right_is_const) { | 295 | 1.31k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.31k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.31k | vec_res.resize(col_left->size()); | 299 | 1.31k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.31k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.31k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.31k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.31k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.31k | } else if (left_is_const && !right_is_const) { | 306 | 42 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 42 | vec_res.resize(col_right->size()); | 310 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 42 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 42 | col_right->get_data(), vec_res); | 314 | | | 315 | 42 | block.replace_by_position(result, std::move(col_res)); | 316 | 42 | } | 317 | 1.42k | return Status::OK(); | 318 | 1.42k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 31.0k | const ColumnPtr& col_right_ptr) const { | 275 | 31.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 31.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 31.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 31.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 31.0k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 31.0k | if (!left_is_const && !right_is_const) { | 284 | 280 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 280 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 280 | vec_res.resize(col_left->get_data().size()); | 288 | 280 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 280 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 280 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 280 | vec_res); | 292 | | | 293 | 280 | block.replace_by_position(result, std::move(col_res)); | 294 | 30.7k | } else if (!left_is_const && right_is_const) { | 295 | 30.6k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 30.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 30.6k | vec_res.resize(col_left->size()); | 299 | 30.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 30.6k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 30.6k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 30.6k | col_right->get_element(0), vec_res); | 303 | | | 304 | 30.6k | block.replace_by_position(result, std::move(col_res)); | 305 | 30.6k | } else if (left_is_const && !right_is_const) { | 306 | 141 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 141 | vec_res.resize(col_right->size()); | 310 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 141 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 141 | col_right->get_data(), vec_res); | 314 | | | 315 | 141 | block.replace_by_position(result, std::move(col_res)); | 316 | 141 | } | 317 | 31.0k | return Status::OK(); | 318 | 31.0k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 23.4k | const ColumnPtr& col_right_ptr) const { | 275 | 23.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 23.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 23.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 23.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 23.4k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 23.4k | if (!left_is_const && !right_is_const) { | 284 | 250 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 250 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 250 | vec_res.resize(col_left->get_data().size()); | 288 | 250 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 250 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 250 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 250 | vec_res); | 292 | | | 293 | 250 | block.replace_by_position(result, std::move(col_res)); | 294 | 23.1k | } else if (!left_is_const && right_is_const) { | 295 | 22.6k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 22.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 22.6k | vec_res.resize(col_left->size()); | 299 | 22.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 22.6k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 22.6k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 22.6k | col_right->get_element(0), vec_res); | 303 | | | 304 | 22.6k | block.replace_by_position(result, std::move(col_res)); | 305 | 22.6k | } else if (left_is_const && !right_is_const) { | 306 | 565 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 565 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 565 | vec_res.resize(col_right->size()); | 310 | 565 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 565 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 565 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 565 | col_right->get_data(), vec_res); | 314 | | | 315 | 565 | block.replace_by_position(result, std::move(col_res)); | 316 | 565 | } | 317 | 23.4k | return Status::OK(); | 318 | 23.4k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 144 | const ColumnPtr& col_right_ptr) const { | 275 | 144 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 144 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 144 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 144 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 144 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 144 | if (!left_is_const && !right_is_const) { | 284 | 71 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 71 | vec_res.resize(col_left->get_data().size()); | 288 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 71 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 71 | vec_res); | 292 | | | 293 | 71 | block.replace_by_position(result, std::move(col_res)); | 294 | 73 | } else if (!left_is_const && right_is_const) { | 295 | 57 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 57 | vec_res.resize(col_left->size()); | 299 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 57 | col_right->get_element(0), vec_res); | 303 | | | 304 | 57 | block.replace_by_position(result, std::move(col_res)); | 305 | 57 | } else if (left_is_const && !right_is_const) { | 306 | 16 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 16 | vec_res.resize(col_right->size()); | 310 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 16 | col_right->get_data(), vec_res); | 314 | | | 315 | 16 | block.replace_by_position(result, std::move(col_res)); | 316 | 16 | } | 317 | 144 | return Status::OK(); | 318 | 144 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 20 | const ColumnPtr& col_right_ptr) const { | 275 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 20 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 20 | if (!left_is_const && !right_is_const) { | 284 | 5 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 5 | vec_res.resize(col_left->get_data().size()); | 288 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 5 | vec_res); | 292 | | | 293 | 5 | block.replace_by_position(result, std::move(col_res)); | 294 | 15 | } else if (!left_is_const && right_is_const) { | 295 | 15 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 15 | vec_res.resize(col_left->size()); | 299 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 15 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 15 | col_right->get_element(0), vec_res); | 303 | | | 304 | 15 | block.replace_by_position(result, std::move(col_res)); | 305 | 15 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 20 | return Status::OK(); | 318 | 20 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 19 | const ColumnPtr& col_right_ptr) const { | 275 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 19 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 19 | if (!left_is_const && !right_is_const) { | 284 | 13 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 13 | vec_res.resize(col_left->get_data().size()); | 288 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 13 | vec_res); | 292 | | | 293 | 13 | block.replace_by_position(result, std::move(col_res)); | 294 | 13 | } else if (!left_is_const && right_is_const) { | 295 | 6 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 6 | vec_res.resize(col_left->size()); | 299 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 6 | col_right->get_element(0), vec_res); | 303 | | | 304 | 6 | block.replace_by_position(result, std::move(col_res)); | 305 | 6 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 19 | return Status::OK(); | 318 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 92 | const ColumnPtr& col_right_ptr) const { | 275 | 92 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 92 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 92 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 92 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 92 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 92 | if (!left_is_const && !right_is_const) { | 284 | 88 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 88 | vec_res.resize(col_left->get_data().size()); | 288 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 88 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 88 | vec_res); | 292 | | | 293 | 88 | block.replace_by_position(result, std::move(col_res)); | 294 | 88 | } else if (!left_is_const && right_is_const) { | 295 | 4 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 4 | vec_res.resize(col_left->size()); | 299 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 4 | col_right->get_element(0), vec_res); | 303 | | | 304 | 4 | block.replace_by_position(result, std::move(col_res)); | 305 | 4 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 92 | return Status::OK(); | 318 | 92 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 388 | const ColumnPtr& col_right_ptr) const { | 275 | 388 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 388 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 388 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 388 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 388 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 388 | if (!left_is_const && !right_is_const) { | 284 | 92 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 92 | vec_res.resize(col_left->get_data().size()); | 288 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 92 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 92 | vec_res); | 292 | | | 293 | 92 | block.replace_by_position(result, std::move(col_res)); | 294 | 296 | } else if (!left_is_const && right_is_const) { | 295 | 296 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 296 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 296 | vec_res.resize(col_left->size()); | 299 | 296 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 296 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 296 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 296 | col_right->get_element(0), vec_res); | 303 | | | 304 | 296 | block.replace_by_position(result, std::move(col_res)); | 305 | 296 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 388 | return Status::OK(); | 318 | 388 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 4 | const ColumnPtr& col_right_ptr) const { | 275 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 4 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 4 | if (!left_is_const && !right_is_const) { | 284 | 4 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 4 | vec_res.resize(col_left->get_data().size()); | 288 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 4 | vec_res); | 292 | | | 293 | 4 | block.replace_by_position(result, std::move(col_res)); | 294 | 4 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 4 | return Status::OK(); | 318 | 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 | 274 | 78 | const ColumnPtr& col_right_ptr) const { | 275 | 78 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 78 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 78 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 78 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 78 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 78 | if (!left_is_const && !right_is_const) { | 284 | 39 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 39 | vec_res.resize(col_left->get_data().size()); | 288 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 39 | vec_res); | 292 | | | 293 | 39 | block.replace_by_position(result, std::move(col_res)); | 294 | 39 | } else if (!left_is_const && right_is_const) { | 295 | 39 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 39 | vec_res.resize(col_left->size()); | 299 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 39 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 39 | col_right->get_element(0), vec_res); | 303 | | | 304 | 39 | block.replace_by_position(result, std::move(col_res)); | 305 | 39 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 78 | return Status::OK(); | 318 | 78 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 2 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2 | vec_res.resize(col_left->size()); | 299 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2 | col_right->get_element(0), vec_res); | 303 | | | 304 | 2 | block.replace_by_position(result, std::move(col_res)); | 305 | 2 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 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 | 274 | 100 | const ColumnPtr& col_right_ptr) const { | 275 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 100 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 100 | if (!left_is_const && !right_is_const) { | 284 | 56 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 56 | vec_res.resize(col_left->get_data().size()); | 288 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 56 | vec_res); | 292 | | | 293 | 56 | block.replace_by_position(result, std::move(col_res)); | 294 | 56 | } else if (!left_is_const && right_is_const) { | 295 | 44 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 44 | vec_res.resize(col_left->size()); | 299 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 44 | col_right->get_element(0), vec_res); | 303 | | | 304 | 44 | block.replace_by_position(result, std::move(col_res)); | 305 | 44 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 100 | return Status::OK(); | 318 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 26 | const ColumnPtr& col_right_ptr) const { | 275 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 26 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 26 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 26 | } else if (!left_is_const && right_is_const) { | 295 | 26 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 26 | vec_res.resize(col_left->size()); | 299 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 26 | col_right->get_element(0), vec_res); | 303 | | | 304 | 26 | block.replace_by_position(result, std::move(col_res)); | 305 | 26 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 26 | return Status::OK(); | 318 | 26 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3.37k | const ColumnPtr& col_right_ptr) const { | 275 | 3.37k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.37k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.37k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.37k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.37k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.37k | if (!left_is_const && !right_is_const) { | 284 | 520 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 520 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 520 | vec_res.resize(col_left->get_data().size()); | 288 | 520 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 520 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 520 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 520 | vec_res); | 292 | | | 293 | 520 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.85k | } else if (!left_is_const && right_is_const) { | 295 | 2.85k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.85k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.85k | vec_res.resize(col_left->size()); | 299 | 2.85k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.85k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.85k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.85k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.85k | block.replace_by_position(result, std::move(col_res)); | 305 | 2.85k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 3.37k | return Status::OK(); | 318 | 3.37k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3.03k | const ColumnPtr& col_right_ptr) const { | 275 | 3.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.03k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.03k | if (!left_is_const && !right_is_const) { | 284 | 317 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 317 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 317 | vec_res.resize(col_left->get_data().size()); | 288 | 317 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 317 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 317 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 317 | vec_res); | 292 | | | 293 | 317 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.71k | } else if (!left_is_const && right_is_const) { | 295 | 1.94k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.94k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.94k | vec_res.resize(col_left->size()); | 299 | 1.94k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.94k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.94k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.94k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.94k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.94k | } else if (left_is_const && !right_is_const) { | 306 | 771 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 771 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 771 | vec_res.resize(col_right->size()); | 310 | 771 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 771 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 771 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 771 | col_right->get_data(), vec_res); | 314 | | | 315 | 771 | block.replace_by_position(result, std::move(col_res)); | 316 | 771 | } | 317 | 3.03k | return Status::OK(); | 318 | 3.03k | } |
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 | 274 | 48 | const ColumnPtr& col_right_ptr) const { | 275 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 48 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 48 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 28 | } else if (!left_is_const && right_is_const) { | 295 | 28 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 28 | vec_res.resize(col_left->size()); | 299 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 28 | col_right->get_element(0), vec_res); | 303 | | | 304 | 28 | block.replace_by_position(result, std::move(col_res)); | 305 | 28 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 48 | return Status::OK(); | 318 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 60 | const ColumnPtr& col_right_ptr) const { | 275 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 60 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 60 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 40 | } else if (!left_is_const && right_is_const) { | 295 | 40 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 40 | vec_res.resize(col_left->size()); | 299 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 40 | col_right->get_element(0), vec_res); | 303 | | | 304 | 40 | block.replace_by_position(result, std::move(col_res)); | 305 | 40 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 60 | return Status::OK(); | 318 | 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 | 274 | 1.18k | const ColumnPtr& col_right_ptr) const { | 275 | 1.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.18k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.18k | if (!left_is_const && !right_is_const) { | 284 | 1.03k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.03k | vec_res.resize(col_left->get_data().size()); | 288 | 1.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.03k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.03k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.03k | vec_res); | 292 | | | 293 | 1.03k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.03k | } else if (!left_is_const && right_is_const) { | 295 | 157 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 157 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 157 | vec_res.resize(col_left->size()); | 299 | 157 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 157 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 157 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 157 | col_right->get_element(0), vec_res); | 303 | | | 304 | 157 | block.replace_by_position(result, std::move(col_res)); | 305 | 157 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.18k | return Status::OK(); | 318 | 1.18k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 94 | const ColumnPtr& col_right_ptr) const { | 275 | 94 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 94 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 94 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 94 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 94 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 94 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 94 | } else if (!left_is_const && right_is_const) { | 295 | 94 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 94 | vec_res.resize(col_left->size()); | 299 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 94 | col_right->get_element(0), vec_res); | 303 | | | 304 | 94 | block.replace_by_position(result, std::move(col_res)); | 305 | 94 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 94 | return Status::OK(); | 318 | 94 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.03k | const ColumnPtr& col_right_ptr) const { | 275 | 1.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.03k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.03k | if (!left_is_const && !right_is_const) { | 284 | 38 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 38 | vec_res.resize(col_left->get_data().size()); | 288 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 38 | vec_res); | 292 | | | 293 | 38 | block.replace_by_position(result, std::move(col_res)); | 294 | 995 | } else if (!left_is_const && right_is_const) { | 295 | 773 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 773 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 773 | vec_res.resize(col_left->size()); | 299 | 773 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 773 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 773 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 773 | col_right->get_element(0), vec_res); | 303 | | | 304 | 773 | block.replace_by_position(result, std::move(col_res)); | 305 | 773 | } else if (left_is_const && !right_is_const) { | 306 | 222 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 222 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 222 | vec_res.resize(col_right->size()); | 310 | 222 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 222 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 222 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 222 | col_right->get_data(), vec_res); | 314 | | | 315 | 222 | block.replace_by_position(result, std::move(col_res)); | 316 | 222 | } | 317 | 1.03k | return Status::OK(); | 318 | 1.03k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.88k | const ColumnPtr& col_right_ptr) const { | 275 | 1.88k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.88k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.88k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.88k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.88k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.88k | if (!left_is_const && !right_is_const) { | 284 | 112 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 112 | vec_res.resize(col_left->get_data().size()); | 288 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 112 | vec_res); | 292 | | | 293 | 112 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.77k | } else if (!left_is_const && right_is_const) { | 295 | 1.55k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.55k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.55k | vec_res.resize(col_left->size()); | 299 | 1.55k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.55k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.55k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.55k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.55k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.55k | } else if (left_is_const && !right_is_const) { | 306 | 222 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 222 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 222 | vec_res.resize(col_right->size()); | 310 | 222 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 222 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 222 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 222 | col_right->get_data(), vec_res); | 314 | | | 315 | 222 | block.replace_by_position(result, std::move(col_res)); | 316 | 222 | } | 317 | 1.88k | return Status::OK(); | 318 | 1.88k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 82.7k | const ColumnPtr& col_right_ptr) const { | 275 | 82.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 82.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 82.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 82.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 82.7k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 82.7k | if (!left_is_const && !right_is_const) { | 284 | 39 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 39 | vec_res.resize(col_left->get_data().size()); | 288 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 39 | vec_res); | 292 | | | 293 | 39 | block.replace_by_position(result, std::move(col_res)); | 294 | 82.6k | } else if (!left_is_const && right_is_const) { | 295 | 21.0k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 21.0k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 21.0k | vec_res.resize(col_left->size()); | 299 | 21.0k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 21.0k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 21.0k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 21.0k | col_right->get_element(0), vec_res); | 303 | | | 304 | 21.0k | block.replace_by_position(result, std::move(col_res)); | 305 | 61.6k | } else if (left_is_const && !right_is_const) { | 306 | 61.6k | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 61.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 61.6k | vec_res.resize(col_right->size()); | 310 | 61.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 61.6k | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 61.6k | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 61.6k | col_right->get_data(), vec_res); | 314 | | | 315 | 61.6k | block.replace_by_position(result, std::move(col_res)); | 316 | 61.6k | } | 317 | 82.7k | return Status::OK(); | 318 | 82.7k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 13.5k | const ColumnPtr& col_right_ptr) const { | 275 | 13.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 13.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 13.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 13.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 13.5k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 13.5k | if (!left_is_const && !right_is_const) { | 284 | 64 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 64 | vec_res.resize(col_left->get_data().size()); | 288 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 64 | vec_res); | 292 | | | 293 | 64 | block.replace_by_position(result, std::move(col_res)); | 294 | 13.4k | } else if (!left_is_const && right_is_const) { | 295 | 13.3k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 13.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 13.3k | vec_res.resize(col_left->size()); | 299 | 13.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 13.3k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 13.3k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 13.3k | col_right->get_element(0), vec_res); | 303 | | | 304 | 13.3k | block.replace_by_position(result, std::move(col_res)); | 305 | 13.3k | } else if (left_is_const && !right_is_const) { | 306 | 121 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 121 | vec_res.resize(col_right->size()); | 310 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 121 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 121 | col_right->get_data(), vec_res); | 314 | | | 315 | 121 | block.replace_by_position(result, std::move(col_res)); | 316 | 121 | } | 317 | 13.5k | return Status::OK(); | 318 | 13.5k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 260 | const ColumnPtr& col_right_ptr) const { | 275 | 260 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 260 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 260 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 260 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 260 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 260 | if (!left_is_const && !right_is_const) { | 284 | 2 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 2 | vec_res.resize(col_left->get_data().size()); | 288 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 2 | vec_res); | 292 | | | 293 | 2 | block.replace_by_position(result, std::move(col_res)); | 294 | 258 | } else if (!left_is_const && right_is_const) { | 295 | 201 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 201 | vec_res.resize(col_left->size()); | 299 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 201 | col_right->get_element(0), vec_res); | 303 | | | 304 | 201 | block.replace_by_position(result, std::move(col_res)); | 305 | 201 | } else if (left_is_const && !right_is_const) { | 306 | 57 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 57 | vec_res.resize(col_right->size()); | 310 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 57 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 57 | col_right->get_data(), vec_res); | 314 | | | 315 | 57 | block.replace_by_position(result, std::move(col_res)); | 316 | 57 | } | 317 | 260 | return Status::OK(); | 318 | 260 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 1 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1 | vec_res.resize(col_left->size()); | 299 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1 | col_right->get_element(0), vec_res); | 303 | | | 304 | 1 | block.replace_by_position(result, std::move(col_res)); | 305 | 1 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 236 | const ColumnPtr& col_right_ptr) const { | 275 | 236 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 236 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 236 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 236 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 236 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 236 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 216 | } else if (!left_is_const && right_is_const) { | 295 | 216 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 216 | vec_res.resize(col_left->size()); | 299 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 216 | col_right->get_element(0), vec_res); | 303 | | | 304 | 216 | block.replace_by_position(result, std::move(col_res)); | 305 | 216 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 236 | return Status::OK(); | 318 | 236 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.50k | const ColumnPtr& col_right_ptr) const { | 275 | 2.50k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.50k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.50k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.50k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.50k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.50k | if (!left_is_const && !right_is_const) { | 284 | 31 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 31 | vec_res.resize(col_left->get_data().size()); | 288 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 31 | vec_res); | 292 | | | 293 | 31 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.47k | } else if (!left_is_const && right_is_const) { | 295 | 2.47k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.47k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.47k | vec_res.resize(col_left->size()); | 299 | 2.47k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.47k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.47k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.47k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.47k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2.50k | return Status::OK(); | 318 | 2.50k | } |
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 | 274 | 142 | const ColumnPtr& col_right_ptr) const { | 275 | 142 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 142 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 142 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 142 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 142 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 142 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 142 | } else if (!left_is_const && right_is_const) { | 295 | 142 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 142 | vec_res.resize(col_left->size()); | 299 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 142 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 142 | col_right->get_element(0), vec_res); | 303 | | | 304 | 142 | block.replace_by_position(result, std::move(col_res)); | 305 | 142 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 142 | return Status::OK(); | 318 | 142 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.56k | const ColumnPtr& col_right_ptr) const { | 275 | 1.56k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.56k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.56k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.56k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.56k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.56k | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.56k | } else if (!left_is_const && right_is_const) { | 295 | 1.56k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.56k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.56k | vec_res.resize(col_left->size()); | 299 | 1.56k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.56k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.56k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.56k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.56k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.56k | } else if (left_is_const && !right_is_const) { | 306 | 6 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 6 | vec_res.resize(col_right->size()); | 310 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 6 | col_right->get_data(), vec_res); | 314 | | | 315 | 6 | block.replace_by_position(result, std::move(col_res)); | 316 | 6 | } | 317 | 1.56k | return Status::OK(); | 318 | 1.56k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 619 | const ColumnPtr& col_right_ptr) const { | 275 | 619 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 619 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 619 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 619 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 619 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 619 | if (!left_is_const && !right_is_const) { | 284 | 8 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 8 | vec_res.resize(col_left->get_data().size()); | 288 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 8 | vec_res); | 292 | | | 293 | 8 | block.replace_by_position(result, std::move(col_res)); | 294 | 611 | } else if (!left_is_const && right_is_const) { | 295 | 611 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 611 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 611 | vec_res.resize(col_left->size()); | 299 | 611 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 611 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 611 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 611 | col_right->get_element(0), vec_res); | 303 | | | 304 | 611 | block.replace_by_position(result, std::move(col_res)); | 305 | 611 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 619 | return Status::OK(); | 318 | 619 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 65 | const ColumnPtr& col_right_ptr) const { | 275 | 65 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 65 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 65 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 65 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 65 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 67 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 67 | } else if (!left_is_const && right_is_const) { | 295 | 67 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 67 | vec_res.resize(col_left->size()); | 299 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 67 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 67 | col_right->get_element(0), vec_res); | 303 | | | 304 | 67 | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 65 | return Status::OK(); | 318 | 65 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 112 | const ColumnPtr& col_right_ptr) const { | 275 | 112 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 112 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 112 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 112 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 112 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 112 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 112 | } else if (!left_is_const && right_is_const) { | 295 | 112 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 112 | vec_res.resize(col_left->size()); | 299 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 112 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 112 | col_right->get_element(0), vec_res); | 303 | | | 304 | 112 | block.replace_by_position(result, std::move(col_res)); | 305 | 112 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 112 | return Status::OK(); | 318 | 112 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 12.5k | const ColumnPtr& col_right_ptr) const { | 275 | 12.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 12.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 12.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 12.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 12.5k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 12.5k | if (!left_is_const && !right_is_const) { | 284 | 3 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 3 | vec_res.resize(col_left->get_data().size()); | 288 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 3 | vec_res); | 292 | | | 293 | 3 | block.replace_by_position(result, std::move(col_res)); | 294 | 12.5k | } else if (!left_is_const && right_is_const) { | 295 | 12.5k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 12.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 12.5k | vec_res.resize(col_left->size()); | 299 | 12.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 12.5k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 12.5k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 12.5k | col_right->get_element(0), vec_res); | 303 | | | 304 | 12.5k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 12.5k | return Status::OK(); | 318 | 12.5k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 776 | const ColumnPtr& col_right_ptr) const { | 275 | 776 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 776 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 776 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 776 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 776 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 777 | if (!left_is_const && !right_is_const) { | 284 | 8 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 8 | vec_res.resize(col_left->get_data().size()); | 288 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 8 | vec_res); | 292 | | | 293 | 8 | block.replace_by_position(result, std::move(col_res)); | 294 | 768 | } else if (!left_is_const && right_is_const) { | 295 | 768 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 768 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 768 | vec_res.resize(col_left->size()); | 299 | 768 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 768 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 768 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 768 | col_right->get_element(0), vec_res); | 303 | | | 304 | 768 | block.replace_by_position(result, std::move(col_res)); | 305 | 768 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 776 | return Status::OK(); | 318 | 776 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 35 | const ColumnPtr& col_right_ptr) const { | 275 | 35 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 35 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 35 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 35 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 35 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 35 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 35 | } else if (!left_is_const && right_is_const) { | 295 | 35 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 35 | vec_res.resize(col_left->size()); | 299 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 35 | col_right->get_element(0), vec_res); | 303 | | | 304 | 35 | block.replace_by_position(result, std::move(col_res)); | 305 | 35 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 35 | return Status::OK(); | 318 | 35 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 11 | const ColumnPtr& col_right_ptr) const { | 275 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 11 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 11 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 10 | } else if (!left_is_const && right_is_const) { | 295 | 10 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 10 | vec_res.resize(col_left->size()); | 299 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 10 | col_right->get_element(0), vec_res); | 303 | | | 304 | 10 | block.replace_by_position(result, std::move(col_res)); | 305 | 10 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 11 | return Status::OK(); | 318 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 128 | const ColumnPtr& col_right_ptr) const { | 275 | 128 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 128 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 128 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 128 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 128 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 128 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 108 | } else if (!left_is_const && right_is_const) { | 295 | 108 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 108 | vec_res.resize(col_left->size()); | 299 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 108 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 108 | col_right->get_element(0), vec_res); | 303 | | | 304 | 108 | block.replace_by_position(result, std::move(col_res)); | 305 | 108 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 128 | return Status::OK(); | 318 | 128 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 161 | const ColumnPtr& col_right_ptr) const { | 275 | 161 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 161 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 161 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 161 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 161 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 161 | if (!left_is_const && !right_is_const) { | 284 | 24 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 24 | vec_res.resize(col_left->get_data().size()); | 288 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 24 | vec_res); | 292 | | | 293 | 24 | block.replace_by_position(result, std::move(col_res)); | 294 | 137 | } else if (!left_is_const && right_is_const) { | 295 | 137 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 137 | vec_res.resize(col_left->size()); | 299 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 137 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 137 | col_right->get_element(0), vec_res); | 303 | | | 304 | 137 | block.replace_by_position(result, std::move(col_res)); | 305 | 137 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 161 | return Status::OK(); | 318 | 161 | } |
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 | 274 | 71 | const ColumnPtr& col_right_ptr) const { | 275 | 71 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 71 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 71 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 71 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 71 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 71 | if (!left_is_const && !right_is_const) { | 284 | 71 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 71 | vec_res.resize(col_left->get_data().size()); | 288 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 71 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 71 | vec_res); | 292 | | | 293 | 71 | block.replace_by_position(result, std::move(col_res)); | 294 | 71 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 71 | return Status::OK(); | 318 | 71 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.19k | const ColumnPtr& col_right_ptr) const { | 275 | 2.19k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.19k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.19k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.19k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.19k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.19k | if (!left_is_const && !right_is_const) { | 284 | 1.66k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.66k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.66k | vec_res.resize(col_left->get_data().size()); | 288 | 1.66k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.66k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.66k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.66k | vec_res); | 292 | | | 293 | 1.66k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.66k | } else if (!left_is_const && right_is_const) { | 295 | 525 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 525 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 525 | vec_res.resize(col_left->size()); | 299 | 525 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 525 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 525 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 525 | col_right->get_element(0), vec_res); | 303 | | | 304 | 525 | block.replace_by_position(result, std::move(col_res)); | 305 | 525 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2.19k | return Status::OK(); | 318 | 2.19k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 581 | const ColumnPtr& col_right_ptr) const { | 275 | 581 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 581 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 581 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 581 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 581 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 581 | if (!left_is_const && !right_is_const) { | 284 | 244 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 244 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 244 | vec_res.resize(col_left->get_data().size()); | 288 | 244 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 244 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 244 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 244 | vec_res); | 292 | | | 293 | 244 | block.replace_by_position(result, std::move(col_res)); | 294 | 337 | } else if (!left_is_const && right_is_const) { | 295 | 337 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 337 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 337 | vec_res.resize(col_left->size()); | 299 | 337 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 337 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 337 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 337 | col_right->get_element(0), vec_res); | 303 | | | 304 | 337 | block.replace_by_position(result, std::move(col_res)); | 305 | 337 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 581 | return Status::OK(); | 318 | 581 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 1 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1 | vec_res.resize(col_left->size()); | 299 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1 | col_right->get_element(0), vec_res); | 303 | | | 304 | 1 | block.replace_by_position(result, std::move(col_res)); | 305 | 1 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.09k | const ColumnPtr& col_right_ptr) const { | 275 | 2.09k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.09k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.09k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.09k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.09k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.09k | if (!left_is_const && !right_is_const) { | 284 | 132 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 132 | vec_res.resize(col_left->get_data().size()); | 288 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 132 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 132 | vec_res); | 292 | | | 293 | 132 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.96k | } else if (!left_is_const && right_is_const) { | 295 | 1.73k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.73k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.73k | vec_res.resize(col_left->size()); | 299 | 1.73k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.73k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.73k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.73k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.73k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.73k | } else if (left_is_const && !right_is_const) { | 306 | 228 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 228 | vec_res.resize(col_right->size()); | 310 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 228 | col_right->get_data(), vec_res); | 314 | | | 315 | 228 | block.replace_by_position(result, std::move(col_res)); | 316 | 228 | } | 317 | 2.09k | return Status::OK(); | 318 | 2.09k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 385 | const ColumnPtr& col_right_ptr) const { | 275 | 385 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 385 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 385 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 385 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 385 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 385 | if (!left_is_const && !right_is_const) { | 284 | 117 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 117 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 117 | vec_res.resize(col_left->get_data().size()); | 288 | 117 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 117 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 117 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 117 | vec_res); | 292 | | | 293 | 117 | block.replace_by_position(result, std::move(col_res)); | 294 | 268 | } else if (!left_is_const && right_is_const) { | 295 | 268 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 268 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 268 | vec_res.resize(col_left->size()); | 299 | 268 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 268 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 268 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 268 | col_right->get_element(0), vec_res); | 303 | | | 304 | 268 | block.replace_by_position(result, std::move(col_res)); | 305 | 268 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 385 | return Status::OK(); | 318 | 385 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 5.92k | const ColumnPtr& col_right_ptr) const { | 275 | 5.92k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 5.92k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 5.92k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 5.92k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 5.92k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 5.92k | if (!left_is_const && !right_is_const) { | 284 | 153 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 153 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 153 | vec_res.resize(col_left->get_data().size()); | 288 | 153 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 153 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 153 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 153 | vec_res); | 292 | | | 293 | 153 | block.replace_by_position(result, std::move(col_res)); | 294 | 5.77k | } else if (!left_is_const && right_is_const) { | 295 | 5.75k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 5.75k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 5.75k | vec_res.resize(col_left->size()); | 299 | 5.75k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 5.75k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 5.75k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 5.75k | col_right->get_element(0), vec_res); | 303 | | | 304 | 5.75k | block.replace_by_position(result, std::move(col_res)); | 305 | 5.75k | } else if (left_is_const && !right_is_const) { | 306 | 23 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 23 | vec_res.resize(col_right->size()); | 310 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 23 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 23 | col_right->get_data(), vec_res); | 314 | | | 315 | 23 | block.replace_by_position(result, std::move(col_res)); | 316 | 23 | } | 317 | 5.92k | return Status::OK(); | 318 | 5.92k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.66k | const ColumnPtr& col_right_ptr) const { | 275 | 1.66k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.66k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.66k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.66k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.66k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.66k | if (!left_is_const && !right_is_const) { | 284 | 190 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 190 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 190 | vec_res.resize(col_left->get_data().size()); | 288 | 190 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 190 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 190 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 190 | vec_res); | 292 | | | 293 | 190 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.47k | } else if (!left_is_const && right_is_const) { | 295 | 1.40k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.40k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.40k | vec_res.resize(col_left->size()); | 299 | 1.40k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.40k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.40k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.40k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.40k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.40k | } else if (left_is_const && !right_is_const) { | 306 | 67 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 67 | vec_res.resize(col_right->size()); | 310 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 67 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 67 | col_right->get_data(), vec_res); | 314 | | | 315 | 67 | block.replace_by_position(result, std::move(col_res)); | 316 | 67 | } | 317 | 1.66k | return Status::OK(); | 318 | 1.66k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 289 | const ColumnPtr& col_right_ptr) const { | 275 | 289 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 289 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 289 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 289 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 289 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 289 | if (!left_is_const && !right_is_const) { | 284 | 137 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 137 | vec_res.resize(col_left->get_data().size()); | 288 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 137 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 137 | vec_res); | 292 | | | 293 | 137 | block.replace_by_position(result, std::move(col_res)); | 294 | 152 | } else if (!left_is_const && right_is_const) { | 295 | 60 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 60 | vec_res.resize(col_left->size()); | 299 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 60 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 60 | col_right->get_element(0), vec_res); | 303 | | | 304 | 60 | block.replace_by_position(result, std::move(col_res)); | 305 | 92 | } else if (left_is_const && !right_is_const) { | 306 | 92 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 92 | vec_res.resize(col_right->size()); | 310 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 92 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 92 | col_right->get_data(), vec_res); | 314 | | | 315 | 92 | block.replace_by_position(result, std::move(col_res)); | 316 | 92 | } | 317 | 289 | return Status::OK(); | 318 | 289 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 16 | const ColumnPtr& col_right_ptr) const { | 275 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 16 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 16 | if (!left_is_const && !right_is_const) { | 284 | 16 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 16 | vec_res.resize(col_left->get_data().size()); | 288 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 16 | vec_res); | 292 | | | 293 | 16 | block.replace_by_position(result, std::move(col_res)); | 294 | 16 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 16 | return Status::OK(); | 318 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 16 | const ColumnPtr& col_right_ptr) const { | 275 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 16 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 16 | if (!left_is_const && !right_is_const) { | 284 | 16 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 16 | vec_res.resize(col_left->get_data().size()); | 288 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 16 | vec_res); | 292 | | | 293 | 16 | block.replace_by_position(result, std::move(col_res)); | 294 | 16 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 16 | return Status::OK(); | 318 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 154 | const ColumnPtr& col_right_ptr) const { | 275 | 154 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 154 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 154 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 154 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 154 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 154 | if (!left_is_const && !right_is_const) { | 284 | 128 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 128 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 128 | vec_res.resize(col_left->get_data().size()); | 288 | 128 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 128 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 128 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 128 | vec_res); | 292 | | | 293 | 128 | block.replace_by_position(result, std::move(col_res)); | 294 | 128 | } else if (!left_is_const && right_is_const) { | 295 | 26 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 26 | vec_res.resize(col_left->size()); | 299 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 26 | col_right->get_element(0), vec_res); | 303 | | | 304 | 26 | block.replace_by_position(result, std::move(col_res)); | 305 | 26 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 154 | return Status::OK(); | 318 | 154 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 390 | const ColumnPtr& col_right_ptr) const { | 275 | 390 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 390 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 390 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 390 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 390 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 390 | if (!left_is_const && !right_is_const) { | 284 | 134 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 134 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 134 | vec_res.resize(col_left->get_data().size()); | 288 | 134 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 134 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 134 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 134 | vec_res); | 292 | | | 293 | 134 | block.replace_by_position(result, std::move(col_res)); | 294 | 256 | } else if (!left_is_const && right_is_const) { | 295 | 256 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 256 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 256 | vec_res.resize(col_left->size()); | 299 | 256 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 256 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 256 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 256 | col_right->get_element(0), vec_res); | 303 | | | 304 | 256 | block.replace_by_position(result, std::move(col_res)); | 305 | 256 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 390 | return Status::OK(); | 318 | 390 | } |
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 | 274 | 390 | const ColumnPtr& col_right_ptr) const { | 275 | 390 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 390 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 390 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 390 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 390 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 390 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 390 | } else if (!left_is_const && right_is_const) { | 295 | 390 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 390 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 390 | vec_res.resize(col_left->size()); | 299 | 390 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 390 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 390 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 390 | col_right->get_element(0), vec_res); | 303 | | | 304 | 390 | block.replace_by_position(result, std::move(col_res)); | 305 | 390 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 390 | return Status::OK(); | 318 | 390 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 4.71k | const ColumnPtr& col_right_ptr) const { | 275 | 4.71k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 4.71k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 4.71k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 4.71k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 4.71k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 4.71k | if (!left_is_const && !right_is_const) { | 284 | 405 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 405 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 405 | vec_res.resize(col_left->get_data().size()); | 288 | 405 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 405 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 405 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 405 | vec_res); | 292 | | | 293 | 405 | block.replace_by_position(result, std::move(col_res)); | 294 | 4.31k | } else if (!left_is_const && right_is_const) { | 295 | 4.30k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 4.30k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 4.30k | vec_res.resize(col_left->size()); | 299 | 4.30k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 4.30k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 4.30k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 4.30k | col_right->get_element(0), vec_res); | 303 | | | 304 | 4.30k | block.replace_by_position(result, std::move(col_res)); | 305 | 4.30k | } else if (left_is_const && !right_is_const) { | 306 | 5 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 5 | vec_res.resize(col_right->size()); | 310 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 5 | col_right->get_data(), vec_res); | 314 | | | 315 | 5 | block.replace_by_position(result, std::move(col_res)); | 316 | 5 | } | 317 | 4.71k | return Status::OK(); | 318 | 4.71k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 489 | const ColumnPtr& col_right_ptr) const { | 275 | 489 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 489 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 489 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 489 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 489 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 489 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 489 | } else if (!left_is_const && right_is_const) { | 295 | 489 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 489 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 489 | vec_res.resize(col_left->size()); | 299 | 489 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 489 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 489 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 489 | col_right->get_element(0), vec_res); | 303 | | | 304 | 489 | block.replace_by_position(result, std::move(col_res)); | 305 | 489 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 489 | return Status::OK(); | 318 | 489 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 304 | const ColumnPtr& col_right_ptr) const { | 275 | 304 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 304 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 304 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 304 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 304 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 304 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 303 | } else if (!left_is_const && right_is_const) { | 295 | 303 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 303 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 303 | vec_res.resize(col_left->size()); | 299 | 303 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 303 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 303 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 303 | col_right->get_element(0), vec_res); | 303 | | | 304 | 303 | block.replace_by_position(result, std::move(col_res)); | 305 | 303 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 304 | return Status::OK(); | 318 | 304 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 362 | const ColumnPtr& col_right_ptr) const { | 275 | 362 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 362 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 362 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 362 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 362 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 362 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 362 | } else if (!left_is_const && right_is_const) { | 295 | 362 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 362 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 362 | vec_res.resize(col_left->size()); | 299 | 362 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 362 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 362 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 362 | col_right->get_element(0), vec_res); | 303 | | | 304 | 362 | block.replace_by_position(result, std::move(col_res)); | 305 | 362 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 362 | return Status::OK(); | 318 | 362 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 19.8k | const ColumnPtr& col_right_ptr) const { | 275 | 19.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 19.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 19.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 19.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 19.8k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 19.8k | if (!left_is_const && !right_is_const) { | 284 | 10 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 10 | vec_res.resize(col_left->get_data().size()); | 288 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 10 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 10 | vec_res); | 292 | | | 293 | 10 | block.replace_by_position(result, std::move(col_res)); | 294 | 19.8k | } else if (!left_is_const && right_is_const) { | 295 | 19.8k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 19.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 19.8k | vec_res.resize(col_left->size()); | 299 | 19.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 19.8k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 19.8k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 19.8k | col_right->get_element(0), vec_res); | 303 | | | 304 | 19.8k | block.replace_by_position(result, std::move(col_res)); | 305 | 19.8k | } else if (left_is_const && !right_is_const) { | 306 | 18 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 18 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 18 | vec_res.resize(col_right->size()); | 310 | 18 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 18 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 18 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 18 | col_right->get_data(), vec_res); | 314 | | | 315 | 18 | block.replace_by_position(result, std::move(col_res)); | 316 | 18 | } | 317 | 19.8k | return Status::OK(); | 318 | 19.8k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 900 | const ColumnPtr& col_right_ptr) const { | 275 | 900 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 900 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 900 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 900 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 900 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 900 | if (!left_is_const && !right_is_const) { | 284 | 30 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 30 | vec_res.resize(col_left->get_data().size()); | 288 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 30 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 30 | vec_res); | 292 | | | 293 | 30 | block.replace_by_position(result, std::move(col_res)); | 294 | 870 | } else if (!left_is_const && right_is_const) { | 295 | 822 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 822 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 822 | vec_res.resize(col_left->size()); | 299 | 822 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 822 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 822 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 822 | col_right->get_element(0), vec_res); | 303 | | | 304 | 822 | block.replace_by_position(result, std::move(col_res)); | 305 | 822 | } else if (left_is_const && !right_is_const) { | 306 | 48 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 48 | vec_res.resize(col_right->size()); | 310 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 48 | col_right->get_data(), vec_res); | 314 | | | 315 | 48 | block.replace_by_position(result, std::move(col_res)); | 316 | 48 | } | 317 | 900 | return Status::OK(); | 318 | 900 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 43 | const ColumnPtr& col_right_ptr) const { | 275 | 43 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 43 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 43 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 43 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 43 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 43 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 43 | } else if (!left_is_const && right_is_const) { | 295 | 43 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 43 | vec_res.resize(col_left->size()); | 299 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 43 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 43 | col_right->get_element(0), vec_res); | 303 | | | 304 | 43 | block.replace_by_position(result, std::move(col_res)); | 305 | 43 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 43 | return Status::OK(); | 318 | 43 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 10 | const ColumnPtr& col_right_ptr) const { | 275 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 10 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 10 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 10 | } else if (!left_is_const && right_is_const) { | 295 | 10 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 10 | vec_res.resize(col_left->size()); | 299 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 10 | col_right->get_element(0), vec_res); | 303 | | | 304 | 10 | block.replace_by_position(result, std::move(col_res)); | 305 | 10 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 10 | return Status::OK(); | 318 | 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 | 274 | 124 | const ColumnPtr& col_right_ptr) const { | 275 | 124 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 124 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 124 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 124 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 124 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 124 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 104 | } else if (!left_is_const && right_is_const) { | 295 | 104 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 104 | vec_res.resize(col_left->size()); | 299 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 104 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 104 | col_right->get_element(0), vec_res); | 303 | | | 304 | 104 | block.replace_by_position(result, std::move(col_res)); | 305 | 104 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 124 | return Status::OK(); | 318 | 124 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 165 | const ColumnPtr& col_right_ptr) const { | 275 | 165 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 165 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 165 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 165 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 165 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 165 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 145 | } else if (!left_is_const && right_is_const) { | 295 | 144 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 144 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 144 | vec_res.resize(col_left->size()); | 299 | 144 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 144 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 144 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 144 | col_right->get_element(0), vec_res); | 303 | | | 304 | 144 | block.replace_by_position(result, std::move(col_res)); | 305 | 144 | } else if (left_is_const && !right_is_const) { | 306 | 1 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 1 | vec_res.resize(col_right->size()); | 310 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 1 | col_right->get_data(), vec_res); | 314 | | | 315 | 1 | block.replace_by_position(result, std::move(col_res)); | 316 | 1 | } | 317 | 165 | return Status::OK(); | 318 | 165 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
319 | | |
320 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
321 | 150k | const ColumnWithTypeAndName& col_right) const { |
322 | 150k | auto call = [&](const auto& type) -> bool { |
323 | 150k | using DispatchType = std::decay_t<decltype(type)>; |
324 | 150k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
325 | 150k | block, result, col_left, col_right); |
326 | 150k | return true; |
327 | 150k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 234 | auto call = [&](const auto& type) -> bool { | 323 | 234 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 234 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 234 | block, result, col_left, col_right); | 326 | 234 | return true; | 327 | 234 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 260 | auto call = [&](const auto& type) -> bool { | 323 | 260 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 260 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 260 | block, result, col_left, col_right); | 326 | 260 | return true; | 327 | 260 | }; |
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 | 322 | 1.15k | auto call = [&](const auto& type) -> bool { | 323 | 1.15k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.15k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.15k | block, result, col_left, col_right); | 326 | 1.15k | return true; | 327 | 1.15k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 30 | auto call = [&](const auto& type) -> bool { | 323 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 30 | block, result, col_left, col_right); | 326 | 30 | return true; | 327 | 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 | 322 | 61 | auto call = [&](const auto& type) -> bool { | 323 | 61 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 61 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 61 | block, result, col_left, col_right); | 326 | 61 | return true; | 327 | 61 | }; |
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 | 322 | 324 | auto call = [&](const auto& type) -> bool { | 323 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 324 | block, result, col_left, col_right); | 326 | 324 | return true; | 327 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 30 | auto call = [&](const auto& type) -> bool { | 323 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 30 | block, result, col_left, col_right); | 326 | 30 | return true; | 327 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 46 | auto call = [&](const auto& type) -> bool { | 323 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 46 | block, result, col_left, col_right); | 326 | 46 | return true; | 327 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 1.59k | auto call = [&](const auto& type) -> bool { | 323 | 1.59k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.59k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.59k | block, result, col_left, col_right); | 326 | 1.59k | return true; | 327 | 1.59k | }; |
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 | 322 | 1.51k | auto call = [&](const auto& type) -> bool { | 323 | 1.51k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.51k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.51k | block, result, col_left, col_right); | 326 | 1.51k | return true; | 327 | 1.51k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 2 | auto call = [&](const auto& type) -> bool { | 323 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 2 | block, result, col_left, col_right); | 326 | 2 | return true; | 327 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 9 | auto call = [&](const auto& type) -> bool { | 323 | 9 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 9 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 9 | block, result, col_left, col_right); | 326 | 9 | return true; | 327 | 9 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 263 | auto call = [&](const auto& type) -> bool { | 323 | 263 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 263 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 263 | block, result, col_left, col_right); | 326 | 263 | return true; | 327 | 263 | }; |
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 | 322 | 104 | auto call = [&](const auto& type) -> bool { | 323 | 104 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 104 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 104 | block, result, col_left, col_right); | 326 | 104 | return true; | 327 | 104 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 21 | auto call = [&](const auto& type) -> bool { | 323 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 21 | block, result, col_left, col_right); | 326 | 21 | return true; | 327 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 213 | auto call = [&](const auto& type) -> bool { | 323 | 213 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 213 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 213 | block, result, col_left, col_right); | 326 | 213 | return true; | 327 | 213 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 256 | auto call = [&](const auto& type) -> bool { | 323 | 256 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 256 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 256 | block, result, col_left, col_right); | 326 | 256 | return true; | 327 | 256 | }; |
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 | 322 | 489 | auto call = [&](const auto& type) -> bool { | 323 | 489 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 489 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 489 | block, result, col_left, col_right); | 326 | 489 | return true; | 327 | 489 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 1 | auto call = [&](const auto& type) -> bool { | 323 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1 | block, result, col_left, col_right); | 326 | 1 | return true; | 327 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 4 | auto call = [&](const auto& type) -> bool { | 323 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 4 | block, result, col_left, col_right); | 326 | 4 | return true; | 327 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 142k | auto call = [&](const auto& type) -> bool { | 323 | 142k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 142k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 142k | block, result, col_left, col_right); | 326 | 142k | return true; | 327 | 142k | }; |
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 | 322 | 779 | auto call = [&](const auto& type) -> bool { | 323 | 779 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 779 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 779 | block, result, col_left, col_right); | 326 | 779 | return true; | 327 | 779 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 16 | auto call = [&](const auto& type) -> bool { | 323 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 16 | block, result, col_left, col_right); | 326 | 16 | return true; | 327 | 16 | }; |
|
328 | | |
329 | 150k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
330 | 0 | return Status::RuntimeError( |
331 | 0 | "type of left column {} is not equal to type of right column {}", |
332 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
333 | 0 | } |
334 | | |
335 | 150k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
337 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
338 | 0 | } |
339 | 150k | return Status::OK(); |
340 | 150k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 1.67k | const ColumnWithTypeAndName& col_right) const { | 322 | 1.67k | auto call = [&](const auto& type) -> bool { | 323 | 1.67k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.67k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.67k | block, result, col_left, col_right); | 326 | 1.67k | return true; | 327 | 1.67k | }; | 328 | | | 329 | 1.67k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 1.67k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 1.67k | return Status::OK(); | 340 | 1.67k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 415 | const ColumnWithTypeAndName& col_right) const { | 322 | 415 | auto call = [&](const auto& type) -> bool { | 323 | 415 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 415 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 415 | block, result, col_left, col_right); | 326 | 415 | return true; | 327 | 415 | }; | 328 | | | 329 | 415 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 415 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 415 | return Status::OK(); | 340 | 415 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 3.16k | const ColumnWithTypeAndName& col_right) const { | 322 | 3.16k | auto call = [&](const auto& type) -> bool { | 323 | 3.16k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 3.16k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 3.16k | block, result, col_left, col_right); | 326 | 3.16k | return true; | 327 | 3.16k | }; | 328 | | | 329 | 3.16k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 3.16k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 3.16k | return Status::OK(); | 340 | 3.16k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 397 | const ColumnWithTypeAndName& col_right) const { | 322 | 397 | auto call = [&](const auto& type) -> bool { | 323 | 397 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 397 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 397 | block, result, col_left, col_right); | 326 | 397 | return true; | 327 | 397 | }; | 328 | | | 329 | 397 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 397 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 397 | return Status::OK(); | 340 | 397 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 959 | const ColumnWithTypeAndName& col_right) const { | 322 | 959 | auto call = [&](const auto& type) -> bool { | 323 | 959 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 959 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 959 | block, result, col_left, col_right); | 326 | 959 | return true; | 327 | 959 | }; | 328 | | | 329 | 959 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 959 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 959 | return Status::OK(); | 340 | 959 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 143k | const ColumnWithTypeAndName& col_right) const { | 322 | 143k | auto call = [&](const auto& type) -> bool { | 323 | 143k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 143k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 143k | block, result, col_left, col_right); | 326 | 143k | return true; | 327 | 143k | }; | 328 | | | 329 | 143k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 143k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 143k | return Status::OK(); | 340 | 143k | } |
|
341 | | |
342 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
343 | 27.0k | const IColumn* c1) const { |
344 | 27.0k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
345 | 27.0k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
346 | 27.0k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
347 | 27.0k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
348 | 27.0k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
350 | 0 | c0->get_name(), c1->get_name(), name); |
351 | 0 | } |
352 | 27.0k | DCHECK(!(c0_const && c1_const)); |
353 | 27.0k | const ColumnString::Chars* c0_const_chars = nullptr; |
354 | 27.0k | const ColumnString::Chars* c1_const_chars = nullptr; |
355 | 27.0k | ColumnString::Offset c0_const_size = 0; |
356 | 27.0k | ColumnString::Offset c1_const_size = 0; |
357 | | |
358 | 27.0k | if (c0_const) { |
359 | 6 | const ColumnString* c0_const_string = |
360 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
361 | | |
362 | 6 | if (c0_const_string) { |
363 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
364 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
365 | 6 | } else { |
366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
367 | 0 | c0->get_name(), name); |
368 | 0 | } |
369 | 6 | } |
370 | | |
371 | 27.0k | if (c1_const) { |
372 | 26.2k | const ColumnString* c1_const_string = |
373 | 26.2k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
374 | | |
375 | 26.2k | if (c1_const_string) { |
376 | 26.2k | c1_const_chars = &c1_const_string->get_chars(); |
377 | 26.2k | c1_const_size = c1_const_string->get_offsets()[0]; |
378 | 18.4E | } else { |
379 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
380 | 18.4E | c1->get_name(), name); |
381 | 18.4E | } |
382 | 26.2k | } |
383 | | |
384 | 27.0k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
385 | | |
386 | 27.0k | auto c_res = ColumnUInt8::create(); |
387 | 27.0k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
388 | 27.0k | vec_res.resize(c0->size()); |
389 | | |
390 | 27.0k | if (c0_string && c1_string) { |
391 | 791 | StringImpl::string_vector_string_vector( |
392 | 791 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
393 | 791 | c1_string->get_offsets(), vec_res); |
394 | 26.2k | } else if (c0_string && c1_const) { |
395 | 26.2k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
396 | 26.2k | *c1_const_chars, c1_const_size, vec_res); |
397 | 26.2k | } else if (c0_const && c1_string) { |
398 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
399 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
400 | 6 | vec_res); |
401 | 18.4E | } else { |
402 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
403 | 18.4E | c0->get_name(), c1->get_name(), name); |
404 | 18.4E | } |
405 | 27.0k | block.replace_by_position(result, std::move(c_res)); |
406 | 27.0k | return Status::OK(); |
407 | 27.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 22.1k | const IColumn* c1) const { | 344 | 22.1k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 22.1k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 22.1k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 22.1k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 22.1k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 22.1k | DCHECK(!(c0_const && c1_const)); | 353 | 22.1k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 22.1k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 22.1k | ColumnString::Offset c0_const_size = 0; | 356 | 22.1k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 22.1k | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 22.1k | if (c1_const) { | 372 | 21.7k | const ColumnString* c1_const_string = | 373 | 21.7k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 21.7k | if (c1_const_string) { | 376 | 21.7k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 21.7k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 18.4E | } else { | 379 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 18.4E | c1->get_name(), name); | 381 | 18.4E | } | 382 | 21.7k | } | 383 | | | 384 | 22.1k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 22.1k | auto c_res = ColumnUInt8::create(); | 387 | 22.1k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 22.1k | vec_res.resize(c0->size()); | 389 | | | 390 | 22.1k | if (c0_string && c1_string) { | 391 | 406 | StringImpl::string_vector_string_vector( | 392 | 406 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 406 | c1_string->get_offsets(), vec_res); | 394 | 21.7k | } else if (c0_string && c1_const) { | 395 | 21.7k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 21.7k | *c1_const_chars, c1_const_size, vec_res); | 397 | 18.4E | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 18.4E | } else { | 402 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 18.4E | c0->get_name(), c1->get_name(), name); | 404 | 18.4E | } | 405 | 22.1k | block.replace_by_position(result, std::move(c_res)); | 406 | 22.1k | return Status::OK(); | 407 | 22.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 1.47k | const IColumn* c1) const { | 344 | 1.47k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 1.47k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 1.47k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 1.47k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 1.47k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 1.47k | DCHECK(!(c0_const && c1_const)); | 353 | 1.47k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 1.47k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 1.47k | ColumnString::Offset c0_const_size = 0; | 356 | 1.47k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 1.47k | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 1.47k | if (c1_const) { | 372 | 1.47k | const ColumnString* c1_const_string = | 373 | 1.47k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 1.47k | if (c1_const_string) { | 376 | 1.47k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 1.47k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 1.47k | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 1.47k | } | 383 | | | 384 | 1.47k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 1.47k | auto c_res = ColumnUInt8::create(); | 387 | 1.47k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 1.47k | vec_res.resize(c0->size()); | 389 | | | 390 | 1.47k | if (c0_string && c1_string) { | 391 | 1 | StringImpl::string_vector_string_vector( | 392 | 1 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 1 | c1_string->get_offsets(), vec_res); | 394 | 1.47k | } else if (c0_string && c1_const) { | 395 | 1.47k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 1.47k | *c1_const_chars, c1_const_size, vec_res); | 397 | 1.47k | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 0 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 1.47k | block.replace_by_position(result, std::move(c_res)); | 406 | 1.47k | return Status::OK(); | 407 | 1.47k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 225 | const IColumn* c1) const { | 344 | 225 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 225 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 225 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 225 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 225 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 225 | DCHECK(!(c0_const && c1_const)); | 353 | 225 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 225 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 225 | ColumnString::Offset c0_const_size = 0; | 356 | 225 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 225 | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 225 | if (c1_const) { | 372 | 223 | const ColumnString* c1_const_string = | 373 | 223 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 223 | if (c1_const_string) { | 376 | 223 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 223 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 223 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 223 | } | 383 | | | 384 | 225 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 225 | auto c_res = ColumnUInt8::create(); | 387 | 225 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 225 | vec_res.resize(c0->size()); | 389 | | | 390 | 225 | if (c0_string && c1_string) { | 391 | 2 | StringImpl::string_vector_string_vector( | 392 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 2 | c1_string->get_offsets(), vec_res); | 394 | 223 | } else if (c0_string && c1_const) { | 395 | 223 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 223 | *c1_const_chars, c1_const_size, vec_res); | 397 | 223 | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 0 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 225 | block.replace_by_position(result, std::move(c_res)); | 406 | 225 | return Status::OK(); | 407 | 225 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 676 | const IColumn* c1) const { | 344 | 676 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 676 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 676 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 676 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 676 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 676 | DCHECK(!(c0_const && c1_const)); | 353 | 676 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 676 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 676 | ColumnString::Offset c0_const_size = 0; | 356 | 676 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 676 | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 676 | if (c1_const) { | 372 | 640 | const ColumnString* c1_const_string = | 373 | 640 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 640 | if (c1_const_string) { | 376 | 640 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 640 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 640 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 640 | } | 383 | | | 384 | 676 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 676 | auto c_res = ColumnUInt8::create(); | 387 | 676 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 676 | vec_res.resize(c0->size()); | 389 | | | 390 | 676 | if (c0_string && c1_string) { | 391 | 36 | StringImpl::string_vector_string_vector( | 392 | 36 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 36 | c1_string->get_offsets(), vec_res); | 394 | 640 | } else if (c0_string && c1_const) { | 395 | 640 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 640 | *c1_const_chars, c1_const_size, vec_res); | 397 | 640 | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 0 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 676 | block.replace_by_position(result, std::move(c_res)); | 406 | 676 | return Status::OK(); | 407 | 676 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 633 | const IColumn* c1) const { | 344 | 633 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 633 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 633 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 633 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 633 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 633 | DCHECK(!(c0_const && c1_const)); | 353 | 633 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 633 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 633 | ColumnString::Offset c0_const_size = 0; | 356 | 633 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 633 | if (c0_const) { | 359 | 6 | const ColumnString* c0_const_string = | 360 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | | | 362 | 6 | if (c0_const_string) { | 363 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 6 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 6 | } | 370 | | | 371 | 633 | if (c1_const) { | 372 | 281 | const ColumnString* c1_const_string = | 373 | 281 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 281 | if (c1_const_string) { | 376 | 281 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 281 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 281 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 281 | } | 383 | | | 384 | 633 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 633 | auto c_res = ColumnUInt8::create(); | 387 | 633 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 633 | vec_res.resize(c0->size()); | 389 | | | 390 | 633 | if (c0_string && c1_string) { | 391 | 346 | StringImpl::string_vector_string_vector( | 392 | 346 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 346 | c1_string->get_offsets(), vec_res); | 394 | 346 | } else if (c0_string && c1_const) { | 395 | 281 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 281 | *c1_const_chars, c1_const_size, vec_res); | 397 | 281 | } else if (c0_const && c1_string) { | 398 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 6 | vec_res); | 401 | 6 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 633 | block.replace_by_position(result, std::move(c_res)); | 406 | 633 | return Status::OK(); | 407 | 633 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 1.88k | const IColumn* c1) const { | 344 | 1.88k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 1.88k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 1.88k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 1.88k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 1.88k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 1.88k | DCHECK(!(c0_const && c1_const)); | 353 | 1.88k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 1.88k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 1.88k | ColumnString::Offset c0_const_size = 0; | 356 | 1.88k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 1.88k | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 1.88k | if (c1_const) { | 372 | 1.88k | const ColumnString* c1_const_string = | 373 | 1.88k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 1.88k | if (c1_const_string) { | 376 | 1.88k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 1.88k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 1.88k | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 1.88k | } | 383 | | | 384 | 1.88k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 1.88k | auto c_res = ColumnUInt8::create(); | 387 | 1.88k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 1.88k | vec_res.resize(c0->size()); | 389 | | | 390 | 1.88k | if (c0_string && c1_string) { | 391 | 0 | StringImpl::string_vector_string_vector( | 392 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 0 | c1_string->get_offsets(), vec_res); | 394 | 1.88k | } else if (c0_string && c1_const) { | 395 | 1.88k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 1.88k | *c1_const_chars, c1_const_size, vec_res); | 397 | 1.88k | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 0 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 1.88k | block.replace_by_position(result, std::move(c_res)); | 406 | 1.88k | return Status::OK(); | 407 | 1.88k | } |
|
408 | | |
409 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
410 | 148 | const IColumn* c1) const { |
411 | 148 | bool c0_const = is_column_const(*c0); |
412 | 148 | bool c1_const = is_column_const(*c1); |
413 | | |
414 | 148 | DCHECK(!(c0_const && c1_const)); |
415 | | |
416 | 148 | auto c_res = ColumnUInt8::create(); |
417 | 148 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
418 | 148 | vec_res.resize(c0->size()); |
419 | | |
420 | 148 | if (c0_const) { |
421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
422 | 148 | } else if (c1_const) { |
423 | 139 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
424 | 139 | } else { |
425 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
426 | 9 | } |
427 | | |
428 | 148 | block.replace_by_position(result, std::move(c_res)); |
429 | 148 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 17 | const IColumn* c1) const { | 411 | 17 | bool c0_const = is_column_const(*c0); | 412 | 17 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 17 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 17 | auto c_res = ColumnUInt8::create(); | 417 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 17 | vec_res.resize(c0->size()); | 419 | | | 420 | 17 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 17 | } else if (c1_const) { | 423 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 13 | } else { | 425 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 4 | } | 427 | | | 428 | 17 | block.replace_by_position(result, std::move(c_res)); | 429 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 8 | const IColumn* c1) const { | 411 | 8 | bool c0_const = is_column_const(*c0); | 412 | 8 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 8 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 8 | auto c_res = ColumnUInt8::create(); | 417 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 8 | vec_res.resize(c0->size()); | 419 | | | 420 | 8 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 8 | } else if (c1_const) { | 423 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 8 | } else { | 425 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 0 | } | 427 | | | 428 | 8 | block.replace_by_position(result, std::move(c_res)); | 429 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 9 | const IColumn* c1) const { | 411 | 9 | bool c0_const = is_column_const(*c0); | 412 | 9 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 9 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 9 | auto c_res = ColumnUInt8::create(); | 417 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 9 | vec_res.resize(c0->size()); | 419 | | | 420 | 9 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 9 | } else if (c1_const) { | 423 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 8 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 9 | block.replace_by_position(result, std::move(c_res)); | 429 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 58 | const IColumn* c1) const { | 411 | 58 | bool c0_const = is_column_const(*c0); | 412 | 58 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 58 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 58 | auto c_res = ColumnUInt8::create(); | 417 | 58 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 58 | vec_res.resize(c0->size()); | 419 | | | 420 | 58 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 58 | } else if (c1_const) { | 423 | 57 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 57 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 58 | block.replace_by_position(result, std::move(c_res)); | 429 | 58 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 11 | const IColumn* c1) const { | 411 | 11 | bool c0_const = is_column_const(*c0); | 412 | 11 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 11 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 11 | auto c_res = ColumnUInt8::create(); | 417 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 11 | vec_res.resize(c0->size()); | 419 | | | 420 | 11 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 11 | } else if (c1_const) { | 423 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 8 | } else { | 425 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 3 | } | 427 | | | 428 | 11 | block.replace_by_position(result, std::move(c_res)); | 429 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 45 | const IColumn* c1) const { | 411 | 45 | bool c0_const = is_column_const(*c0); | 412 | 45 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 45 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 45 | auto c_res = ColumnUInt8::create(); | 417 | 45 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 45 | vec_res.resize(c0->size()); | 419 | | | 420 | 45 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 45 | } else if (c1_const) { | 423 | 45 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 45 | } else { | 425 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 0 | } | 427 | | | 428 | 45 | block.replace_by_position(result, std::move(c_res)); | 429 | 45 | } |
|
430 | | |
431 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
432 | 148 | const ColumnWithTypeAndName& c1) const { |
433 | 148 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
434 | 148 | return Status::OK(); |
435 | 148 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 17 | const ColumnWithTypeAndName& c1) const { | 433 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 17 | return Status::OK(); | 435 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 8 | const ColumnWithTypeAndName& c1) const { | 433 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 8 | return Status::OK(); | 435 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 9 | const ColumnWithTypeAndName& c1) const { | 433 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 9 | return Status::OK(); | 435 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 58 | const ColumnWithTypeAndName& c1) const { | 433 | 58 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 58 | return Status::OK(); | 435 | 58 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 11 | const ColumnWithTypeAndName& c1) const { | 433 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 11 | return Status::OK(); | 435 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 45 | const ColumnWithTypeAndName& c1) const { | 433 | 45 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 45 | return Status::OK(); | 435 | 45 | } |
|
436 | | |
437 | | public: |
438 | 217 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 62 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 35 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 1 | String get_name() const override { return name; } |
|
439 | | |
440 | 460k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 425k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 1.32k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 440 | 6.26k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 10.2k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 440 | 3.11k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 13.6k | size_t get_number_of_arguments() const override { return 2; } |
|
441 | | |
442 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
443 | 460k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
444 | 460k | return std::make_shared<DataTypeUInt8>(); |
445 | 460k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 425k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 425k | return std::make_shared<DataTypeUInt8>(); | 445 | 425k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 1.32k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 1.32k | return std::make_shared<DataTypeUInt8>(); | 445 | 1.32k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 6.26k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 6.26k | return std::make_shared<DataTypeUInt8>(); | 445 | 6.26k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 10.2k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 10.2k | return std::make_shared<DataTypeUInt8>(); | 445 | 10.2k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 3.11k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 3.11k | return std::make_shared<DataTypeUInt8>(); | 445 | 3.11k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 13.7k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 13.7k | return std::make_shared<DataTypeUInt8>(); | 445 | 13.7k | } |
|
446 | | |
447 | | Status evaluate_inverted_index( |
448 | | const ColumnsWithTypeAndName& arguments, |
449 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
450 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
451 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
452 | 1.78k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
453 | 1.78k | DCHECK(arguments.size() == 1); |
454 | 1.78k | DCHECK(data_type_with_names.size() == 1); |
455 | 1.78k | DCHECK(iterators.size() == 1); |
456 | 1.78k | auto* iter = iterators[0]; |
457 | 1.78k | auto data_type_with_name = data_type_with_names[0]; |
458 | 1.78k | if (iter == nullptr) { |
459 | 0 | return Status::OK(); |
460 | 0 | } |
461 | 1.78k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
462 | 445 | return Status::OK(); |
463 | 445 | } |
464 | 1.33k | segment_v2::InvertedIndexQueryType query_type; |
465 | 1.33k | std::string_view name_view(name); |
466 | 1.33k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
467 | 885 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
468 | 885 | } else if (name_view == NameLess::name) { |
469 | 109 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
470 | 342 | } else if (name_view == NameLessOrEquals::name) { |
471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
472 | 244 | } else if (name_view == NameGreater::name) { |
473 | 114 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
474 | 135 | } else if (name_view == NameGreaterOrEquals::name) { |
475 | 135 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
476 | 18.4E | } else { |
477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
478 | 18.4E | } |
479 | | |
480 | 1.34k | if (segment_v2::is_range_query(query_type) && |
481 | 1.34k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
483 | 171 | return Status::OK(); |
484 | 171 | } |
485 | 1.17k | Field param_value; |
486 | 1.17k | arguments[0].column->get(0, param_value); |
487 | 1.17k | if (param_value.is_null()) { |
488 | 2 | return Status::OK(); |
489 | 2 | } |
490 | 1.16k | segment_v2::InvertedIndexParam param; |
491 | 1.16k | param.column_name = data_type_with_name.first; |
492 | 1.16k | param.column_type = data_type_with_name.second; |
493 | 1.16k | param.query_value = param_value; |
494 | 1.16k | param.query_type = query_type; |
495 | 1.16k | param.num_rows = num_rows; |
496 | 1.16k | param.roaring = std::make_shared<roaring::Roaring>(); |
497 | 1.16k | param.analyzer_ctx = analyzer_ctx; |
498 | 1.16k | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
499 | 1.00k | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
500 | 1.00k | if (iter->has_null()) { |
501 | 1.00k | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
502 | 1.00k | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
503 | 1.00k | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
504 | 1.00k | } |
505 | 1.00k | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
506 | 1.00k | bitmap_result = result; |
507 | 1.00k | bitmap_result.mask_out_null(); |
508 | | |
509 | 1.00k | if (name_view == NameNotEquals::name) { |
510 | 63 | roaring::Roaring full_result; |
511 | 63 | full_result.addRange(0, num_rows); |
512 | 63 | bitmap_result.op_not(&full_result); |
513 | 63 | } |
514 | | |
515 | 1.00k | return Status::OK(); |
516 | 1.00k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 897 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 897 | DCHECK(arguments.size() == 1); | 454 | 897 | DCHECK(data_type_with_names.size() == 1); | 455 | 897 | DCHECK(iterators.size() == 1); | 456 | 897 | auto* iter = iterators[0]; | 457 | 897 | auto data_type_with_name = data_type_with_names[0]; | 458 | 897 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 897 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 87 | return Status::OK(); | 463 | 87 | } | 464 | 810 | segment_v2::InvertedIndexQueryType query_type; | 465 | 810 | std::string_view name_view(name); | 466 | 815 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 815 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 18.4E | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 18.4E | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 18.4E | } else { | 477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 18.4E | } | 479 | | | 480 | 815 | if (segment_v2::is_range_query(query_type) && | 481 | 815 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 0 | return Status::OK(); | 484 | 0 | } | 485 | 815 | Field param_value; | 486 | 815 | arguments[0].column->get(0, param_value); | 487 | 815 | if (param_value.is_null()) { | 488 | 2 | return Status::OK(); | 489 | 2 | } | 490 | 813 | segment_v2::InvertedIndexParam param; | 491 | 813 | param.column_name = data_type_with_name.first; | 492 | 813 | param.column_type = data_type_with_name.second; | 493 | 813 | param.query_value = param_value; | 494 | 813 | param.query_type = query_type; | 495 | 813 | param.num_rows = num_rows; | 496 | 813 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 813 | param.analyzer_ctx = analyzer_ctx; | 498 | 813 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 757 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 757 | if (iter->has_null()) { | 501 | 757 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 757 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 757 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 757 | } | 505 | 757 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 757 | bitmap_result = result; | 507 | 757 | bitmap_result.mask_out_null(); | 508 | | | 509 | 757 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 757 | return Status::OK(); | 516 | 757 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 78 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 78 | DCHECK(arguments.size() == 1); | 454 | 78 | DCHECK(data_type_with_names.size() == 1); | 455 | 78 | DCHECK(iterators.size() == 1); | 456 | 78 | auto* iter = iterators[0]; | 457 | 78 | auto data_type_with_name = data_type_with_names[0]; | 458 | 78 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 78 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 8 | return Status::OK(); | 463 | 8 | } | 464 | 70 | segment_v2::InvertedIndexQueryType query_type; | 465 | 70 | std::string_view name_view(name); | 466 | 70 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 70 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 70 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 0 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 0 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 0 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 70 | if (segment_v2::is_range_query(query_type) && | 481 | 70 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 0 | return Status::OK(); | 484 | 0 | } | 485 | 70 | Field param_value; | 486 | 70 | arguments[0].column->get(0, param_value); | 487 | 70 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 70 | segment_v2::InvertedIndexParam param; | 491 | 70 | param.column_name = data_type_with_name.first; | 492 | 70 | param.column_type = data_type_with_name.second; | 493 | 70 | param.query_value = param_value; | 494 | 70 | param.query_type = query_type; | 495 | 70 | param.num_rows = num_rows; | 496 | 70 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 70 | param.analyzer_ctx = analyzer_ctx; | 498 | 70 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 63 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 63 | if (iter->has_null()) { | 501 | 63 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 63 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 63 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 63 | } | 505 | 63 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 63 | bitmap_result = result; | 507 | 63 | bitmap_result.mask_out_null(); | 508 | | | 509 | 63 | if (name_view == NameNotEquals::name) { | 510 | 63 | roaring::Roaring full_result; | 511 | 63 | full_result.addRange(0, num_rows); | 512 | 63 | bitmap_result.op_not(&full_result); | 513 | 63 | } | 514 | | | 515 | 63 | return Status::OK(); | 516 | 63 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 176 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 176 | DCHECK(arguments.size() == 1); | 454 | 176 | DCHECK(data_type_with_names.size() == 1); | 455 | 176 | DCHECK(iterators.size() == 1); | 456 | 176 | auto* iter = iterators[0]; | 457 | 176 | auto data_type_with_name = data_type_with_names[0]; | 458 | 176 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 176 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 62 | return Status::OK(); | 463 | 62 | } | 464 | 114 | segment_v2::InvertedIndexQueryType query_type; | 465 | 114 | std::string_view name_view(name); | 466 | 114 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 114 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 114 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 114 | } else if (name_view == NameGreater::name) { | 473 | 114 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 114 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 0 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 114 | if (segment_v2::is_range_query(query_type) && | 481 | 114 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 28 | return Status::OK(); | 484 | 28 | } | 485 | 86 | Field param_value; | 486 | 86 | arguments[0].column->get(0, param_value); | 487 | 86 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 86 | segment_v2::InvertedIndexParam param; | 491 | 86 | param.column_name = data_type_with_name.first; | 492 | 86 | param.column_type = data_type_with_name.second; | 493 | 86 | param.query_value = param_value; | 494 | 86 | param.query_type = query_type; | 495 | 86 | param.num_rows = num_rows; | 496 | 86 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 86 | param.analyzer_ctx = analyzer_ctx; | 498 | 86 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 67 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 67 | if (iter->has_null()) { | 501 | 66 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 66 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 66 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 66 | } | 505 | 67 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 67 | bitmap_result = result; | 507 | 67 | bitmap_result.mask_out_null(); | 508 | | | 509 | 67 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 67 | return Status::OK(); | 516 | 67 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 249 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 249 | DCHECK(arguments.size() == 1); | 454 | 249 | DCHECK(data_type_with_names.size() == 1); | 455 | 249 | DCHECK(iterators.size() == 1); | 456 | 249 | auto* iter = iterators[0]; | 457 | 249 | auto data_type_with_name = data_type_with_names[0]; | 458 | 249 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 249 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 114 | return Status::OK(); | 463 | 114 | } | 464 | 135 | segment_v2::InvertedIndexQueryType query_type; | 465 | 135 | std::string_view name_view(name); | 466 | 135 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 135 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 135 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 135 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 135 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 135 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 135 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 135 | if (segment_v2::is_range_query(query_type) && | 481 | 135 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 59 | return Status::OK(); | 484 | 59 | } | 485 | 76 | Field param_value; | 486 | 76 | arguments[0].column->get(0, param_value); | 487 | 76 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 76 | segment_v2::InvertedIndexParam param; | 491 | 76 | param.column_name = data_type_with_name.first; | 492 | 76 | param.column_type = data_type_with_name.second; | 493 | 76 | param.query_value = param_value; | 494 | 76 | param.query_type = query_type; | 495 | 76 | param.num_rows = num_rows; | 496 | 76 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 76 | param.analyzer_ctx = analyzer_ctx; | 498 | 76 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 34 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 34 | if (iter->has_null()) { | 501 | 34 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 34 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 34 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 34 | } | 505 | 34 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 34 | bitmap_result = result; | 507 | 34 | bitmap_result.mask_out_null(); | 508 | | | 509 | 34 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 34 | return Status::OK(); | 516 | 34 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 171 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 171 | DCHECK(arguments.size() == 1); | 454 | 171 | DCHECK(data_type_with_names.size() == 1); | 455 | 171 | DCHECK(iterators.size() == 1); | 456 | 171 | auto* iter = iterators[0]; | 457 | 171 | auto data_type_with_name = data_type_with_names[0]; | 458 | 171 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 171 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 61 | return Status::OK(); | 463 | 61 | } | 464 | 110 | segment_v2::InvertedIndexQueryType query_type; | 465 | 110 | std::string_view name_view(name); | 466 | 110 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 110 | } else if (name_view == NameLess::name) { | 469 | 109 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 109 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 1 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 1 | } else { | 477 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 1 | } | 479 | | | 480 | 109 | if (segment_v2::is_range_query(query_type) && | 481 | 109 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 26 | return Status::OK(); | 484 | 26 | } | 485 | 83 | Field param_value; | 486 | 83 | arguments[0].column->get(0, param_value); | 487 | 83 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 83 | segment_v2::InvertedIndexParam param; | 491 | 83 | param.column_name = data_type_with_name.first; | 492 | 83 | param.column_type = data_type_with_name.second; | 493 | 83 | param.query_value = param_value; | 494 | 83 | param.query_type = query_type; | 495 | 83 | param.num_rows = num_rows; | 496 | 83 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 83 | param.analyzer_ctx = analyzer_ctx; | 498 | 83 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 64 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 66 | if (iter->has_null()) { | 501 | 66 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 66 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 66 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 66 | } | 505 | 64 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 64 | bitmap_result = result; | 507 | 64 | bitmap_result.mask_out_null(); | 508 | | | 509 | 64 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 64 | return Status::OK(); | 516 | 64 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 210 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 210 | DCHECK(arguments.size() == 1); | 454 | 210 | DCHECK(data_type_with_names.size() == 1); | 455 | 210 | DCHECK(iterators.size() == 1); | 456 | 210 | auto* iter = iterators[0]; | 457 | 210 | auto data_type_with_name = data_type_with_names[0]; | 458 | 210 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 210 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 113 | return Status::OK(); | 463 | 113 | } | 464 | 97 | segment_v2::InvertedIndexQueryType query_type; | 465 | 97 | std::string_view name_view(name); | 466 | 98 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 97 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 98 | } else if (name_view == NameLessOrEquals::name) { | 471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 18.4E | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 18.4E | } else { | 477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 18.4E | } | 479 | | | 480 | 98 | if (segment_v2::is_range_query(query_type) && | 481 | 98 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 58 | return Status::OK(); | 484 | 58 | } | 485 | 40 | Field param_value; | 486 | 40 | arguments[0].column->get(0, param_value); | 487 | 40 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 40 | segment_v2::InvertedIndexParam param; | 491 | 40 | param.column_name = data_type_with_name.first; | 492 | 40 | param.column_type = data_type_with_name.second; | 493 | 40 | param.query_value = param_value; | 494 | 40 | param.query_type = query_type; | 495 | 40 | param.num_rows = num_rows; | 496 | 40 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 40 | param.analyzer_ctx = analyzer_ctx; | 498 | 40 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 19 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 19 | if (iter->has_null()) { | 501 | 18 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 18 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 18 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 18 | } | 505 | 19 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 19 | bitmap_result = result; | 507 | 19 | bitmap_result.mask_out_null(); | 508 | | | 509 | 19 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 19 | return Status::OK(); | 516 | 19 | } |
|
517 | | |
518 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
519 | 411k | uint32_t result, size_t input_rows_count) const override { |
520 | 411k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
521 | 411k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
522 | | |
523 | 411k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
524 | 411k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
525 | 411k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
526 | 411k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
527 | | |
528 | 411k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
529 | 411k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
530 | | |
531 | | /// The case when arguments are the same (tautological comparison). Return constant. |
532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
534 | 411k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
535 | 411k | col_left_untyped == col_right_untyped) { |
536 | | /// Always true: =, <=, >= |
537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
541 | 0 | block.get_by_position(result).column = |
542 | 0 | DataTypeUInt8() |
543 | 0 | .create_column_const(input_rows_count, |
544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
545 | 0 | ->convert_to_full_column_if_const(); |
546 | 0 | return Status::OK(); |
547 | 0 | } else { |
548 | 0 | block.get_by_position(result).column = |
549 | 0 | DataTypeUInt8() |
550 | 0 | .create_column_const(input_rows_count, |
551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
552 | 0 | ->convert_to_full_column_if_const(); |
553 | 0 | return Status::OK(); |
554 | 0 | } |
555 | 0 | } |
556 | | |
557 | 645k | auto can_compare = [](PrimitiveType t) -> bool { |
558 | 645k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
559 | 645k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 157k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 157k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 157k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 15.3k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 15.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 15.3k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 210k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 210k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 210k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 33.5k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 33.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 33.5k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 29.1k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 29.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 29.1k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 200k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 200k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 200k | }; |
|
560 | | |
561 | 411k | if (can_compare(left_type->get_primitive_type()) && |
562 | 411k | can_compare(right_type->get_primitive_type())) { |
563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
564 | 234k | if (!left_type->equals_ignore_precision(*right_type)) { |
565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
566 | 0 | get_name(), left_type->get_name(), |
567 | 0 | right_type->get_name()); |
568 | 0 | } |
569 | 234k | } |
570 | | |
571 | 411k | auto compare_type = left_type->get_primitive_type(); |
572 | 411k | switch (compare_type) { |
573 | 2.20k | case TYPE_BOOLEAN: |
574 | 2.20k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
575 | 10.7k | case TYPE_DATEV2: |
576 | 10.7k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
577 | 2.41k | case TYPE_DATETIMEV2: |
578 | 2.41k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
579 | 7 | case TYPE_TIMESTAMPTZ: |
580 | 7 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
581 | 10.4k | case TYPE_TINYINT: |
582 | 10.4k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
583 | 4.19k | case TYPE_SMALLINT: |
584 | 4.19k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
585 | 155k | case TYPE_INT: |
586 | 155k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
587 | 43.3k | case TYPE_BIGINT: |
588 | 43.3k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
589 | 771 | case TYPE_LARGEINT: |
590 | 771 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
591 | 59 | case TYPE_IPV4: |
592 | 59 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
593 | 37 | case TYPE_IPV6: |
594 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
595 | 782 | case TYPE_FLOAT: |
596 | 782 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
597 | 3.67k | case TYPE_DOUBLE: |
598 | 3.67k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
599 | 4 | case TYPE_TIMEV2: |
600 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
601 | 0 | case TYPE_DECIMALV2: |
602 | 506 | case TYPE_DECIMAL32: |
603 | 145k | case TYPE_DECIMAL64: |
604 | 150k | case TYPE_DECIMAL128I: |
605 | 150k | case TYPE_DECIMAL256: |
606 | 150k | return execute_decimal(block, result, col_with_type_and_name_left, |
607 | 150k | col_with_type_and_name_right); |
608 | 1.18k | case TYPE_CHAR: |
609 | 10.5k | case TYPE_VARCHAR: |
610 | 27.0k | case TYPE_STRING: |
611 | 27.0k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
612 | 148 | default: |
613 | 148 | return execute_generic(block, result, col_with_type_and_name_left, |
614 | 148 | col_with_type_and_name_right); |
615 | 411k | } |
616 | 0 | return Status::OK(); |
617 | 411k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 90.4k | uint32_t result, size_t input_rows_count) const override { | 520 | 90.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 90.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 90.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 90.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 90.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 90.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 90.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 90.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 90.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 90.4k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | 0 | block.get_by_position(result).column = | 542 | 0 | DataTypeUInt8() | 543 | 0 | .create_column_const(input_rows_count, | 544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | 0 | ->convert_to_full_column_if_const(); | 546 | 0 | return Status::OK(); | 547 | | } else { | 548 | | block.get_by_position(result).column = | 549 | | DataTypeUInt8() | 550 | | .create_column_const(input_rows_count, | 551 | | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | | ->convert_to_full_column_if_const(); | 553 | | return Status::OK(); | 554 | | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 90.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 90.4k | }; | 560 | | | 561 | 90.4k | if (can_compare(left_type->get_primitive_type()) && | 562 | 90.4k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 66.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 66.6k | } | 570 | | | 571 | 90.4k | auto compare_type = left_type->get_primitive_type(); | 572 | 90.4k | switch (compare_type) { | 573 | 1.60k | case TYPE_BOOLEAN: | 574 | 1.60k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 1.02k | case TYPE_DATEV2: | 576 | 1.02k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 631 | case TYPE_DATETIMEV2: | 578 | 631 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 2 | case TYPE_TIMESTAMPTZ: | 580 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 6.83k | case TYPE_TINYINT: | 582 | 6.83k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 1.42k | case TYPE_SMALLINT: | 584 | 1.42k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 31.0k | case TYPE_INT: | 586 | 31.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 23.4k | case TYPE_BIGINT: | 588 | 23.4k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 144 | case TYPE_LARGEINT: | 590 | 144 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 20 | case TYPE_IPV4: | 592 | 20 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 19 | case TYPE_IPV6: | 594 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 92 | case TYPE_FLOAT: | 596 | 92 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 388 | case TYPE_DOUBLE: | 598 | 388 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 4 | case TYPE_TIMEV2: | 600 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 234 | case TYPE_DECIMAL32: | 603 | 494 | case TYPE_DECIMAL64: | 604 | 1.64k | case TYPE_DECIMAL128I: | 605 | 1.67k | case TYPE_DECIMAL256: | 606 | 1.67k | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 1.67k | col_with_type_and_name_right); | 608 | 620 | case TYPE_CHAR: | 609 | 8.49k | case TYPE_VARCHAR: | 610 | 22.1k | case TYPE_STRING: | 611 | 22.1k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 17 | default: | 613 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 17 | col_with_type_and_name_right); | 615 | 90.4k | } | 616 | 0 | return Status::OK(); | 617 | 90.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 8.61k | uint32_t result, size_t input_rows_count) const override { | 520 | 8.61k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 8.61k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 8.61k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 8.61k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 8.61k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 8.61k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 8.61k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 8.61k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 8.61k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 8.61k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | | block.get_by_position(result).column = | 542 | | DataTypeUInt8() | 543 | | .create_column_const(input_rows_count, | 544 | | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | | ->convert_to_full_column_if_const(); | 546 | | return Status::OK(); | 547 | 0 | } else { | 548 | 0 | block.get_by_position(result).column = | 549 | 0 | DataTypeUInt8() | 550 | 0 | .create_column_const(input_rows_count, | 551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | 0 | ->convert_to_full_column_if_const(); | 553 | 0 | return Status::OK(); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 8.61k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 8.61k | }; | 560 | | | 561 | 8.61k | if (can_compare(left_type->get_primitive_type()) && | 562 | 8.61k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 6.71k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 6.71k | } | 570 | | | 571 | 8.61k | auto compare_type = left_type->get_primitive_type(); | 572 | 8.61k | switch (compare_type) { | 573 | 0 | case TYPE_BOOLEAN: | 574 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 78 | case TYPE_DATEV2: | 576 | 78 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 2 | case TYPE_DATETIMEV2: | 578 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 0 | case TYPE_TIMESTAMPTZ: | 580 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 100 | case TYPE_TINYINT: | 582 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 26 | case TYPE_SMALLINT: | 584 | 26 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 3.37k | case TYPE_INT: | 586 | 3.37k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 3.03k | case TYPE_BIGINT: | 588 | 3.03k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 0 | case TYPE_LARGEINT: | 590 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 0 | case TYPE_IPV4: | 592 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 0 | case TYPE_IPV6: | 594 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 48 | case TYPE_FLOAT: | 596 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 60 | case TYPE_DOUBLE: | 598 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 0 | case TYPE_DECIMAL32: | 603 | 61 | case TYPE_DECIMAL64: | 604 | 385 | case TYPE_DECIMAL128I: | 605 | 415 | case TYPE_DECIMAL256: | 606 | 415 | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 415 | col_with_type_and_name_right); | 608 | 17 | case TYPE_CHAR: | 609 | 323 | case TYPE_VARCHAR: | 610 | 1.47k | case TYPE_STRING: | 611 | 1.47k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 8 | default: | 613 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 8 | col_with_type_and_name_right); | 615 | 8.61k | } | 616 | 0 | return Status::OK(); | 617 | 8.61k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 106k | uint32_t result, size_t input_rows_count) const override { | 520 | 106k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 106k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 106k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 106k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 106k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 106k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 106k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 106k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 106k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 106k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | | block.get_by_position(result).column = | 542 | | DataTypeUInt8() | 543 | | .create_column_const(input_rows_count, | 544 | | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | | ->convert_to_full_column_if_const(); | 546 | | return Status::OK(); | 547 | 0 | } else { | 548 | 0 | block.get_by_position(result).column = | 549 | 0 | DataTypeUInt8() | 550 | 0 | .create_column_const(input_rows_count, | 551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | 0 | ->convert_to_full_column_if_const(); | 553 | 0 | return Status::OK(); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 106k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 106k | }; | 560 | | | 561 | 106k | if (can_compare(left_type->get_primitive_type()) && | 562 | 106k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 103k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 103k | } | 570 | | | 571 | 106k | auto compare_type = left_type->get_primitive_type(); | 572 | 106k | switch (compare_type) { | 573 | 0 | case TYPE_BOOLEAN: | 574 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 1.18k | case TYPE_DATEV2: | 576 | 1.18k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 94 | case TYPE_DATETIMEV2: | 578 | 94 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 1 | case TYPE_TIMESTAMPTZ: | 580 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 1.03k | case TYPE_TINYINT: | 582 | 1.03k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 1.88k | case TYPE_SMALLINT: | 584 | 1.88k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 82.7k | case TYPE_INT: | 586 | 82.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 13.5k | case TYPE_BIGINT: | 588 | 13.5k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 260 | case TYPE_LARGEINT: | 590 | 260 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 2 | case TYPE_IPV4: | 592 | 2 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 1 | case TYPE_IPV6: | 594 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 236 | case TYPE_FLOAT: | 596 | 236 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 2.50k | case TYPE_DOUBLE: | 598 | 2.50k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 46 | case TYPE_DECIMAL32: | 603 | 1.64k | case TYPE_DECIMAL64: | 604 | 3.15k | case TYPE_DECIMAL128I: | 605 | 3.15k | case TYPE_DECIMAL256: | 606 | 3.15k | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 3.15k | col_with_type_and_name_right); | 608 | 21 | case TYPE_CHAR: | 609 | 83 | case TYPE_VARCHAR: | 610 | 225 | case TYPE_STRING: | 611 | 225 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 9 | default: | 613 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 9 | col_with_type_and_name_right); | 615 | 106k | } | 616 | 0 | return Status::OK(); | 617 | 106k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 17.3k | uint32_t result, size_t input_rows_count) const override { | 520 | 17.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 17.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 17.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 17.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 17.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 17.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 17.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 17.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 17.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 17.3k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | 0 | block.get_by_position(result).column = | 542 | 0 | DataTypeUInt8() | 543 | 0 | .create_column_const(input_rows_count, | 544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | 0 | ->convert_to_full_column_if_const(); | 546 | 0 | return Status::OK(); | 547 | | } else { | 548 | | block.get_by_position(result).column = | 549 | | DataTypeUInt8() | 550 | | .create_column_const(input_rows_count, | 551 | | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | | ->convert_to_full_column_if_const(); | 553 | | return Status::OK(); | 554 | | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 17.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 17.3k | }; | 560 | | | 561 | 17.3k | if (can_compare(left_type->get_primitive_type()) && | 562 | 17.3k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 16.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 16.2k | } | 570 | | | 571 | 17.3k | auto compare_type = left_type->get_primitive_type(); | 572 | 17.3k | switch (compare_type) { | 573 | 142 | case TYPE_BOOLEAN: | 574 | 142 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 1.56k | case TYPE_DATEV2: | 576 | 1.56k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 619 | case TYPE_DATETIMEV2: | 578 | 619 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 1 | case TYPE_TIMESTAMPTZ: | 580 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 66 | case TYPE_TINYINT: | 582 | 66 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 112 | case TYPE_SMALLINT: | 584 | 112 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 12.5k | case TYPE_INT: | 586 | 12.5k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 777 | case TYPE_BIGINT: | 588 | 777 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 35 | case TYPE_LARGEINT: | 590 | 35 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 11 | case TYPE_IPV4: | 592 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 1 | case TYPE_IPV6: | 594 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 128 | case TYPE_FLOAT: | 596 | 128 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 161 | case TYPE_DOUBLE: | 598 | 161 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 9 | case TYPE_DECIMAL32: | 603 | 272 | case TYPE_DECIMAL64: | 604 | 376 | case TYPE_DECIMAL128I: | 605 | 397 | case TYPE_DECIMAL256: | 606 | 397 | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 397 | col_with_type_and_name_right); | 608 | 34 | case TYPE_CHAR: | 609 | 304 | case TYPE_VARCHAR: | 610 | 674 | case TYPE_STRING: | 611 | 674 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 58 | default: | 613 | 58 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 58 | col_with_type_and_name_right); | 615 | 17.3k | } | 616 | 0 | return Status::OK(); | 617 | 17.3k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 15.3k | uint32_t result, size_t input_rows_count) const override { | 520 | 15.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 15.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 15.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 15.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 15.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 15.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 15.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 15.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 15.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 15.3k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | | block.get_by_position(result).column = | 542 | | DataTypeUInt8() | 543 | | .create_column_const(input_rows_count, | 544 | | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | | ->convert_to_full_column_if_const(); | 546 | | return Status::OK(); | 547 | 0 | } else { | 548 | 0 | block.get_by_position(result).column = | 549 | 0 | DataTypeUInt8() | 550 | 0 | .create_column_const(input_rows_count, | 551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | 0 | ->convert_to_full_column_if_const(); | 553 | 0 | return Status::OK(); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 15.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 15.3k | }; | 560 | | | 561 | 15.3k | if (can_compare(left_type->get_primitive_type()) && | 562 | 15.3k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 13.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 13.7k | } | 570 | | | 571 | 15.3k | auto compare_type = left_type->get_primitive_type(); | 572 | 15.3k | switch (compare_type) { | 573 | 71 | case TYPE_BOOLEAN: | 574 | 71 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 2.18k | case TYPE_DATEV2: | 576 | 2.18k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 579 | case TYPE_DATETIMEV2: | 578 | 579 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 2 | case TYPE_TIMESTAMPTZ: | 580 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 2.09k | case TYPE_TINYINT: | 582 | 2.09k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 385 | case TYPE_SMALLINT: | 584 | 385 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 5.92k | case TYPE_INT: | 586 | 5.92k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 1.66k | case TYPE_BIGINT: | 588 | 1.66k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 289 | case TYPE_LARGEINT: | 590 | 289 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 16 | case TYPE_IPV4: | 592 | 16 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 16 | case TYPE_IPV6: | 594 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 154 | case TYPE_FLOAT: | 596 | 154 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 390 | case TYPE_DOUBLE: | 598 | 390 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 213 | case TYPE_DECIMAL32: | 603 | 469 | case TYPE_DECIMAL64: | 604 | 958 | case TYPE_DECIMAL128I: | 605 | 959 | case TYPE_DECIMAL256: | 606 | 959 | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 959 | col_with_type_and_name_right); | 608 | 162 | case TYPE_CHAR: | 609 | 313 | case TYPE_VARCHAR: | 610 | 633 | case TYPE_STRING: | 611 | 633 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 11 | default: | 613 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 11 | col_with_type_and_name_right); | 615 | 15.3k | } | 616 | 0 | return Status::OK(); | 617 | 15.3k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 173k | uint32_t result, size_t input_rows_count) const override { | 520 | 173k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 173k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 173k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 173k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 173k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 173k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 173k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 173k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 173k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 173k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | 0 | block.get_by_position(result).column = | 542 | 0 | DataTypeUInt8() | 543 | 0 | .create_column_const(input_rows_count, | 544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | 0 | ->convert_to_full_column_if_const(); | 546 | 0 | return Status::OK(); | 547 | | } else { | 548 | | block.get_by_position(result).column = | 549 | | DataTypeUInt8() | 550 | | .create_column_const(input_rows_count, | 551 | | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | | ->convert_to_full_column_if_const(); | 553 | | return Status::OK(); | 554 | | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 173k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 173k | }; | 560 | | | 561 | 173k | if (can_compare(left_type->get_primitive_type()) && | 562 | 173k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 27.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 27.4k | } | 570 | | | 571 | 173k | auto compare_type = left_type->get_primitive_type(); | 572 | 173k | switch (compare_type) { | 573 | 390 | case TYPE_BOOLEAN: | 574 | 390 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 4.71k | case TYPE_DATEV2: | 576 | 4.71k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 489 | case TYPE_DATETIMEV2: | 578 | 489 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 1 | case TYPE_TIMESTAMPTZ: | 580 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 304 | case TYPE_TINYINT: | 582 | 304 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 362 | case TYPE_SMALLINT: | 584 | 362 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 19.8k | case TYPE_INT: | 586 | 19.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 900 | case TYPE_BIGINT: | 588 | 900 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 43 | case TYPE_LARGEINT: | 590 | 43 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 10 | case TYPE_IPV4: | 592 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 0 | case TYPE_IPV6: | 594 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 124 | case TYPE_FLOAT: | 596 | 124 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 165 | case TYPE_DOUBLE: | 598 | 165 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 4 | case TYPE_DECIMAL32: | 603 | 142k | case TYPE_DECIMAL64: | 604 | 143k | case TYPE_DECIMAL128I: | 605 | 143k | case TYPE_DECIMAL256: | 606 | 143k | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 143k | col_with_type_and_name_right); | 608 | 326 | case TYPE_CHAR: | 609 | 1.06k | case TYPE_VARCHAR: | 610 | 1.88k | case TYPE_STRING: | 611 | 1.88k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 45 | default: | 613 | 45 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 45 | col_with_type_and_name_right); | 615 | 173k | } | 616 | 0 | return Status::OK(); | 617 | 173k | } |
|
618 | | }; |
619 | | |
620 | | } // namespace doris |