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/memcmp_small.h" |
38 | | #include "core/value/vdatetime_value.h" |
39 | | #include "exprs/function/function.h" |
40 | | #include "exprs/function/function_helpers.h" |
41 | | #include "exprs/function/functions_logical.h" |
42 | | #include "storage/index/index_reader_helper.h" |
43 | | |
44 | | namespace doris { |
45 | | #include "common/compile_check_begin.h" |
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 | 12.9k | PaddedPODArray<UInt8>& c) { |
66 | 12.9k | size_t size = a.size(); |
67 | 12.9k | const A* __restrict a_pos = a.data(); |
68 | 12.9k | const B* __restrict b_pos = b.data(); |
69 | 12.9k | UInt8* __restrict c_pos = c.data(); |
70 | 12.9k | const A* __restrict a_end = a_pos + size; |
71 | | |
72 | 14.5M | while (a_pos < a_end) { |
73 | 14.5M | *c_pos = Op::apply(*a_pos, *b_pos); |
74 | 14.5M | ++a_pos; |
75 | 14.5M | ++b_pos; |
76 | 14.5M | ++c_pos; |
77 | 14.5M | } |
78 | 12.9k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 73 | PaddedPODArray<UInt8>& c) { | 66 | 73 | size_t size = a.size(); | 67 | 73 | const A* __restrict a_pos = a.data(); | 68 | 73 | const B* __restrict b_pos = b.data(); | 69 | 73 | UInt8* __restrict c_pos = c.data(); | 70 | 73 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 146 | 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 | 73 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 198 | PaddedPODArray<UInt8>& c) { | 66 | 198 | size_t size = a.size(); | 67 | 198 | const A* __restrict a_pos = a.data(); | 68 | 198 | const B* __restrict b_pos = b.data(); | 69 | 198 | UInt8* __restrict c_pos = c.data(); | 70 | 198 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 404 | 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 | 198 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 251 | PaddedPODArray<UInt8>& c) { | 66 | 251 | size_t size = a.size(); | 67 | 251 | const A* __restrict a_pos = a.data(); | 68 | 251 | const B* __restrict b_pos = b.data(); | 69 | 251 | UInt8* __restrict c_pos = c.data(); | 70 | 251 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 523 | while (a_pos < a_end) { | 73 | 272 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 272 | ++a_pos; | 75 | 272 | ++b_pos; | 76 | 272 | ++c_pos; | 77 | 272 | } | 78 | 251 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 12 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 874 | PaddedPODArray<UInt8>& c) { | 66 | 874 | size_t size = a.size(); | 67 | 874 | const A* __restrict a_pos = a.data(); | 68 | 874 | const B* __restrict b_pos = b.data(); | 69 | 874 | UInt8* __restrict c_pos = c.data(); | 70 | 874 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.18k | while (a_pos < a_end) { | 73 | 4.31k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4.31k | ++a_pos; | 75 | 4.31k | ++b_pos; | 76 | 4.31k | ++c_pos; | 77 | 4.31k | } | 78 | 874 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 114 | PaddedPODArray<UInt8>& c) { | 66 | 114 | size_t size = a.size(); | 67 | 114 | const A* __restrict a_pos = a.data(); | 68 | 114 | const B* __restrict b_pos = b.data(); | 69 | 114 | UInt8* __restrict c_pos = c.data(); | 70 | 114 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 528 | while (a_pos < a_end) { | 73 | 414 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 414 | ++a_pos; | 75 | 414 | ++b_pos; | 76 | 414 | ++c_pos; | 77 | 414 | } | 78 | 114 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 254 | PaddedPODArray<UInt8>& c) { | 66 | 254 | size_t size = a.size(); | 67 | 254 | const A* __restrict a_pos = a.data(); | 68 | 254 | const B* __restrict b_pos = b.data(); | 69 | 254 | UInt8* __restrict c_pos = c.data(); | 70 | 254 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.90k | while (a_pos < a_end) { | 73 | 1.65k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.65k | ++a_pos; | 75 | 1.65k | ++b_pos; | 76 | 1.65k | ++c_pos; | 77 | 1.65k | } | 78 | 254 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 246 | PaddedPODArray<UInt8>& c) { | 66 | 246 | size_t size = a.size(); | 67 | 246 | const A* __restrict a_pos = a.data(); | 68 | 246 | const B* __restrict b_pos = b.data(); | 69 | 246 | UInt8* __restrict c_pos = c.data(); | 70 | 246 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 11.7k | while (a_pos < a_end) { | 73 | 11.4k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 11.4k | ++a_pos; | 75 | 11.4k | ++b_pos; | 76 | 11.4k | ++c_pos; | 77 | 11.4k | } | 78 | 246 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 72 | PaddedPODArray<UInt8>& c) { | 66 | 72 | size_t size = a.size(); | 67 | 72 | const A* __restrict a_pos = a.data(); | 68 | 72 | const B* __restrict b_pos = b.data(); | 69 | 72 | UInt8* __restrict c_pos = c.data(); | 70 | 72 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 156 | while (a_pos < a_end) { | 73 | 84 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 84 | ++a_pos; | 75 | 84 | ++b_pos; | 76 | 84 | ++c_pos; | 77 | 84 | } | 78 | 72 | } |
_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 | 96 | PaddedPODArray<UInt8>& c) { | 66 | 96 | size_t size = a.size(); | 67 | 96 | const A* __restrict a_pos = a.data(); | 68 | 96 | const B* __restrict b_pos = b.data(); | 69 | 96 | UInt8* __restrict c_pos = c.data(); | 70 | 96 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 211 | while (a_pos < a_end) { | 73 | 115 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 115 | ++a_pos; | 75 | 115 | ++b_pos; | 76 | 115 | ++c_pos; | 77 | 115 | } | 78 | 96 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 87 | PaddedPODArray<UInt8>& c) { | 66 | 87 | size_t size = a.size(); | 67 | 87 | const A* __restrict a_pos = a.data(); | 68 | 87 | const B* __restrict b_pos = b.data(); | 69 | 87 | UInt8* __restrict c_pos = c.data(); | 70 | 87 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 195 | while (a_pos < a_end) { | 73 | 108 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 108 | ++a_pos; | 75 | 108 | ++b_pos; | 76 | 108 | ++c_pos; | 77 | 108 | } | 78 | 87 | } |
_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 | 432 | PaddedPODArray<UInt8>& c) { | 66 | 432 | size_t size = a.size(); | 67 | 432 | const A* __restrict a_pos = a.data(); | 68 | 432 | const B* __restrict b_pos = b.data(); | 69 | 432 | UInt8* __restrict c_pos = c.data(); | 70 | 432 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 296k | while (a_pos < a_end) { | 73 | 295k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 295k | ++a_pos; | 75 | 295k | ++b_pos; | 76 | 295k | ++c_pos; | 77 | 295k | } | 78 | 432 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 461 | PaddedPODArray<UInt8>& c) { | 66 | 461 | size_t size = a.size(); | 67 | 461 | const A* __restrict a_pos = a.data(); | 68 | 461 | const B* __restrict b_pos = b.data(); | 69 | 461 | UInt8* __restrict c_pos = c.data(); | 70 | 461 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 32.5k | while (a_pos < a_end) { | 73 | 32.0k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 32.0k | ++a_pos; | 75 | 32.0k | ++b_pos; | 76 | 32.0k | ++c_pos; | 77 | 32.0k | } | 78 | 461 | } |
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 | 932 | PaddedPODArray<UInt8>& c) { | 66 | 932 | size_t size = a.size(); | 67 | 932 | const A* __restrict a_pos = a.data(); | 68 | 932 | const B* __restrict b_pos = b.data(); | 69 | 932 | UInt8* __restrict c_pos = c.data(); | 70 | 932 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2.61M | while (a_pos < a_end) { | 73 | 2.61M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 2.61M | ++a_pos; | 75 | 2.61M | ++b_pos; | 76 | 2.61M | ++c_pos; | 77 | 2.61M | } | 78 | 932 | } |
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 | 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 | 12 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 396 | PaddedPODArray<UInt8>& c) { | 66 | 396 | size_t size = a.size(); | 67 | 396 | const A* __restrict a_pos = a.data(); | 68 | 396 | const B* __restrict b_pos = b.data(); | 69 | 396 | UInt8* __restrict c_pos = c.data(); | 70 | 396 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2.66k | while (a_pos < a_end) { | 73 | 2.27k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 2.27k | ++a_pos; | 75 | 2.27k | ++b_pos; | 76 | 2.27k | ++c_pos; | 77 | 2.27k | } | 78 | 396 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 607 | PaddedPODArray<UInt8>& c) { | 66 | 607 | size_t size = a.size(); | 67 | 607 | const A* __restrict a_pos = a.data(); | 68 | 607 | const B* __restrict b_pos = b.data(); | 69 | 607 | UInt8* __restrict c_pos = c.data(); | 70 | 607 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 4.03k | while (a_pos < a_end) { | 73 | 3.42k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 3.42k | ++a_pos; | 75 | 3.42k | ++b_pos; | 76 | 3.42k | ++c_pos; | 77 | 3.42k | } | 78 | 607 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 2.94k | PaddedPODArray<UInt8>& c) { | 66 | 2.94k | size_t size = a.size(); | 67 | 2.94k | const A* __restrict a_pos = a.data(); | 68 | 2.94k | const B* __restrict b_pos = b.data(); | 69 | 2.94k | UInt8* __restrict c_pos = c.data(); | 70 | 2.94k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 9.75M | while (a_pos < a_end) { | 73 | 9.74M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9.74M | ++a_pos; | 75 | 9.74M | ++b_pos; | 76 | 9.74M | ++c_pos; | 77 | 9.74M | } | 78 | 2.94k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 124 | PaddedPODArray<UInt8>& c) { | 66 | 124 | size_t size = a.size(); | 67 | 124 | const A* __restrict a_pos = a.data(); | 68 | 124 | const B* __restrict b_pos = b.data(); | 69 | 124 | UInt8* __restrict c_pos = c.data(); | 70 | 124 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.62k | while (a_pos < a_end) { | 73 | 1.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.50k | ++a_pos; | 75 | 1.50k | ++b_pos; | 76 | 1.50k | ++c_pos; | 77 | 1.50k | } | 78 | 124 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_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 | 96 | while (a_pos < a_end) { | 73 | 76 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 76 | ++a_pos; | 75 | 76 | ++b_pos; | 76 | 76 | ++c_pos; | 77 | 76 | } | 78 | 20 | } |
_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 | 43 | PaddedPODArray<UInt8>& c) { | 66 | 43 | size_t size = a.size(); | 67 | 43 | const A* __restrict a_pos = a.data(); | 68 | 43 | const B* __restrict b_pos = b.data(); | 69 | 43 | UInt8* __restrict c_pos = c.data(); | 70 | 43 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 141 | while (a_pos < a_end) { | 73 | 98 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 98 | ++a_pos; | 75 | 98 | ++b_pos; | 76 | 98 | ++c_pos; | 77 | 98 | } | 78 | 43 | } |
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 | 7 | PaddedPODArray<UInt8>& c) { | 66 | 7 | size_t size = a.size(); | 67 | 7 | const A* __restrict a_pos = a.data(); | 68 | 7 | const B* __restrict b_pos = b.data(); | 69 | 7 | UInt8* __restrict c_pos = c.data(); | 70 | 7 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 38 | while (a_pos < a_end) { | 73 | 31 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 31 | ++a_pos; | 75 | 31 | ++b_pos; | 76 | 31 | ++c_pos; | 77 | 31 | } | 78 | 7 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 6 | PaddedPODArray<UInt8>& c) { | 66 | 6 | size_t size = a.size(); | 67 | 6 | const A* __restrict a_pos = a.data(); | 68 | 6 | const B* __restrict b_pos = b.data(); | 69 | 6 | UInt8* __restrict c_pos = c.data(); | 70 | 6 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 70 | while (a_pos < a_end) { | 73 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 64 | ++a_pos; | 75 | 64 | ++b_pos; | 76 | 64 | ++c_pos; | 77 | 64 | } | 78 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 12 | 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 | 3 | } |
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 | 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 | 177 | while (a_pos < a_end) { | 73 | 106 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 106 | ++a_pos; | 75 | 106 | ++b_pos; | 76 | 106 | ++c_pos; | 77 | 106 | } | 78 | 71 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 78 | PaddedPODArray<UInt8>& c) { | 66 | 78 | size_t size = a.size(); | 67 | 78 | const A* __restrict a_pos = a.data(); | 68 | 78 | const B* __restrict b_pos = b.data(); | 69 | 78 | UInt8* __restrict c_pos = c.data(); | 70 | 78 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 156 | while (a_pos < a_end) { | 73 | 78 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 78 | ++a_pos; | 75 | 78 | ++b_pos; | 76 | 78 | ++c_pos; | 77 | 78 | } | 78 | 78 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1.70k | PaddedPODArray<UInt8>& c) { | 66 | 1.70k | size_t size = a.size(); | 67 | 1.70k | const A* __restrict a_pos = a.data(); | 68 | 1.70k | const B* __restrict b_pos = b.data(); | 69 | 1.70k | UInt8* __restrict c_pos = c.data(); | 70 | 1.70k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.80M | while (a_pos < a_end) { | 73 | 1.79M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.79M | ++a_pos; | 75 | 1.79M | ++b_pos; | 76 | 1.79M | ++c_pos; | 77 | 1.79M | } | 78 | 1.70k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 241 | PaddedPODArray<UInt8>& c) { | 66 | 241 | size_t size = a.size(); | 67 | 241 | const A* __restrict a_pos = a.data(); | 68 | 241 | const B* __restrict b_pos = b.data(); | 69 | 241 | UInt8* __restrict c_pos = c.data(); | 70 | 241 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 482 | while (a_pos < a_end) { | 73 | 241 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 241 | ++a_pos; | 75 | 241 | ++b_pos; | 76 | 241 | ++c_pos; | 77 | 241 | } | 78 | 241 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 12 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 828 | PaddedPODArray<UInt8>& c) { | 66 | 828 | size_t size = a.size(); | 67 | 828 | const A* __restrict a_pos = a.data(); | 68 | 828 | const B* __restrict b_pos = b.data(); | 69 | 828 | UInt8* __restrict c_pos = c.data(); | 70 | 828 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 4.68k | while (a_pos < a_end) { | 73 | 3.85k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 3.85k | ++a_pos; | 75 | 3.85k | ++b_pos; | 76 | 3.85k | ++c_pos; | 77 | 3.85k | } | 78 | 828 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 108 | PaddedPODArray<UInt8>& c) { | 66 | 108 | size_t size = a.size(); | 67 | 108 | const A* __restrict a_pos = a.data(); | 68 | 108 | const B* __restrict b_pos = b.data(); | 69 | 108 | UInt8* __restrict c_pos = c.data(); | 70 | 108 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 217 | while (a_pos < a_end) { | 73 | 109 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 109 | ++a_pos; | 75 | 109 | ++b_pos; | 76 | 109 | ++c_pos; | 77 | 109 | } | 78 | 108 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 155 | PaddedPODArray<UInt8>& c) { | 66 | 155 | size_t size = a.size(); | 67 | 155 | const A* __restrict a_pos = a.data(); | 68 | 155 | const B* __restrict b_pos = b.data(); | 69 | 155 | UInt8* __restrict c_pos = c.data(); | 70 | 155 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 811 | while (a_pos < a_end) { | 73 | 656 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 656 | ++a_pos; | 75 | 656 | ++b_pos; | 76 | 656 | ++c_pos; | 77 | 656 | } | 78 | 155 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 231 | PaddedPODArray<UInt8>& c) { | 66 | 231 | size_t size = a.size(); | 67 | 231 | const A* __restrict a_pos = a.data(); | 68 | 231 | const B* __restrict b_pos = b.data(); | 69 | 231 | UInt8* __restrict c_pos = c.data(); | 70 | 231 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.75k | while (a_pos < a_end) { | 73 | 5.51k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5.51k | ++a_pos; | 75 | 5.51k | ++b_pos; | 76 | 5.51k | ++c_pos; | 77 | 5.51k | } | 78 | 231 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_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 | 401 | while (a_pos < a_end) { | 73 | 248 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 248 | ++a_pos; | 75 | 248 | ++b_pos; | 76 | 248 | ++c_pos; | 77 | 248 | } | 78 | 153 | } |
_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 | 133 | PaddedPODArray<UInt8>& c) { | 66 | 133 | size_t size = a.size(); | 67 | 133 | const A* __restrict a_pos = a.data(); | 68 | 133 | const B* __restrict b_pos = b.data(); | 69 | 133 | UInt8* __restrict c_pos = c.data(); | 70 | 133 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 285 | while (a_pos < a_end) { | 73 | 152 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 152 | ++a_pos; | 75 | 152 | ++b_pos; | 76 | 152 | ++c_pos; | 77 | 152 | } | 78 | 133 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_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 | 310 | while (a_pos < a_end) { | 73 | 173 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 173 | ++a_pos; | 75 | 173 | ++b_pos; | 76 | 173 | ++c_pos; | 77 | 173 | } | 78 | 137 | } |
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 | 435 | PaddedPODArray<UInt8>& c) { | 66 | 435 | size_t size = a.size(); | 67 | 435 | const A* __restrict a_pos = a.data(); | 68 | 435 | const B* __restrict b_pos = b.data(); | 69 | 435 | UInt8* __restrict c_pos = c.data(); | 70 | 435 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6.87k | while (a_pos < a_end) { | 73 | 6.43k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 6.43k | ++a_pos; | 75 | 6.43k | ++b_pos; | 76 | 6.43k | ++c_pos; | 77 | 6.43k | } | 78 | 435 | } |
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 | 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 | 12 | 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 | 3 | } |
_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 | 54 | PaddedPODArray<UInt8>& c) { | 66 | 54 | size_t size = a.size(); | 67 | 54 | const A* __restrict a_pos = a.data(); | 68 | 54 | const B* __restrict b_pos = b.data(); | 69 | 54 | UInt8* __restrict c_pos = c.data(); | 70 | 54 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.01k | while (a_pos < a_end) { | 73 | 960 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 960 | ++a_pos; | 75 | 960 | ++b_pos; | 76 | 960 | ++c_pos; | 77 | 960 | } | 78 | 54 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 77 | PaddedPODArray<UInt8>& c) { | 66 | 77 | size_t size = a.size(); | 67 | 77 | const A* __restrict a_pos = a.data(); | 68 | 77 | const B* __restrict b_pos = b.data(); | 69 | 77 | UInt8* __restrict c_pos = c.data(); | 70 | 77 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 333 | while (a_pos < a_end) { | 73 | 256 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 256 | ++a_pos; | 75 | 256 | ++b_pos; | 76 | 256 | ++c_pos; | 77 | 256 | } | 78 | 77 | } |
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 | 15.2k | PaddedPODArray<UInt8>& c) { |
82 | 15.2k | size_t size = a.size(); |
83 | 15.2k | const A* __restrict a_pos = a.data(); |
84 | 15.2k | UInt8* __restrict c_pos = c.data(); |
85 | 15.2k | const A* __restrict a_end = a_pos + size; |
86 | | |
87 | 21.7M | while (a_pos < a_end) { |
88 | 21.7M | *c_pos = Op::apply(*a_pos, b); |
89 | 21.7M | ++a_pos; |
90 | 21.7M | ++c_pos; |
91 | 21.7M | } |
92 | 15.2k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 24 | PaddedPODArray<UInt8>& c) { | 82 | 24 | size_t size = a.size(); | 83 | 24 | const A* __restrict a_pos = a.data(); | 84 | 24 | UInt8* __restrict c_pos = c.data(); | 85 | 24 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 165 | while (a_pos < a_end) { | 88 | 141 | *c_pos = Op::apply(*a_pos, b); | 89 | 141 | ++a_pos; | 90 | 141 | ++c_pos; | 91 | 141 | } | 92 | 24 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 485 | PaddedPODArray<UInt8>& c) { | 82 | 485 | size_t size = a.size(); | 83 | 485 | const A* __restrict a_pos = a.data(); | 84 | 485 | UInt8* __restrict c_pos = c.data(); | 85 | 485 | 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 | 485 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 200 | PaddedPODArray<UInt8>& c) { | 82 | 200 | size_t size = a.size(); | 83 | 200 | const A* __restrict a_pos = a.data(); | 84 | 200 | UInt8* __restrict c_pos = c.data(); | 85 | 200 | 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 | 200 | } |
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 | 2.57k | PaddedPODArray<UInt8>& c) { | 82 | 2.57k | size_t size = a.size(); | 83 | 2.57k | const A* __restrict a_pos = a.data(); | 84 | 2.57k | UInt8* __restrict c_pos = c.data(); | 85 | 2.57k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 8.72M | while (a_pos < a_end) { | 88 | 8.72M | *c_pos = Op::apply(*a_pos, b); | 89 | 8.72M | ++a_pos; | 90 | 8.72M | ++c_pos; | 91 | 8.72M | } | 92 | 2.57k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 167 | PaddedPODArray<UInt8>& c) { | 82 | 167 | size_t size = a.size(); | 83 | 167 | const A* __restrict a_pos = a.data(); | 84 | 167 | UInt8* __restrict c_pos = c.data(); | 85 | 167 | 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 | 167 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.44k | PaddedPODArray<UInt8>& c) { | 82 | 1.44k | size_t size = a.size(); | 83 | 1.44k | const A* __restrict a_pos = a.data(); | 84 | 1.44k | UInt8* __restrict c_pos = c.data(); | 85 | 1.44k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 217k | while (a_pos < a_end) { | 88 | 215k | *c_pos = Op::apply(*a_pos, b); | 89 | 215k | ++a_pos; | 90 | 215k | ++c_pos; | 91 | 215k | } | 92 | 1.44k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 783 | PaddedPODArray<UInt8>& c) { | 82 | 783 | size_t size = a.size(); | 83 | 783 | const A* __restrict a_pos = a.data(); | 84 | 783 | UInt8* __restrict c_pos = c.data(); | 85 | 783 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 347k | while (a_pos < a_end) { | 88 | 346k | *c_pos = Op::apply(*a_pos, b); | 89 | 346k | ++a_pos; | 90 | 346k | ++c_pos; | 91 | 346k | } | 92 | 783 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 24 | PaddedPODArray<UInt8>& c) { | 82 | 24 | size_t size = a.size(); | 83 | 24 | const A* __restrict a_pos = a.data(); | 84 | 24 | UInt8* __restrict c_pos = c.data(); | 85 | 24 | 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 | 24 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 13 | PaddedPODArray<UInt8>& c) { | 82 | 13 | size_t size = a.size(); | 83 | 13 | const A* __restrict a_pos = a.data(); | 84 | 13 | UInt8* __restrict c_pos = c.data(); | 85 | 13 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 127 | 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 | 13 | } |
_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 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 158 | PaddedPODArray<UInt8>& c) { | 82 | 158 | size_t size = a.size(); | 83 | 158 | const A* __restrict a_pos = a.data(); | 84 | 158 | UInt8* __restrict c_pos = c.data(); | 85 | 158 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 700k | while (a_pos < a_end) { | 88 | 700k | *c_pos = Op::apply(*a_pos, b); | 89 | 700k | ++a_pos; | 90 | 700k | ++c_pos; | 91 | 700k | } | 92 | 158 | } |
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 | 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 | 5 | while (a_pos < a_end) { | 88 | 3 | *c_pos = Op::apply(*a_pos, b); | 89 | 3 | ++a_pos; | 90 | 3 | ++c_pos; | 91 | 3 | } | 92 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 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 | 78 | while (a_pos < a_end) { | 88 | 50 | *c_pos = Op::apply(*a_pos, b); | 89 | 50 | ++a_pos; | 90 | 50 | ++c_pos; | 91 | 50 | } | 92 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 63 | PaddedPODArray<UInt8>& c) { | 82 | 63 | size_t size = a.size(); | 83 | 63 | const A* __restrict a_pos = a.data(); | 84 | 63 | UInt8* __restrict c_pos = c.data(); | 85 | 63 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 425 | while (a_pos < a_end) { | 88 | 362 | *c_pos = Op::apply(*a_pos, b); | 89 | 362 | ++a_pos; | 90 | 362 | ++c_pos; | 91 | 362 | } | 92 | 63 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 17 | PaddedPODArray<UInt8>& c) { | 82 | 17 | size_t size = a.size(); | 83 | 17 | const A* __restrict a_pos = a.data(); | 84 | 17 | UInt8* __restrict c_pos = c.data(); | 85 | 17 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.04k | while (a_pos < a_end) { | 88 | 1.02k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.02k | ++a_pos; | 90 | 1.02k | ++c_pos; | 91 | 1.02k | } | 92 | 17 | } |
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 | 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 | 12 | while (a_pos < a_end) { | 88 | 10 | *c_pos = Op::apply(*a_pos, b); | 89 | 10 | ++a_pos; | 90 | 10 | ++c_pos; | 91 | 10 | } | 92 | 2 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 334 | PaddedPODArray<UInt8>& c) { | 82 | 334 | size_t size = a.size(); | 83 | 334 | const A* __restrict a_pos = a.data(); | 84 | 334 | UInt8* __restrict c_pos = c.data(); | 85 | 334 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.34M | while (a_pos < a_end) { | 88 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.34M | ++a_pos; | 90 | 1.34M | ++c_pos; | 91 | 1.34M | } | 92 | 334 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_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 | 6 | while (a_pos < a_end) { | 88 | 4 | *c_pos = Op::apply(*a_pos, b); | 89 | 4 | ++a_pos; | 90 | 4 | ++c_pos; | 91 | 4 | } | 92 | 2 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 61 | PaddedPODArray<UInt8>& c) { | 82 | 61 | size_t size = a.size(); | 83 | 61 | const A* __restrict a_pos = a.data(); | 84 | 61 | UInt8* __restrict c_pos = c.data(); | 85 | 61 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 279 | while (a_pos < a_end) { | 88 | 218 | *c_pos = Op::apply(*a_pos, b); | 89 | 218 | ++a_pos; | 90 | 218 | ++c_pos; | 91 | 218 | } | 92 | 61 | } |
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 | 376 | PaddedPODArray<UInt8>& c) { | 82 | 376 | size_t size = a.size(); | 83 | 376 | const A* __restrict a_pos = a.data(); | 84 | 376 | UInt8* __restrict c_pos = c.data(); | 85 | 376 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.00k | while (a_pos < a_end) { | 88 | 3.63k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.63k | ++a_pos; | 90 | 3.63k | ++c_pos; | 91 | 3.63k | } | 92 | 376 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 30 | PaddedPODArray<UInt8>& c) { | 82 | 30 | size_t size = a.size(); | 83 | 30 | const A* __restrict a_pos = a.data(); | 84 | 30 | UInt8* __restrict c_pos = c.data(); | 85 | 30 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 122 | while (a_pos < a_end) { | 88 | 92 | *c_pos = Op::apply(*a_pos, b); | 89 | 92 | ++a_pos; | 90 | 92 | ++c_pos; | 91 | 92 | } | 92 | 30 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 393 | PaddedPODArray<UInt8>& c) { | 82 | 393 | size_t size = a.size(); | 83 | 393 | const A* __restrict a_pos = a.data(); | 84 | 393 | UInt8* __restrict c_pos = c.data(); | 85 | 393 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.59k | while (a_pos < a_end) { | 88 | 3.19k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.19k | ++a_pos; | 90 | 3.19k | ++c_pos; | 91 | 3.19k | } | 92 | 393 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 14 | PaddedPODArray<UInt8>& c) { | 82 | 14 | size_t size = a.size(); | 83 | 14 | const A* __restrict a_pos = a.data(); | 84 | 14 | UInt8* __restrict c_pos = c.data(); | 85 | 14 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 36 | 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 | 14 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.70k | PaddedPODArray<UInt8>& c) { | 82 | 1.70k | size_t size = a.size(); | 83 | 1.70k | const A* __restrict a_pos = a.data(); | 84 | 1.70k | UInt8* __restrict c_pos = c.data(); | 85 | 1.70k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 14.4k | while (a_pos < a_end) { | 88 | 12.7k | *c_pos = Op::apply(*a_pos, b); | 89 | 12.7k | ++a_pos; | 90 | 12.7k | ++c_pos; | 91 | 12.7k | } | 92 | 1.70k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 556 | PaddedPODArray<UInt8>& c) { | 82 | 556 | size_t size = a.size(); | 83 | 556 | const A* __restrict a_pos = a.data(); | 84 | 556 | UInt8* __restrict c_pos = c.data(); | 85 | 556 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.35k | while (a_pos < a_end) { | 88 | 2.79k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.79k | ++a_pos; | 90 | 2.79k | ++c_pos; | 91 | 2.79k | } | 92 | 556 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.02k | PaddedPODArray<UInt8>& c) { | 82 | 1.02k | size_t size = a.size(); | 83 | 1.02k | const A* __restrict a_pos = a.data(); | 84 | 1.02k | UInt8* __restrict c_pos = c.data(); | 85 | 1.02k | 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 | 1.02k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 499 | PaddedPODArray<UInt8>& c) { | 82 | 499 | size_t size = a.size(); | 83 | 499 | const A* __restrict a_pos = a.data(); | 84 | 499 | UInt8* __restrict c_pos = c.data(); | 85 | 499 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.48k | while (a_pos < a_end) { | 88 | 988 | *c_pos = Op::apply(*a_pos, b); | 89 | 988 | ++a_pos; | 90 | 988 | ++c_pos; | 91 | 988 | } | 92 | 499 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 203 | PaddedPODArray<UInt8>& c) { | 82 | 203 | size_t size = a.size(); | 83 | 203 | const A* __restrict a_pos = a.data(); | 84 | 203 | UInt8* __restrict c_pos = c.data(); | 85 | 203 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.74k | while (a_pos < a_end) { | 88 | 1.54k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.54k | ++a_pos; | 90 | 1.54k | ++c_pos; | 91 | 1.54k | } | 92 | 203 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 68 | PaddedPODArray<UInt8>& c) { | 82 | 68 | size_t size = a.size(); | 83 | 68 | const A* __restrict a_pos = a.data(); | 84 | 68 | UInt8* __restrict c_pos = c.data(); | 85 | 68 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 86.1k | while (a_pos < a_end) { | 88 | 86.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 86.0k | ++a_pos; | 90 | 86.0k | ++c_pos; | 91 | 86.0k | } | 92 | 68 | } |
_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 | 200 | PaddedPODArray<UInt8>& c) { | 82 | 200 | size_t size = a.size(); | 83 | 200 | const A* __restrict a_pos = a.data(); | 84 | 200 | UInt8* __restrict c_pos = c.data(); | 85 | 200 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.61k | while (a_pos < a_end) { | 88 | 2.41k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.41k | ++a_pos; | 90 | 2.41k | ++c_pos; | 91 | 2.41k | } | 92 | 200 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 501 | PaddedPODArray<UInt8>& c) { | 82 | 501 | size_t size = a.size(); | 83 | 501 | const A* __restrict a_pos = a.data(); | 84 | 501 | UInt8* __restrict c_pos = c.data(); | 85 | 501 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 7.43k | while (a_pos < a_end) { | 88 | 6.93k | *c_pos = Op::apply(*a_pos, b); | 89 | 6.93k | ++a_pos; | 90 | 6.93k | ++c_pos; | 91 | 6.93k | } | 92 | 501 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 175 | PaddedPODArray<UInt8>& c) { | 82 | 175 | size_t size = a.size(); | 83 | 175 | const A* __restrict a_pos = a.data(); | 84 | 175 | UInt8* __restrict c_pos = c.data(); | 85 | 175 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 282k | while (a_pos < a_end) { | 88 | 282k | *c_pos = Op::apply(*a_pos, b); | 89 | 282k | ++a_pos; | 90 | 282k | ++c_pos; | 91 | 282k | } | 92 | 175 | } |
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 | 22 | PaddedPODArray<UInt8>& c) { | 82 | 22 | size_t size = a.size(); | 83 | 22 | const A* __restrict a_pos = a.data(); | 84 | 22 | UInt8* __restrict c_pos = c.data(); | 85 | 22 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 110k | while (a_pos < a_end) { | 88 | 110k | *c_pos = Op::apply(*a_pos, b); | 89 | 110k | ++a_pos; | 90 | 110k | ++c_pos; | 91 | 110k | } | 92 | 22 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 20 | PaddedPODArray<UInt8>& c) { | 82 | 20 | size_t size = a.size(); | 83 | 20 | const A* __restrict a_pos = a.data(); | 84 | 20 | UInt8* __restrict c_pos = c.data(); | 85 | 20 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 81.1k | while (a_pos < a_end) { | 88 | 81.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 81.1k | ++a_pos; | 90 | 81.1k | ++c_pos; | 91 | 81.1k | } | 92 | 20 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 472 | PaddedPODArray<UInt8>& c) { | 82 | 472 | size_t size = a.size(); | 83 | 472 | const A* __restrict a_pos = a.data(); | 84 | 472 | UInt8* __restrict c_pos = c.data(); | 85 | 472 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.44M | while (a_pos < a_end) { | 88 | 1.43M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.43M | ++a_pos; | 90 | 1.43M | ++c_pos; | 91 | 1.43M | } | 92 | 472 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 148 | PaddedPODArray<UInt8>& c) { | 82 | 148 | size_t size = a.size(); | 83 | 148 | const A* __restrict a_pos = a.data(); | 84 | 148 | UInt8* __restrict c_pos = c.data(); | 85 | 148 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 741k | while (a_pos < a_end) { | 88 | 741k | *c_pos = Op::apply(*a_pos, b); | 89 | 741k | ++a_pos; | 90 | 741k | ++c_pos; | 91 | 741k | } | 92 | 148 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 147 | PaddedPODArray<UInt8>& c) { | 82 | 147 | size_t size = a.size(); | 83 | 147 | const A* __restrict a_pos = a.data(); | 84 | 147 | UInt8* __restrict c_pos = c.data(); | 85 | 147 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 559 | while (a_pos < a_end) { | 88 | 412 | *c_pos = Op::apply(*a_pos, b); | 89 | 412 | ++a_pos; | 90 | 412 | ++c_pos; | 91 | 412 | } | 92 | 147 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 96 | while (a_pos < a_end) { | 88 | 52 | *c_pos = Op::apply(*a_pos, b); | 89 | 52 | ++a_pos; | 90 | 52 | ++c_pos; | 91 | 52 | } | 92 | 44 | } |
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 | 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 | 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 | 40 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 34 | PaddedPODArray<UInt8>& c) { | 82 | 34 | size_t size = a.size(); | 83 | 34 | const A* __restrict a_pos = a.data(); | 84 | 34 | UInt8* __restrict c_pos = c.data(); | 85 | 34 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 63.4k | while (a_pos < a_end) { | 88 | 63.4k | *c_pos = Op::apply(*a_pos, b); | 89 | 63.4k | ++a_pos; | 90 | 63.4k | ++c_pos; | 91 | 63.4k | } | 92 | 34 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 66 | PaddedPODArray<UInt8>& c) { | 82 | 66 | size_t size = a.size(); | 83 | 66 | const A* __restrict a_pos = a.data(); | 84 | 66 | UInt8* __restrict c_pos = c.data(); | 85 | 66 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 170k | while (a_pos < a_end) { | 88 | 170k | *c_pos = Op::apply(*a_pos, b); | 89 | 170k | ++a_pos; | 90 | 170k | ++c_pos; | 91 | 170k | } | 92 | 66 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 72 | PaddedPODArray<UInt8>& c) { | 82 | 72 | size_t size = a.size(); | 83 | 72 | const A* __restrict a_pos = a.data(); | 84 | 72 | UInt8* __restrict c_pos = c.data(); | 85 | 72 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 140k | while (a_pos < a_end) { | 88 | 140k | *c_pos = Op::apply(*a_pos, b); | 89 | 140k | ++a_pos; | 90 | 140k | ++c_pos; | 91 | 140k | } | 92 | 72 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 621 | PaddedPODArray<UInt8>& c) { | 82 | 621 | size_t size = a.size(); | 83 | 621 | const A* __restrict a_pos = a.data(); | 84 | 621 | UInt8* __restrict c_pos = c.data(); | 85 | 621 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.76M | while (a_pos < a_end) { | 88 | 2.76M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.76M | ++a_pos; | 90 | 2.76M | ++c_pos; | 91 | 2.76M | } | 92 | 621 | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 624 | PaddedPODArray<UInt8>& c) { | 82 | 624 | size_t size = a.size(); | 83 | 624 | const A* __restrict a_pos = a.data(); | 84 | 624 | UInt8* __restrict c_pos = c.data(); | 85 | 624 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.75M | while (a_pos < a_end) { | 88 | 2.75M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.75M | ++a_pos; | 90 | 2.75M | ++c_pos; | 91 | 2.75M | } | 92 | 624 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 161 | PaddedPODArray<UInt8>& c) { | 82 | 161 | size_t size = a.size(); | 83 | 161 | const A* __restrict a_pos = a.data(); | 84 | 161 | UInt8* __restrict c_pos = c.data(); | 85 | 161 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 5.41k | while (a_pos < a_end) { | 88 | 5.25k | *c_pos = Op::apply(*a_pos, b); | 89 | 5.25k | ++a_pos; | 90 | 5.25k | ++c_pos; | 91 | 5.25k | } | 92 | 161 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 221 | PaddedPODArray<UInt8>& c) { | 82 | 221 | size_t size = a.size(); | 83 | 221 | const A* __restrict a_pos = a.data(); | 84 | 221 | UInt8* __restrict c_pos = c.data(); | 85 | 221 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.36k | while (a_pos < a_end) { | 88 | 2.14k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.14k | ++a_pos; | 90 | 2.14k | ++c_pos; | 91 | 2.14k | } | 92 | 221 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_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 | 180k | while (a_pos < a_end) { | 88 | 180k | *c_pos = Op::apply(*a_pos, b); | 89 | 180k | ++a_pos; | 90 | 180k | ++c_pos; | 91 | 180k | } | 92 | 39 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 33 | PaddedPODArray<UInt8>& c) { | 82 | 33 | size_t size = a.size(); | 83 | 33 | const A* __restrict a_pos = a.data(); | 84 | 33 | UInt8* __restrict c_pos = c.data(); | 85 | 33 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 150k | while (a_pos < a_end) { | 88 | 150k | *c_pos = Op::apply(*a_pos, b); | 89 | 150k | ++a_pos; | 90 | 150k | ++c_pos; | 91 | 150k | } | 92 | 33 | } |
_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 | 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 | 10 | 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 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 131 | PaddedPODArray<UInt8>& c) { | 82 | 131 | size_t size = a.size(); | 83 | 131 | const A* __restrict a_pos = a.data(); | 84 | 131 | UInt8* __restrict c_pos = c.data(); | 85 | 131 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 355k | while (a_pos < a_end) { | 88 | 355k | *c_pos = Op::apply(*a_pos, b); | 89 | 355k | ++a_pos; | 90 | 355k | ++c_pos; | 91 | 355k | } | 92 | 131 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 98 | PaddedPODArray<UInt8>& c) { | 82 | 98 | size_t size = a.size(); | 83 | 98 | const A* __restrict a_pos = a.data(); | 84 | 98 | UInt8* __restrict c_pos = c.data(); | 85 | 98 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 275k | while (a_pos < a_end) { | 88 | 275k | *c_pos = Op::apply(*a_pos, b); | 89 | 275k | ++a_pos; | 90 | 275k | ++c_pos; | 91 | 275k | } | 92 | 98 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
93 | | |
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: _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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_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: _ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE 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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE 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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE 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_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE 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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE 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_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE 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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE 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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 133 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 133 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
110 | 437k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
111 | 437k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
112 | 437k | } |
113 | 133 | } _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 | 219k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 219k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 219k | } | 113 | 45 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 51 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 51 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 217k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 217k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 217k | } | 113 | 51 | } |
|
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 | 433 | PaddedPODArray<UInt8>& c) { |
127 | 433 | size_t size = a_offsets.size(); |
128 | 433 | ColumnString::Offset prev_a_offset = 0; |
129 | 433 | ColumnString::Offset prev_b_offset = 0; |
130 | 433 | const auto* a_pos = a_data.data(); |
131 | 433 | const auto* b_pos = b_data.data(); |
132 | | |
133 | 1.13k | for (size_t i = 0; i < size; ++i) { |
134 | 703 | c[i] = Op::apply(memcmp_small_allow_overflow15( |
135 | 703 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
136 | 703 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
137 | 703 | 0); |
138 | | |
139 | 703 | prev_a_offset = a_offsets[i]; |
140 | 703 | prev_b_offset = b_offsets[i]; |
141 | 703 | } |
142 | 433 | } _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 | 43 | PaddedPODArray<UInt8>& c) { | 127 | 43 | size_t size = a_offsets.size(); | 128 | 43 | ColumnString::Offset prev_a_offset = 0; | 129 | 43 | ColumnString::Offset prev_b_offset = 0; | 130 | 43 | const auto* a_pos = a_data.data(); | 131 | 43 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 307 | for (size_t i = 0; i < size; ++i) { | 134 | 264 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 264 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 264 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 264 | 0); | 138 | | | 139 | 264 | prev_a_offset = a_offsets[i]; | 140 | 264 | prev_b_offset = b_offsets[i]; | 141 | 264 | } | 142 | 43 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 388 | PaddedPODArray<UInt8>& c) { | 127 | 388 | size_t size = a_offsets.size(); | 128 | 388 | ColumnString::Offset prev_a_offset = 0; | 129 | 388 | ColumnString::Offset prev_b_offset = 0; | 130 | 388 | const auto* a_pos = a_data.data(); | 131 | 388 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 780 | for (size_t i = 0; i < size; ++i) { | 134 | 392 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 392 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 392 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 392 | 0); | 138 | | | 139 | 392 | prev_a_offset = a_offsets[i]; | 140 | 392 | prev_b_offset = b_offsets[i]; | 141 | 392 | } | 142 | 388 | } |
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 | 695 | PaddedPODArray<UInt8>& c) { |
149 | 695 | size_t size = a_offsets.size(); |
150 | 695 | ColumnString::Offset prev_a_offset = 0; |
151 | 695 | const auto* a_pos = a_data.data(); |
152 | 695 | const auto* b_pos = b_data.data(); |
153 | | |
154 | 1.22M | for (size_t i = 0; i < size; ++i) { |
155 | 1.22M | c[i] = Op::apply( |
156 | 1.22M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
157 | 1.22M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
158 | 1.22M | 0); |
159 | | |
160 | 1.22M | prev_a_offset = a_offsets[i]; |
161 | 1.22M | } |
162 | 695 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 187 | PaddedPODArray<UInt8>& c) { | 149 | 187 | size_t size = a_offsets.size(); | 150 | 187 | ColumnString::Offset prev_a_offset = 0; | 151 | 187 | const auto* a_pos = a_data.data(); | 152 | 187 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 325k | for (size_t i = 0; i < size; ++i) { | 155 | 325k | c[i] = Op::apply( | 156 | 325k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 325k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 325k | 0); | 159 | | | 160 | 325k | prev_a_offset = a_offsets[i]; | 161 | 325k | } | 162 | 187 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 107 | PaddedPODArray<UInt8>& c) { | 149 | 107 | size_t size = a_offsets.size(); | 150 | 107 | ColumnString::Offset prev_a_offset = 0; | 151 | 107 | const auto* a_pos = a_data.data(); | 152 | 107 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 72.7k | for (size_t i = 0; i < size; ++i) { | 155 | 72.5k | c[i] = Op::apply( | 156 | 72.5k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 72.5k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 72.5k | 0); | 159 | | | 160 | 72.5k | prev_a_offset = a_offsets[i]; | 161 | 72.5k | } | 162 | 107 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 209 | PaddedPODArray<UInt8>& c) { | 149 | 209 | size_t size = a_offsets.size(); | 150 | 209 | ColumnString::Offset prev_a_offset = 0; | 151 | 209 | const auto* a_pos = a_data.data(); | 152 | 209 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 390k | for (size_t i = 0; i < size; ++i) { | 155 | 390k | c[i] = Op::apply( | 156 | 390k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 390k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 390k | 0); | 159 | | | 160 | 390k | prev_a_offset = a_offsets[i]; | 161 | 390k | } | 162 | 209 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 192 | PaddedPODArray<UInt8>& c) { | 149 | 192 | size_t size = a_offsets.size(); | 150 | 192 | ColumnString::Offset prev_a_offset = 0; | 151 | 192 | const auto* a_pos = a_data.data(); | 152 | 192 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 435k | for (size_t i = 0; i < size; ++i) { | 155 | 435k | c[i] = Op::apply( | 156 | 435k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 435k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 435k | 0); | 159 | | | 160 | 435k | prev_a_offset = a_offsets[i]; | 161 | 435k | } | 162 | 192 | } |
|
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 | 0 | PaddedPODArray<UInt8>& c) { |
169 | 0 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
170 | 0 | a_data, a_size, c); |
171 | 0 | } 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_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ 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 | 431 | PaddedPODArray<UInt8>& c) { |
181 | 431 | size_t size = a_offsets.size(); |
182 | 431 | ColumnString::Offset prev_a_offset = 0; |
183 | 431 | ColumnString::Offset prev_b_offset = 0; |
184 | 431 | const auto* a_pos = a_data.data(); |
185 | 431 | const auto* b_pos = b_data.data(); |
186 | | |
187 | 1.33k | for (size_t i = 0; i < size; ++i) { |
188 | 902 | auto a_size = a_offsets[i] - prev_a_offset; |
189 | 902 | auto b_size = b_offsets[i] - prev_b_offset; |
190 | | |
191 | 902 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
192 | 902 | b_pos + prev_b_offset, b_size); |
193 | | |
194 | 902 | prev_a_offset = a_offsets[i]; |
195 | 902 | prev_b_offset = b_offsets[i]; |
196 | 902 | } |
197 | 431 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 430 | PaddedPODArray<UInt8>& c) { | 181 | 430 | size_t size = a_offsets.size(); | 182 | 430 | ColumnString::Offset prev_a_offset = 0; | 183 | 430 | ColumnString::Offset prev_b_offset = 0; | 184 | 430 | const auto* a_pos = a_data.data(); | 185 | 430 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 1.32k | for (size_t i = 0; i < size; ++i) { | 188 | 898 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 898 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 898 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 898 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 898 | prev_a_offset = a_offsets[i]; | 195 | 898 | prev_b_offset = b_offsets[i]; | 196 | 898 | } | 197 | 430 | } |
_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 | 10.5k | PaddedPODArray<UInt8>& c) { |
204 | 10.5k | size_t size = a_offsets.size(); |
205 | 10.5k | if (b_size == 0) { |
206 | 25 | auto* __restrict data = c.data(); |
207 | 25 | auto* __restrict offsets = a_offsets.data(); |
208 | | |
209 | 25 | ColumnString::Offset prev_a_offset = 0; |
210 | 1.10k | for (size_t i = 0; i < size; ++i) { |
211 | 1.07k | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
212 | 1.07k | prev_a_offset = offsets[i]; |
213 | 1.07k | } |
214 | 10.5k | } else { |
215 | 10.5k | ColumnString::Offset prev_a_offset = 0; |
216 | 10.5k | const auto* a_pos = a_data.data(); |
217 | 10.5k | const auto* b_pos = b_data.data(); |
218 | 1.57M | for (size_t i = 0; i < size; ++i) { |
219 | 1.56M | auto a_size = a_offsets[i] - prev_a_offset; |
220 | 1.56M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
221 | 1.56M | b_pos, b_size); |
222 | 1.56M | prev_a_offset = a_offsets[i]; |
223 | 1.56M | } |
224 | 10.5k | } |
225 | 10.5k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 10.4k | PaddedPODArray<UInt8>& c) { | 204 | 10.4k | size_t size = a_offsets.size(); | 205 | 10.4k | 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 | 10.4k | } else { | 215 | 10.4k | ColumnString::Offset prev_a_offset = 0; | 216 | 10.4k | const auto* a_pos = a_data.data(); | 217 | 10.4k | const auto* b_pos = b_data.data(); | 218 | 1.53M | for (size_t i = 0; i < size; ++i) { | 219 | 1.52M | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 1.52M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 1.52M | b_pos, b_size); | 222 | 1.52M | prev_a_offset = a_offsets[i]; | 223 | 1.52M | } | 224 | 10.4k | } | 225 | 10.4k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 136 | PaddedPODArray<UInt8>& c) { | 204 | 136 | size_t size = a_offsets.size(); | 205 | 136 | if (b_size == 0) { | 206 | 25 | auto* __restrict data = c.data(); | 207 | 25 | auto* __restrict offsets = a_offsets.data(); | 208 | | | 209 | 25 | ColumnString::Offset prev_a_offset = 0; | 210 | 1.10k | for (size_t i = 0; i < size; ++i) { | 211 | 1.07k | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 212 | 1.07k | prev_a_offset = offsets[i]; | 213 | 1.07k | } | 214 | 111 | } else { | 215 | 111 | ColumnString::Offset prev_a_offset = 0; | 216 | 111 | const auto* a_pos = a_data.data(); | 217 | 111 | const auto* b_pos = b_data.data(); | 218 | 43.1k | for (size_t i = 0; i < size; ++i) { | 219 | 43.0k | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 43.0k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 43.0k | b_pos, b_size); | 222 | 43.0k | prev_a_offset = a_offsets[i]; | 223 | 43.0k | } | 224 | 111 | } | 225 | 136 | } |
|
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 | 283k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 265 | 240k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 265 | 1.15k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 265 | 4.77k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 265 | 17.2k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 265 | 2.68k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 265 | 16.9k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
266 | | |
267 | 283k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 267 | 240k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 267 | 1.15k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 267 | 4.77k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 267 | 17.2k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 267 | 2.68k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 267 | 16.9k | FunctionComparison() = default; |
|
268 | | |
269 | 665k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 269 | 645k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 269 | 658 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 269 | 3.34k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 269 | 7.64k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 269 | 1.73k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 269 | 6.25k | 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 | 28.1k | const ColumnPtr& col_right_ptr) const { |
275 | 28.1k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
276 | 28.1k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
277 | | |
278 | 28.1k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
279 | 28.1k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
280 | | |
281 | 28.1k | DCHECK(!(left_is_const && right_is_const)); |
282 | | |
283 | 28.1k | if (!left_is_const && !right_is_const) { |
284 | 12.9k | auto col_res = ColumnUInt8::create(); |
285 | | |
286 | 12.9k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
287 | 12.9k | vec_res.resize(col_left->get_data().size()); |
288 | 12.9k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
289 | 12.9k | typename PrimitiveTypeTraits<PT>::CppType, |
290 | 12.9k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
291 | 12.9k | vec_res); |
292 | | |
293 | 12.9k | block.replace_by_position(result, std::move(col_res)); |
294 | 15.2k | } else if (!left_is_const && right_is_const) { |
295 | 15.2k | auto col_res = ColumnUInt8::create(); |
296 | | |
297 | 15.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
298 | 15.2k | vec_res.resize(col_left->size()); |
299 | 15.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
300 | 15.2k | typename PrimitiveTypeTraits<PT>::CppType, |
301 | 15.2k | Op<PT>>::vector_constant(col_left->get_data(), |
302 | 15.2k | col_right->get_element(0), vec_res); |
303 | | |
304 | 15.2k | block.replace_by_position(result, std::move(col_res)); |
305 | 15.2k | } 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 | 28.1k | return Status::OK(); |
318 | 28.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 97 | const ColumnPtr& col_right_ptr) const { | 275 | 97 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 97 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 97 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 97 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 97 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 97 | if (!left_is_const && !right_is_const) { | 284 | 73 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 73 | vec_res.resize(col_left->get_data().size()); | 288 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 73 | vec_res); | 292 | | | 293 | 73 | block.replace_by_position(result, std::move(col_res)); | 294 | 73 | } else if (!left_is_const && right_is_const) { | 295 | 24 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 24 | vec_res.resize(col_left->size()); | 299 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 24 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 24 | col_right->get_element(0), vec_res); | 303 | | | 304 | 24 | block.replace_by_position(result, std::move(col_res)); | 305 | 24 | } 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 | 97 | return Status::OK(); | 318 | 97 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 681 | const ColumnPtr& col_right_ptr) const { | 275 | 681 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 681 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 681 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 681 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 681 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 682 | if (!left_is_const && !right_is_const) { | 284 | 198 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 198 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 198 | vec_res.resize(col_left->get_data().size()); | 288 | 198 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 198 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 198 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 198 | vec_res); | 292 | | | 293 | 198 | block.replace_by_position(result, std::move(col_res)); | 294 | 485 | } else if (!left_is_const && right_is_const) { | 295 | 485 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 485 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 485 | vec_res.resize(col_left->size()); | 299 | 485 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 485 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 485 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 485 | col_right->get_element(0), vec_res); | 303 | | | 304 | 485 | 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 | 681 | return Status::OK(); | 318 | 681 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 450 | const ColumnPtr& col_right_ptr) const { | 275 | 450 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 450 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 450 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 450 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 450 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 451 | if (!left_is_const && !right_is_const) { | 284 | 251 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 251 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 251 | vec_res.resize(col_left->get_data().size()); | 288 | 251 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 251 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 251 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 251 | vec_res); | 292 | | | 293 | 251 | block.replace_by_position(result, std::move(col_res)); | 294 | 251 | } else if (!left_is_const && right_is_const) { | 295 | 200 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 200 | vec_res.resize(col_left->size()); | 299 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 200 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 200 | col_right->get_element(0), vec_res); | 303 | | | 304 | 200 | 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 | 450 | return Status::OK(); | 318 | 450 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3 | const ColumnPtr& col_right_ptr) const { | 275 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3 | 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 | 3 | } 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 | 3 | return Status::OK(); | 318 | 3 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3.44k | const ColumnPtr& col_right_ptr) const { | 275 | 3.44k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.44k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.44k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.44k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.44k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.44k | if (!left_is_const && !right_is_const) { | 284 | 874 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 874 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 874 | vec_res.resize(col_left->get_data().size()); | 288 | 874 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 874 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 874 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 874 | vec_res); | 292 | | | 293 | 874 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.57k | } else if (!left_is_const && right_is_const) { | 295 | 2.57k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.57k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.57k | vec_res.resize(col_left->size()); | 299 | 2.57k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.57k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.57k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.57k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.57k | block.replace_by_position(result, std::move(col_res)); | 305 | 2.57k | } 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.44k | return Status::OK(); | 318 | 3.44k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 281 | const ColumnPtr& col_right_ptr) const { | 275 | 281 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 281 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 281 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 281 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 281 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 281 | if (!left_is_const && !right_is_const) { | 284 | 114 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 114 | vec_res.resize(col_left->get_data().size()); | 288 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 114 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 114 | vec_res); | 292 | | | 293 | 114 | block.replace_by_position(result, std::move(col_res)); | 294 | 167 | } else if (!left_is_const && right_is_const) { | 295 | 167 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 167 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 167 | vec_res.resize(col_left->size()); | 299 | 167 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 167 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 167 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 167 | col_right->get_element(0), vec_res); | 303 | | | 304 | 167 | block.replace_by_position(result, std::move(col_res)); | 305 | 167 | } 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 | 281 | return Status::OK(); | 318 | 281 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.69k | const ColumnPtr& col_right_ptr) const { | 275 | 1.69k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.69k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.69k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.69k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.69k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.69k | if (!left_is_const && !right_is_const) { | 284 | 254 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 254 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 254 | vec_res.resize(col_left->get_data().size()); | 288 | 254 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 254 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 254 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 254 | vec_res); | 292 | | | 293 | 254 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.44k | } else if (!left_is_const && right_is_const) { | 295 | 1.44k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.44k | vec_res.resize(col_left->size()); | 299 | 1.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.44k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.44k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.44k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.44k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.44k | } 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 | 1.69k | return Status::OK(); | 318 | 1.69k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_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 | 246 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 246 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 246 | vec_res.resize(col_left->get_data().size()); | 288 | 246 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 246 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 246 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 246 | vec_res); | 292 | | | 293 | 246 | block.replace_by_position(result, std::move(col_res)); | 294 | 782 | } else if (!left_is_const && right_is_const) { | 295 | 781 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 781 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 781 | vec_res.resize(col_left->size()); | 299 | 781 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 781 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 781 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 781 | col_right->get_element(0), vec_res); | 303 | | | 304 | 781 | block.replace_by_position(result, std::move(col_res)); | 305 | 781 | } 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_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 96 | const ColumnPtr& col_right_ptr) const { | 275 | 96 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 96 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 96 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 96 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 96 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 96 | if (!left_is_const && !right_is_const) { | 284 | 72 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 72 | vec_res.resize(col_left->get_data().size()); | 288 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 72 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 72 | vec_res); | 292 | | | 293 | 72 | block.replace_by_position(result, std::move(col_res)); | 294 | 72 | } else if (!left_is_const && right_is_const) { | 295 | 24 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 24 | vec_res.resize(col_left->size()); | 299 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 24 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 24 | col_right->get_element(0), vec_res); | 303 | | | 304 | 24 | block.replace_by_position(result, std::move(col_res)); | 305 | 24 | } 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 | 96 | return Status::OK(); | 318 | 96 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 18 | const ColumnPtr& col_right_ptr) const { | 275 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 18 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 18 | 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 | 13 | } else if (!left_is_const && right_is_const) { | 295 | 13 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 13 | vec_res.resize(col_left->size()); | 299 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 13 | col_right->get_element(0), vec_res); | 303 | | | 304 | 13 | block.replace_by_position(result, std::move(col_res)); | 305 | 13 | } 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 | 18 | return Status::OK(); | 318 | 18 | } |
_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 | 96 | const ColumnPtr& col_right_ptr) const { | 275 | 96 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 96 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 96 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 96 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 96 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 96 | if (!left_is_const && !right_is_const) { | 284 | 96 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 96 | vec_res.resize(col_left->get_data().size()); | 288 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 96 | vec_res); | 292 | | | 293 | 96 | block.replace_by_position(result, std::move(col_res)); | 294 | 96 | } 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 | 96 | return Status::OK(); | 318 | 96 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 245 | const ColumnPtr& col_right_ptr) const { | 275 | 245 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 245 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 245 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 245 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 245 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 245 | if (!left_is_const && !right_is_const) { | 284 | 87 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 87 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 87 | vec_res.resize(col_left->get_data().size()); | 288 | 87 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 87 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 87 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 87 | vec_res); | 292 | | | 293 | 87 | block.replace_by_position(result, std::move(col_res)); | 294 | 158 | } else if (!left_is_const && right_is_const) { | 295 | 158 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 158 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 158 | vec_res.resize(col_left->size()); | 299 | 158 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 158 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 158 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 158 | col_right->get_element(0), vec_res); | 303 | | | 304 | 158 | block.replace_by_position(result, std::move(col_res)); | 305 | 158 | } 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 | 245 | return Status::OK(); | 318 | 245 | } |
_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 | 41 | const ColumnPtr& col_right_ptr) const { | 275 | 41 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 41 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 41 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 41 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 41 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 41 | 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 | 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 | 41 | return Status::OK(); | 318 | 41 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 84 | const ColumnPtr& col_right_ptr) const { | 275 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 84 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 84 | 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 | 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 | 84 | return Status::OK(); | 318 | 84 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 495 | const ColumnPtr& col_right_ptr) const { | 275 | 495 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 495 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 495 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 495 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 495 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 495 | if (!left_is_const && !right_is_const) { | 284 | 432 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 432 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 432 | vec_res.resize(col_left->get_data().size()); | 288 | 432 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 432 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 432 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 432 | vec_res); | 292 | | | 293 | 432 | block.replace_by_position(result, std::move(col_res)); | 294 | 432 | } else if (!left_is_const && right_is_const) { | 295 | 63 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 63 | vec_res.resize(col_left->size()); | 299 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 63 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 63 | col_right->get_element(0), vec_res); | 303 | | | 304 | 63 | block.replace_by_position(result, std::move(col_res)); | 305 | 63 | } 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 | 495 | return Status::OK(); | 318 | 495 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 478 | const ColumnPtr& col_right_ptr) const { | 275 | 478 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 478 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 478 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 478 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 478 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 478 | if (!left_is_const && !right_is_const) { | 284 | 461 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 461 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 461 | vec_res.resize(col_left->get_data().size()); | 288 | 461 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 461 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 461 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 461 | vec_res); | 292 | | | 293 | 461 | block.replace_by_position(result, std::move(col_res)); | 294 | 461 | } else if (!left_is_const && right_is_const) { | 295 | 17 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 17 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 17 | vec_res.resize(col_left->size()); | 299 | 17 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 17 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 17 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 17 | col_right->get_element(0), vec_res); | 303 | | | 304 | 17 | block.replace_by_position(result, std::move(col_res)); | 305 | 17 | } 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 | 478 | return Status::OK(); | 318 | 478 | } |
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 | 933 | const ColumnPtr& col_right_ptr) const { | 275 | 933 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 933 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 933 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 933 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 933 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 934 | if (!left_is_const && !right_is_const) { | 284 | 932 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 932 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 932 | vec_res.resize(col_left->get_data().size()); | 288 | 932 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 932 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 932 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 932 | vec_res); | 292 | | | 293 | 932 | block.replace_by_position(result, std::move(col_res)); | 294 | 932 | } 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 | 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 | 933 | return Status::OK(); | 318 | 933 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_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 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3 | const ColumnPtr& col_right_ptr) const { | 275 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3 | 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 | 3 | } 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 | 3 | return Status::OK(); | 318 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 771 | const ColumnPtr& col_right_ptr) const { | 275 | 771 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 771 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 771 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 771 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 771 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 772 | if (!left_is_const && !right_is_const) { | 284 | 396 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 396 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 396 | vec_res.resize(col_left->get_data().size()); | 288 | 396 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 396 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 396 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 396 | vec_res); | 292 | | | 293 | 396 | block.replace_by_position(result, std::move(col_res)); | 294 | 396 | } else if (!left_is_const && right_is_const) { | 295 | 376 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 376 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 376 | vec_res.resize(col_left->size()); | 299 | 376 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 376 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 376 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 376 | col_right->get_element(0), vec_res); | 303 | | | 304 | 376 | 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 | 771 | return Status::OK(); | 318 | 771 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 999 | const ColumnPtr& col_right_ptr) const { | 275 | 999 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 999 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 999 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 999 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 999 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.00k | if (!left_is_const && !right_is_const) { | 284 | 607 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 607 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 607 | vec_res.resize(col_left->get_data().size()); | 288 | 607 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 607 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 607 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 607 | vec_res); | 292 | | | 293 | 607 | block.replace_by_position(result, std::move(col_res)); | 294 | 607 | } else if (!left_is_const && right_is_const) { | 295 | 393 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 393 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 393 | vec_res.resize(col_left->size()); | 299 | 393 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 393 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 393 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 393 | col_right->get_element(0), vec_res); | 303 | | | 304 | 393 | 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 | 999 | return Status::OK(); | 318 | 999 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 4.64k | const ColumnPtr& col_right_ptr) const { | 275 | 4.64k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 4.64k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 4.64k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 4.64k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 4.64k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 4.64k | if (!left_is_const && !right_is_const) { | 284 | 2.94k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 2.94k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 2.94k | vec_res.resize(col_left->get_data().size()); | 288 | 2.94k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 2.94k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 2.94k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 2.94k | vec_res); | 292 | | | 293 | 2.94k | block.replace_by_position(result, std::move(col_res)); | 294 | 2.94k | } else if (!left_is_const && right_is_const) { | 295 | 1.70k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.70k | vec_res.resize(col_left->size()); | 299 | 1.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.70k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.70k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.70k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.70k | 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 | 4.64k | return Status::OK(); | 318 | 4.64k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.14k | const ColumnPtr& col_right_ptr) const { | 275 | 1.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.14k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.14k | if (!left_is_const && !right_is_const) { | 284 | 124 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 124 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 124 | vec_res.resize(col_left->get_data().size()); | 288 | 124 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 124 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 124 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 124 | vec_res); | 292 | | | 293 | 124 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.02k | } else if (!left_is_const && right_is_const) { | 295 | 1.02k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.02k | vec_res.resize(col_left->size()); | 299 | 1.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.02k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.02k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.02k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.02k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.02k | } 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.14k | return Status::OK(); | 318 | 1.14k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 223 | const ColumnPtr& col_right_ptr) const { | 275 | 223 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 223 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 223 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 223 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 223 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 223 | 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 | 203 | } else if (!left_is_const && right_is_const) { | 295 | 203 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 203 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 203 | vec_res.resize(col_left->size()); | 299 | 203 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 203 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 203 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 203 | col_right->get_element(0), vec_res); | 303 | | | 304 | 203 | block.replace_by_position(result, std::move(col_res)); | 305 | 203 | } 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 | 223 | return Status::OK(); | 318 | 223 | } |
_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 | 220 | const ColumnPtr& col_right_ptr) const { | 275 | 220 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 220 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 220 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 220 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 220 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 220 | 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 | 200 | } else if (!left_is_const && right_is_const) { | 295 | 200 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 200 | vec_res.resize(col_left->size()); | 299 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 200 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 200 | col_right->get_element(0), vec_res); | 303 | | | 304 | 200 | block.replace_by_position(result, std::move(col_res)); | 305 | 200 | } 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 | 220 | return Status::OK(); | 318 | 220 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 543 | const ColumnPtr& col_right_ptr) const { | 275 | 543 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 543 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 543 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 543 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 543 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 543 | if (!left_is_const && !right_is_const) { | 284 | 42 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 42 | vec_res.resize(col_left->get_data().size()); | 288 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 42 | vec_res); | 292 | | | 293 | 42 | block.replace_by_position(result, std::move(col_res)); | 294 | 501 | } else if (!left_is_const && right_is_const) { | 295 | 500 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 500 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 500 | vec_res.resize(col_left->size()); | 299 | 500 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 500 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 500 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 500 | col_right->get_element(0), vec_res); | 303 | | | 304 | 500 | block.replace_by_position(result, std::move(col_res)); | 305 | 500 | } 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 | 543 | return Status::OK(); | 318 | 543 | } |
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 | 22 | const ColumnPtr& col_right_ptr) const { | 275 | 22 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 22 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 22 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 22 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 22 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 22 | 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 | 22 | } else if (!left_is_const && right_is_const) { | 295 | 22 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 22 | vec_res.resize(col_left->size()); | 299 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 22 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 22 | col_right->get_element(0), vec_res); | 303 | | | 304 | 22 | block.replace_by_position(result, std::move(col_res)); | 305 | 22 | } 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 | 22 | return Status::OK(); | 318 | 22 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 479 | const ColumnPtr& col_right_ptr) const { | 275 | 479 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 479 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 479 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 479 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 479 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 479 | if (!left_is_const && !right_is_const) { | 284 | 7 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 7 | vec_res.resize(col_left->get_data().size()); | 288 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 7 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 7 | vec_res); | 292 | | | 293 | 7 | block.replace_by_position(result, std::move(col_res)); | 294 | 472 | } else if (!left_is_const && right_is_const) { | 295 | 471 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 471 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 471 | vec_res.resize(col_left->size()); | 299 | 471 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 471 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 471 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 471 | col_right->get_element(0), vec_res); | 303 | | | 304 | 471 | block.replace_by_position(result, std::move(col_res)); | 305 | 471 | } 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 | 479 | return Status::OK(); | 318 | 479 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 152 | const ColumnPtr& col_right_ptr) const { | 275 | 152 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 152 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 152 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 152 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 152 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 152 | if (!left_is_const && !right_is_const) { | 284 | 6 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 6 | vec_res.resize(col_left->get_data().size()); | 288 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 6 | vec_res); | 292 | | | 293 | 6 | block.replace_by_position(result, std::move(col_res)); | 294 | 146 | } else if (!left_is_const && right_is_const) { | 295 | 146 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 146 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 146 | vec_res.resize(col_left->size()); | 299 | 146 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 146 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 146 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 146 | col_right->get_element(0), vec_res); | 303 | | | 304 | 146 | block.replace_by_position(result, std::move(col_res)); | 305 | 146 | } 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 | 152 | return Status::OK(); | 318 | 152 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3 | const ColumnPtr& col_right_ptr) const { | 275 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3 | 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 | 3 | } 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 | 3 | return Status::OK(); | 318 | 3 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 40 | const ColumnPtr& col_right_ptr) const { | 275 | 40 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 40 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 40 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 40 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 40 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 40 | 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 | 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 | 40 | return Status::OK(); | 318 | 40 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 66 | const ColumnPtr& col_right_ptr) const { | 275 | 66 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 66 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 66 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 66 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 66 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 66 | 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 | 66 | } else if (!left_is_const && right_is_const) { | 295 | 66 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 66 | vec_res.resize(col_left->size()); | 299 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 66 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 66 | col_right->get_element(0), vec_res); | 303 | | | 304 | 66 | block.replace_by_position(result, std::move(col_res)); | 305 | 66 | } 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 | 66 | return Status::OK(); | 318 | 66 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 624 | const ColumnPtr& col_right_ptr) const { | 275 | 624 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 624 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 624 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 624 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 624 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 624 | 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 | 621 | } else if (!left_is_const && right_is_const) { | 295 | 621 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 621 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 621 | vec_res.resize(col_left->size()); | 299 | 621 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 621 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 621 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 621 | col_right->get_element(0), vec_res); | 303 | | | 304 | 621 | block.replace_by_position(result, std::move(col_res)); | 305 | 621 | } 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 | 624 | return Status::OK(); | 318 | 624 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 169 | const ColumnPtr& col_right_ptr) const { | 275 | 169 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 169 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 169 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 169 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 169 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 169 | 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 | 161 | } else if (!left_is_const && right_is_const) { | 295 | 161 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 161 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 161 | vec_res.resize(col_left->size()); | 299 | 161 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 161 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 161 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 161 | col_right->get_element(0), vec_res); | 303 | | | 304 | 161 | block.replace_by_position(result, std::move(col_res)); | 305 | 161 | } 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 | 169 | return Status::OK(); | 318 | 169 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 39 | const ColumnPtr& col_right_ptr) const { | 275 | 39 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 39 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 39 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 39 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 39 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 39 | 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 | 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 | 39 | return Status::OK(); | 318 | 39 | } |
_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 | 24 | const ColumnPtr& col_right_ptr) const { | 275 | 24 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 24 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 24 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 24 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 24 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 24 | 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 | 20 | } 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 | 24 | return Status::OK(); | 318 | 24 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 202 | const ColumnPtr& col_right_ptr) const { | 275 | 202 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 202 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 202 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 202 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 202 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 202 | 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 | 131 | } else if (!left_is_const && right_is_const) { | 295 | 131 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 131 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 131 | vec_res.resize(col_left->size()); | 299 | 131 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 131 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 131 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 131 | col_right->get_element(0), vec_res); | 303 | | | 304 | 131 | block.replace_by_position(result, std::move(col_res)); | 305 | 131 | } 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 | 202 | return Status::OK(); | 318 | 202 | } |
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 | 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 | 78 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 78 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 78 | vec_res.resize(col_left->get_data().size()); | 288 | 78 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 78 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 78 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 78 | vec_res); | 292 | | | 293 | 78 | block.replace_by_position(result, std::move(col_res)); | 294 | 78 | } 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 | 78 | return Status::OK(); | 318 | 78 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.03k | const ColumnPtr& col_right_ptr) const { | 275 | 2.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.03k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.03k | if (!left_is_const && !right_is_const) { | 284 | 1.70k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.70k | vec_res.resize(col_left->get_data().size()); | 288 | 1.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.70k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.70k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.70k | vec_res); | 292 | | | 293 | 1.70k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.70k | } else if (!left_is_const && right_is_const) { | 295 | 334 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 334 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 334 | vec_res.resize(col_left->size()); | 299 | 334 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 334 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 334 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 334 | col_right->get_element(0), vec_res); | 303 | | | 304 | 334 | block.replace_by_position(result, std::move(col_res)); | 305 | 334 | } 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.03k | return Status::OK(); | 318 | 2.03k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 302 | const ColumnPtr& col_right_ptr) const { | 275 | 302 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 302 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 302 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 302 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 302 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 302 | if (!left_is_const && !right_is_const) { | 284 | 241 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 241 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 241 | vec_res.resize(col_left->get_data().size()); | 288 | 241 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 241 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 241 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 241 | vec_res); | 292 | | | 293 | 241 | block.replace_by_position(result, std::move(col_res)); | 294 | 241 | } else if (!left_is_const && right_is_const) { | 295 | 61 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 61 | vec_res.resize(col_left->size()); | 299 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 61 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 61 | col_right->get_element(0), vec_res); | 303 | | | 304 | 61 | block.replace_by_position(result, std::move(col_res)); | 305 | 61 | } 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 | 302 | return Status::OK(); | 318 | 302 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_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 | 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 | 3 | } 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 | 4 | return Status::OK(); | 318 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 857 | const ColumnPtr& col_right_ptr) const { | 275 | 857 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 857 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 857 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 857 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 857 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 858 | if (!left_is_const && !right_is_const) { | 284 | 828 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 828 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 828 | vec_res.resize(col_left->get_data().size()); | 288 | 828 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 828 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 828 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 828 | vec_res); | 292 | | | 293 | 828 | block.replace_by_position(result, std::move(col_res)); | 294 | 828 | } else if (!left_is_const && right_is_const) { | 295 | 30 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 30 | vec_res.resize(col_left->size()); | 299 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 30 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 30 | col_right->get_element(0), vec_res); | 303 | | | 304 | 30 | 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 | 857 | return Status::OK(); | 318 | 857 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 122 | const ColumnPtr& col_right_ptr) const { | 275 | 122 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 122 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 122 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 122 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 122 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 122 | if (!left_is_const && !right_is_const) { | 284 | 108 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 108 | vec_res.resize(col_left->get_data().size()); | 288 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 108 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 108 | vec_res); | 292 | | | 293 | 108 | block.replace_by_position(result, std::move(col_res)); | 294 | 108 | } else if (!left_is_const && right_is_const) { | 295 | 14 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 14 | vec_res.resize(col_left->size()); | 299 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 14 | col_right->get_element(0), vec_res); | 303 | | | 304 | 14 | block.replace_by_position(result, std::move(col_res)); | 305 | 14 | } 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 | 122 | return Status::OK(); | 318 | 122 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 711 | const ColumnPtr& col_right_ptr) const { | 275 | 711 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 711 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 711 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 711 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 711 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 711 | if (!left_is_const && !right_is_const) { | 284 | 155 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 155 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 155 | vec_res.resize(col_left->get_data().size()); | 288 | 155 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 155 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 155 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 155 | vec_res); | 292 | | | 293 | 155 | block.replace_by_position(result, std::move(col_res)); | 294 | 556 | } else if (!left_is_const && right_is_const) { | 295 | 556 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 556 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 556 | vec_res.resize(col_left->size()); | 299 | 556 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 556 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 556 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 556 | col_right->get_element(0), vec_res); | 303 | | | 304 | 556 | block.replace_by_position(result, std::move(col_res)); | 305 | 556 | } 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 | 711 | return Status::OK(); | 318 | 711 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 730 | const ColumnPtr& col_right_ptr) const { | 275 | 730 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 730 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 730 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 730 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 730 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 730 | if (!left_is_const && !right_is_const) { | 284 | 231 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 231 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 231 | vec_res.resize(col_left->get_data().size()); | 288 | 231 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 231 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 231 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 231 | vec_res); | 292 | | | 293 | 231 | block.replace_by_position(result, std::move(col_res)); | 294 | 499 | } else if (!left_is_const && right_is_const) { | 295 | 499 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 499 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 499 | vec_res.resize(col_left->size()); | 299 | 499 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 499 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 499 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 499 | col_right->get_element(0), vec_res); | 303 | | | 304 | 499 | block.replace_by_position(result, std::move(col_res)); | 305 | 499 | } 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 | 730 | return Status::OK(); | 318 | 730 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 221 | const ColumnPtr& col_right_ptr) const { | 275 | 221 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 221 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 221 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 221 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 221 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 221 | 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 | 153 | } else if (!left_is_const && right_is_const) { | 295 | 68 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 68 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 68 | vec_res.resize(col_left->size()); | 299 | 68 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 68 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 68 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 68 | col_right->get_element(0), vec_res); | 303 | | | 304 | 68 | block.replace_by_position(result, std::move(col_res)); | 305 | 68 | } 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 | 221 | return Status::OK(); | 318 | 221 | } |
_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 | 133 | const ColumnPtr& col_right_ptr) const { | 275 | 133 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 133 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 133 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 133 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 133 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 133 | if (!left_is_const && !right_is_const) { | 284 | 133 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 133 | vec_res.resize(col_left->get_data().size()); | 288 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 133 | vec_res); | 292 | | | 293 | 133 | block.replace_by_position(result, std::move(col_res)); | 294 | 133 | } 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 | 133 | return Status::OK(); | 318 | 133 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 312 | const ColumnPtr& col_right_ptr) const { | 275 | 312 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 312 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 312 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 312 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 312 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 312 | 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 | 175 | } else if (!left_is_const && right_is_const) { | 295 | 175 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 175 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 175 | vec_res.resize(col_left->size()); | 299 | 175 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 175 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 175 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 175 | col_right->get_element(0), vec_res); | 303 | | | 304 | 175 | block.replace_by_position(result, std::move(col_res)); | 305 | 175 | } 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 | 312 | return Status::OK(); | 318 | 312 | } |
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 | 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 | 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 | 20 | } else if (!left_is_const && right_is_const) { | 295 | 20 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 20 | vec_res.resize(col_left->size()); | 299 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 20 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 20 | col_right->get_element(0), vec_res); | 303 | | | 304 | 20 | block.replace_by_position(result, std::move(col_res)); | 305 | 20 | } 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 582 | const ColumnPtr& col_right_ptr) const { | 275 | 582 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 582 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 582 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 582 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 582 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 582 | if (!left_is_const && !right_is_const) { | 284 | 435 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 435 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 435 | vec_res.resize(col_left->get_data().size()); | 288 | 435 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 435 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 435 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 435 | vec_res); | 292 | | | 293 | 435 | block.replace_by_position(result, std::move(col_res)); | 294 | 435 | } else if (!left_is_const && right_is_const) { | 295 | 148 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 148 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 148 | vec_res.resize(col_left->size()); | 299 | 148 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 148 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 148 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 148 | col_right->get_element(0), vec_res); | 303 | | | 304 | 148 | 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 | 582 | return Status::OK(); | 318 | 582 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 44 | const ColumnPtr& col_right_ptr) const { | 275 | 44 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 44 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 44 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 44 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 44 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 44 | 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 | 44 | } 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 | 44 | return Status::OK(); | 318 | 44 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3 | const ColumnPtr& col_right_ptr) const { | 275 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3 | 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 | 3 | } 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 | 3 | return Status::OK(); | 318 | 3 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_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 | 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 | 34 | } else if (!left_is_const && right_is_const) { | 295 | 34 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 34 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 34 | vec_res.resize(col_left->size()); | 299 | 34 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 34 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 34 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 34 | col_right->get_element(0), vec_res); | 303 | | | 304 | 34 | block.replace_by_position(result, std::move(col_res)); | 305 | 34 | } 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 72 | const ColumnPtr& col_right_ptr) const { | 275 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 72 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 72 | 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 | 72 | } else if (!left_is_const && right_is_const) { | 295 | 72 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 72 | vec_res.resize(col_left->size()); | 299 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 72 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 72 | col_right->get_element(0), vec_res); | 303 | | | 304 | 72 | block.replace_by_position(result, std::move(col_res)); | 305 | 72 | } 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 | 72 | return Status::OK(); | 318 | 72 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 678 | const ColumnPtr& col_right_ptr) const { | 275 | 678 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 678 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 678 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 678 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 678 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 678 | if (!left_is_const && !right_is_const) { | 284 | 54 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 54 | vec_res.resize(col_left->get_data().size()); | 288 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 54 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 54 | vec_res); | 292 | | | 293 | 54 | block.replace_by_position(result, std::move(col_res)); | 294 | 624 | } else if (!left_is_const && right_is_const) { | 295 | 624 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 624 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 624 | vec_res.resize(col_left->size()); | 299 | 624 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 624 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 624 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 624 | col_right->get_element(0), vec_res); | 303 | | | 304 | 624 | block.replace_by_position(result, std::move(col_res)); | 305 | 624 | } 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 | 678 | return Status::OK(); | 318 | 678 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 298 | const ColumnPtr& col_right_ptr) const { | 275 | 298 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 298 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 298 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 298 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 298 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 298 | if (!left_is_const && !right_is_const) { | 284 | 77 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 77 | vec_res.resize(col_left->get_data().size()); | 288 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 77 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 77 | vec_res); | 292 | | | 293 | 77 | block.replace_by_position(result, std::move(col_res)); | 294 | 221 | } else if (!left_is_const && right_is_const) { | 295 | 221 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 221 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 221 | vec_res.resize(col_left->size()); | 299 | 221 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 221 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 221 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 221 | col_right->get_element(0), vec_res); | 303 | | | 304 | 221 | block.replace_by_position(result, std::move(col_res)); | 305 | 221 | } 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 | 298 | return Status::OK(); | 318 | 298 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 33 | const ColumnPtr& col_right_ptr) const { | 275 | 33 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 33 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 33 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 33 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 33 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 33 | 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 | 33 | } else if (!left_is_const && right_is_const) { | 295 | 33 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 33 | vec_res.resize(col_left->size()); | 299 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 33 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 33 | col_right->get_element(0), vec_res); | 303 | | | 304 | 33 | block.replace_by_position(result, std::move(col_res)); | 305 | 33 | } 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 | 33 | return Status::OK(); | 318 | 33 | } |
_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 | 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 | 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 | 20 | } 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 | 20 | return Status::OK(); | 318 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 118 | const ColumnPtr& col_right_ptr) const { | 275 | 118 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 118 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 118 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 118 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 118 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 118 | 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 | 98 | } else if (!left_is_const && right_is_const) { | 295 | 98 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 98 | vec_res.resize(col_left->size()); | 299 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 98 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 98 | col_right->get_element(0), vec_res); | 303 | | | 304 | 98 | block.replace_by_position(result, std::move(col_res)); | 305 | 98 | } 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 | 118 | return Status::OK(); | 318 | 118 | } |
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 | 3.04k | const ColumnWithTypeAndName& col_right) const { |
322 | 3.04k | auto call = [&](const auto& type) -> bool { |
323 | 3.04k | using DispatchType = std::decay_t<decltype(type)>; |
324 | 3.04k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
325 | 3.04k | block, result, col_left, col_right); |
326 | 3.04k | return true; |
327 | 3.04k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 135 | auto call = [&](const auto& type) -> bool { | 323 | 135 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 135 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 135 | block, result, col_left, col_right); | 326 | 135 | return true; | 327 | 135 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 169 | auto call = [&](const auto& type) -> bool { | 323 | 169 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 169 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 169 | block, result, col_left, col_right); | 326 | 169 | return true; | 327 | 169 | }; |
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 | 822 | auto call = [&](const auto& type) -> bool { | 323 | 822 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 822 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 822 | block, result, col_left, col_right); | 326 | 822 | return true; | 327 | 822 | }; |
_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 | 28 | auto call = [&](const auto& type) -> bool { | 323 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 28 | block, result, col_left, col_right); | 326 | 28 | return true; | 327 | 28 | }; |
_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 | 8 | auto call = [&](const auto& type) -> bool { | 323 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 8 | block, result, col_left, col_right); | 326 | 8 | return true; | 327 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 66 | auto call = [&](const auto& type) -> bool { | 323 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 66 | block, result, col_left, col_right); | 326 | 66 | return true; | 327 | 66 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 322 | 817 | auto call = [&](const auto& type) -> bool { | 323 | 817 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 817 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 817 | block, result, col_left, col_right); | 326 | 817 | return true; | 327 | 817 | }; |
_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 | 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 29 | auto call = [&](const auto& type) -> bool { | 323 | 29 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 29 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 29 | block, result, col_left, col_right); | 326 | 29 | return true; | 327 | 29 | }; |
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 | 67 | auto call = [&](const auto& type) -> bool { | 323 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 67 | block, result, col_left, col_right); | 326 | 67 | return true; | 327 | 67 | }; |
_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 | 186 | auto call = [&](const auto& type) -> bool { | 323 | 186 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 186 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 186 | block, result, col_left, col_right); | 326 | 186 | return true; | 327 | 186 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 215 | auto call = [&](const auto& type) -> bool { | 323 | 215 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 215 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 215 | block, result, col_left, col_right); | 326 | 215 | return true; | 327 | 215 | }; |
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 | 237 | auto call = [&](const auto& type) -> bool { | 323 | 237 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 237 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 237 | block, result, col_left, col_right); | 326 | 237 | return true; | 327 | 237 | }; |
_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 | 7 | auto call = [&](const auto& type) -> bool { | 323 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 7 | block, result, col_left, col_right); | 326 | 7 | return true; | 327 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 31 | auto call = [&](const auto& type) -> bool { | 323 | 31 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 31 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 31 | block, result, col_left, col_right); | 326 | 31 | return true; | 327 | 31 | }; |
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 | 62 | auto call = [&](const auto& type) -> bool { | 323 | 62 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 62 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 62 | block, result, col_left, col_right); | 326 | 62 | return true; | 327 | 62 | }; |
_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 | 3.04k | 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.04k | 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.04k | return Status::OK(); |
340 | 3.04k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 1.15k | const ColumnWithTypeAndName& col_right) const { | 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 | }; | 328 | | | 329 | 1.15k | 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.15k | 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.15k | return Status::OK(); | 340 | 1.15k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 118 | const ColumnWithTypeAndName& col_right) const { | 322 | 118 | auto call = [&](const auto& type) -> bool { | 323 | 118 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 118 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 118 | block, result, col_left, col_right); | 326 | 118 | return true; | 327 | 118 | }; | 328 | | | 329 | 118 | 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 | 118 | 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 | 118 | return Status::OK(); | 340 | 118 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 893 | const ColumnWithTypeAndName& col_right) const { | 322 | 893 | auto call = [&](const auto& type) -> bool { | 323 | 893 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 893 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 893 | block, result, col_left, col_right); | 326 | 893 | return true; | 327 | 893 | }; | 328 | | | 329 | 893 | 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 | 893 | 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 | 893 | return Status::OK(); | 340 | 893 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 121 | const ColumnWithTypeAndName& col_right) const { | 322 | 121 | auto call = [&](const auto& type) -> bool { | 323 | 121 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 121 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 121 | block, result, col_left, col_right); | 326 | 121 | return true; | 327 | 121 | }; | 328 | | | 329 | 121 | 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 | 121 | 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 | 121 | return Status::OK(); | 340 | 121 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 639 | const ColumnWithTypeAndName& col_right) const { | 322 | 639 | auto call = [&](const auto& type) -> bool { | 323 | 639 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 639 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 639 | block, result, col_left, col_right); | 326 | 639 | return true; | 327 | 639 | }; | 328 | | | 329 | 639 | 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 | 639 | 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 | 639 | return Status::OK(); | 340 | 639 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 116 | const ColumnWithTypeAndName& col_right) const { | 322 | 116 | auto call = [&](const auto& type) -> bool { | 323 | 116 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 116 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 116 | block, result, col_left, col_right); | 326 | 116 | return true; | 327 | 116 | }; | 328 | | | 329 | 116 | 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 | 116 | 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 | 116 | return Status::OK(); | 340 | 116 | } |
|
341 | | |
342 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
343 | 12.1k | const IColumn* c1) const { |
344 | 12.1k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
345 | 12.1k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
346 | 12.1k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
347 | 12.1k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
348 | 12.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 | 12.1k | DCHECK(!(c0_const && c1_const)); |
353 | 12.1k | const ColumnString::Chars* c0_const_chars = nullptr; |
354 | 12.1k | const ColumnString::Chars* c1_const_chars = nullptr; |
355 | 12.1k | ColumnString::Offset c0_const_size = 0; |
356 | 12.1k | ColumnString::Offset c1_const_size = 0; |
357 | | |
358 | 12.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 | 12.1k | if (c1_const) { |
372 | 11.2k | const ColumnString* c1_const_string = |
373 | 11.2k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
374 | | |
375 | 11.2k | if (c1_const_string) { |
376 | 11.2k | c1_const_chars = &c1_const_string->get_chars(); |
377 | 11.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 | 11.2k | } |
383 | | |
384 | 12.1k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
385 | | |
386 | 12.1k | auto c_res = ColumnUInt8::create(); |
387 | 12.1k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
388 | 12.1k | vec_res.resize(c0->size()); |
389 | | |
390 | 12.1k | if (c0_string && c1_string) { |
391 | 864 | StringImpl::string_vector_string_vector( |
392 | 864 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
393 | 864 | c1_string->get_offsets(), vec_res); |
394 | 11.2k | } else if (c0_string && c1_const) { |
395 | 11.2k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
396 | 11.2k | *c1_const_chars, c1_const_size, vec_res); |
397 | 11.2k | } 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 | 12.1k | block.replace_by_position(result, std::move(c_res)); |
406 | 12.1k | return Status::OK(); |
407 | 12.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 10.8k | const IColumn* c1) const { | 344 | 10.8k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 10.8k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 10.8k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 10.8k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 10.8k | 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 | 10.8k | DCHECK(!(c0_const && c1_const)); | 353 | 10.8k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 10.8k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 10.8k | ColumnString::Offset c0_const_size = 0; | 356 | 10.8k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 10.8k | 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 | 10.8k | if (c1_const) { | 372 | 10.4k | const ColumnString* c1_const_string = | 373 | 10.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 10.4k | if (c1_const_string) { | 376 | 10.4k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 10.4k | 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 | 10.4k | } | 383 | | | 384 | 10.8k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 10.8k | auto c_res = ColumnUInt8::create(); | 387 | 10.8k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 10.8k | vec_res.resize(c0->size()); | 389 | | | 390 | 10.8k | if (c0_string && c1_string) { | 391 | 430 | StringImpl::string_vector_string_vector( | 392 | 430 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 430 | c1_string->get_offsets(), vec_res); | 394 | 10.4k | } else if (c0_string && c1_const) { | 395 | 10.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 10.4k | *c1_const_chars, c1_const_size, vec_res); | 397 | 10.4k | } 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 | 1 | } else { | 402 | 1 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 1 | c0->get_name(), c1->get_name(), name); | 404 | 1 | } | 405 | 10.8k | block.replace_by_position(result, std::move(c_res)); | 406 | 10.8k | return Status::OK(); | 407 | 10.8k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 137 | const IColumn* c1) const { | 344 | 137 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 137 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 137 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 137 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 137 | 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 | 137 | DCHECK(!(c0_const && c1_const)); | 353 | 137 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 137 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 137 | ColumnString::Offset c0_const_size = 0; | 356 | 137 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 137 | 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 | 137 | if (c1_const) { | 372 | 136 | const ColumnString* c1_const_string = | 373 | 136 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 136 | if (c1_const_string) { | 376 | 136 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 136 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 136 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 136 | } | 383 | | | 384 | 137 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 137 | auto c_res = ColumnUInt8::create(); | 387 | 137 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 137 | vec_res.resize(c0->size()); | 389 | | | 390 | 137 | 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 | 136 | } else if (c0_string && c1_const) { | 395 | 136 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 136 | *c1_const_chars, c1_const_size, vec_res); | 397 | 136 | } 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 | 137 | block.replace_by_position(result, std::move(c_res)); | 406 | 137 | return Status::OK(); | 407 | 137 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 189 | const IColumn* c1) const { | 344 | 189 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 189 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 189 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 189 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 189 | 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 | 189 | DCHECK(!(c0_const && c1_const)); | 353 | 189 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 189 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 189 | ColumnString::Offset c0_const_size = 0; | 356 | 189 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 189 | 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 | 189 | if (c1_const) { | 372 | 187 | const ColumnString* c1_const_string = | 373 | 187 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 187 | if (c1_const_string) { | 376 | 187 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 187 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 187 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 187 | } | 383 | | | 384 | 189 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 189 | auto c_res = ColumnUInt8::create(); | 387 | 189 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 189 | vec_res.resize(c0->size()); | 389 | | | 390 | 189 | 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 | 187 | } else if (c0_string && c1_const) { | 395 | 187 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 187 | *c1_const_chars, c1_const_size, vec_res); | 397 | 187 | } 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 | 189 | block.replace_by_position(result, std::move(c_res)); | 406 | 189 | return Status::OK(); | 407 | 189 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 252 | const IColumn* c1) const { | 344 | 252 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 252 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 252 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 252 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 252 | 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 | 252 | DCHECK(!(c0_const && c1_const)); | 353 | 252 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 252 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 252 | ColumnString::Offset c0_const_size = 0; | 356 | 252 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 252 | 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 | 252 | if (c1_const) { | 372 | 209 | const ColumnString* c1_const_string = | 373 | 209 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 209 | if (c1_const_string) { | 376 | 209 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 209 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 209 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 209 | } | 383 | | | 384 | 252 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 252 | auto c_res = ColumnUInt8::create(); | 387 | 252 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 252 | vec_res.resize(c0->size()); | 389 | | | 390 | 252 | if (c0_string && c1_string) { | 391 | 43 | StringImpl::string_vector_string_vector( | 392 | 43 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 43 | c1_string->get_offsets(), vec_res); | 394 | 209 | } else if (c0_string && c1_const) { | 395 | 209 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 209 | *c1_const_chars, c1_const_size, vec_res); | 397 | 209 | } 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 | 252 | block.replace_by_position(result, std::move(c_res)); | 406 | 252 | return Status::OK(); | 407 | 252 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 495 | const IColumn* c1) const { | 344 | 495 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 495 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 495 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 495 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 495 | 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 | 495 | DCHECK(!(c0_const && c1_const)); | 353 | 495 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 495 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 495 | ColumnString::Offset c0_const_size = 0; | 356 | 495 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 495 | 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 | 495 | if (c1_const) { | 372 | 107 | const ColumnString* c1_const_string = | 373 | 107 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 107 | if (c1_const_string) { | 376 | 107 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 107 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 107 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 107 | } | 383 | | | 384 | 495 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 495 | auto c_res = ColumnUInt8::create(); | 387 | 495 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 495 | vec_res.resize(c0->size()); | 389 | | | 390 | 495 | if (c0_string && c1_string) { | 391 | 388 | StringImpl::string_vector_string_vector( | 392 | 388 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 388 | c1_string->get_offsets(), vec_res); | 394 | 388 | } else if (c0_string && c1_const) { | 395 | 107 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 107 | *c1_const_chars, c1_const_size, vec_res); | 397 | 107 | } 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 | 495 | block.replace_by_position(result, std::move(c_res)); | 406 | 495 | return Status::OK(); | 407 | 495 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 192 | const IColumn* c1) const { | 344 | 192 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 192 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 192 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 192 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 192 | 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 | 192 | DCHECK(!(c0_const && c1_const)); | 353 | 192 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 192 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 192 | ColumnString::Offset c0_const_size = 0; | 356 | 192 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 192 | 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 | 192 | if (c1_const) { | 372 | 192 | const ColumnString* c1_const_string = | 373 | 192 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 192 | if (c1_const_string) { | 376 | 191 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 191 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 191 | } else { | 379 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 1 | c1->get_name(), name); | 381 | 1 | } | 382 | 192 | } | 383 | | | 384 | 191 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 191 | auto c_res = ColumnUInt8::create(); | 387 | 191 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 191 | vec_res.resize(c0->size()); | 389 | | | 390 | 192 | 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 | 192 | } else if (c0_string && c1_const) { | 395 | 192 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 192 | *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 | 192 | block.replace_by_position(result, std::move(c_res)); | 406 | 192 | return Status::OK(); | 407 | 191 | } |
|
408 | | |
409 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
410 | 142 | const IColumn* c1) const { |
411 | 142 | bool c0_const = is_column_const(*c0); |
412 | 142 | bool c1_const = is_column_const(*c1); |
413 | | |
414 | 142 | DCHECK(!(c0_const && c1_const)); |
415 | | |
416 | 142 | auto c_res = ColumnUInt8::create(); |
417 | 142 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
418 | 142 | vec_res.resize(c0->size()); |
419 | | |
420 | 142 | if (c0_const) { |
421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
422 | 142 | } else if (c1_const) { |
423 | 133 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
424 | 133 | } else { |
425 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
426 | 9 | } |
427 | | |
428 | 142 | block.replace_by_position(result, std::move(c_res)); |
429 | 142 | } _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 | 52 | const IColumn* c1) const { | 411 | 52 | bool c0_const = is_column_const(*c0); | 412 | 52 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 52 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 52 | auto c_res = ColumnUInt8::create(); | 417 | 52 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 52 | vec_res.resize(c0->size()); | 419 | | | 420 | 52 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 52 | } else if (c1_const) { | 423 | 51 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 51 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 52 | block.replace_by_position(result, std::move(c_res)); | 429 | 52 | } |
_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 | 142 | const ColumnWithTypeAndName& c1) const { |
433 | 142 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
434 | 142 | return Status::OK(); |
435 | 142 | } _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 | 52 | const ColumnWithTypeAndName& c1) const { | 433 | 52 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 52 | return Status::OK(); | 435 | 52 | } |
_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 | 222 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 39 | 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 | 282k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 240k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 1.14k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 440 | 4.76k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 17.2k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 440 | 2.67k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 16.9k | 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 | 282k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
444 | 282k | return std::make_shared<DataTypeUInt8>(); |
445 | 282k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 240k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 240k | return std::make_shared<DataTypeUInt8>(); | 445 | 240k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 1.14k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 1.14k | return std::make_shared<DataTypeUInt8>(); | 445 | 1.14k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 4.76k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 4.76k | return std::make_shared<DataTypeUInt8>(); | 445 | 4.76k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 17.2k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 17.2k | return std::make_shared<DataTypeUInt8>(); | 445 | 17.2k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 2.67k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 2.67k | return std::make_shared<DataTypeUInt8>(); | 445 | 2.67k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 16.9k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 16.9k | return std::make_shared<DataTypeUInt8>(); | 445 | 16.9k | } |
|
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.76k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
453 | 1.76k | DCHECK(arguments.size() == 1); |
454 | 1.76k | DCHECK(data_type_with_names.size() == 1); |
455 | 1.76k | DCHECK(iterators.size() == 1); |
456 | 1.76k | auto* iter = iterators[0]; |
457 | 1.76k | auto data_type_with_name = data_type_with_names[0]; |
458 | 1.76k | if (iter == nullptr) { |
459 | 0 | return Status::OK(); |
460 | 0 | } |
461 | 1.76k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
462 | 446 | return Status::OK(); |
463 | 446 | } |
464 | 1.32k | segment_v2::InvertedIndexQueryType query_type; |
465 | 1.32k | std::string_view name_view(name); |
466 | 1.32k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
467 | 865 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
468 | 865 | } else if (name_view == NameLess::name) { |
469 | 112 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
470 | 344 | } else if (name_view == NameLessOrEquals::name) { |
471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
472 | 246 | } else if (name_view == NameGreater::name) { |
473 | 114 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
474 | 137 | } else if (name_view == NameGreaterOrEquals::name) { |
475 | 137 | 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.32k | if (segment_v2::is_range_query(query_type) && |
481 | 1.32k | 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.15k | Field param_value; |
486 | 1.15k | arguments[0].column->get(0, param_value); |
487 | 1.15k | if (param_value.is_null()) { |
488 | 1 | return Status::OK(); |
489 | 1 | } |
490 | 1.15k | auto param_type = arguments[0].type->get_primitive_type(); |
491 | 1.15k | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; |
492 | 1.15k | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( |
493 | 1.15k | param_type, ¶m_value, query_param)); |
494 | | |
495 | 1.15k | segment_v2::InvertedIndexParam param; |
496 | 1.15k | param.column_name = data_type_with_name.first; |
497 | 1.15k | param.column_type = data_type_with_name.second; |
498 | 1.15k | param.query_value = query_param->get_value(); |
499 | 1.15k | param.query_type = query_type; |
500 | 1.15k | param.num_rows = num_rows; |
501 | 1.15k | param.roaring = std::make_shared<roaring::Roaring>(); |
502 | 1.15k | param.analyzer_ctx = analyzer_ctx; |
503 | 1.15k | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
504 | 997 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
505 | 1.00k | if (iter->has_null()) { |
506 | 1.00k | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
507 | 1.00k | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
508 | 1.00k | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
509 | 1.00k | } |
510 | 997 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
511 | 997 | bitmap_result = result; |
512 | 997 | bitmap_result.mask_out_null(); |
513 | | |
514 | 997 | if (name_view == NameNotEquals::name) { |
515 | 63 | roaring::Roaring full_result; |
516 | 63 | full_result.addRange(0, num_rows); |
517 | 63 | bitmap_result.op_not(&full_result); |
518 | 63 | } |
519 | | |
520 | 997 | return Status::OK(); |
521 | 997 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 879 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 879 | DCHECK(arguments.size() == 1); | 454 | 879 | DCHECK(data_type_with_names.size() == 1); | 455 | 879 | DCHECK(iterators.size() == 1); | 456 | 879 | auto* iter = iterators[0]; | 457 | 879 | auto data_type_with_name = data_type_with_names[0]; | 458 | 879 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 879 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 88 | return Status::OK(); | 463 | 88 | } | 464 | 791 | segment_v2::InvertedIndexQueryType query_type; | 465 | 791 | std::string_view name_view(name); | 466 | 795 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 795 | 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 | 795 | if (segment_v2::is_range_query(query_type) && | 481 | 795 | 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 | 795 | Field param_value; | 486 | 795 | arguments[0].column->get(0, param_value); | 487 | 795 | if (param_value.is_null()) { | 488 | 1 | return Status::OK(); | 489 | 1 | } | 490 | 794 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 794 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 794 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 794 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 793 | segment_v2::InvertedIndexParam param; | 496 | 793 | param.column_name = data_type_with_name.first; | 497 | 793 | param.column_type = data_type_with_name.second; | 498 | 793 | param.query_value = query_param->get_value(); | 499 | 793 | param.query_type = query_type; | 500 | 793 | param.num_rows = num_rows; | 501 | 793 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 793 | param.analyzer_ctx = analyzer_ctx; | 503 | 793 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 746 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 748 | if (iter->has_null()) { | 506 | 748 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 748 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 748 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 748 | } | 510 | 746 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 746 | bitmap_result = result; | 512 | 746 | bitmap_result.mask_out_null(); | 513 | | | 514 | 746 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 746 | return Status::OK(); | 521 | 746 | } |
_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 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 70 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 70 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 70 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 70 | segment_v2::InvertedIndexParam param; | 496 | 70 | param.column_name = data_type_with_name.first; | 497 | 70 | param.column_type = data_type_with_name.second; | 498 | 70 | param.query_value = query_param->get_value(); | 499 | 70 | param.query_type = query_type; | 500 | 70 | param.num_rows = num_rows; | 501 | 70 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 70 | param.analyzer_ctx = analyzer_ctx; | 503 | 70 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 63 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 63 | if (iter->has_null()) { | 506 | 63 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 63 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 63 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 63 | } | 510 | 63 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 63 | bitmap_result = result; | 512 | 63 | bitmap_result.mask_out_null(); | 513 | | | 514 | 63 | if (name_view == NameNotEquals::name) { | 515 | 63 | roaring::Roaring full_result; | 516 | 63 | full_result.addRange(0, num_rows); | 517 | 63 | bitmap_result.op_not(&full_result); | 518 | 63 | } | 519 | | | 520 | 63 | return Status::OK(); | 521 | 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 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 86 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 86 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 86 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 86 | segment_v2::InvertedIndexParam param; | 496 | 86 | param.column_name = data_type_with_name.first; | 497 | 86 | param.column_type = data_type_with_name.second; | 498 | 86 | param.query_value = query_param->get_value(); | 499 | 86 | param.query_type = query_type; | 500 | 86 | param.num_rows = num_rows; | 501 | 86 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 86 | param.analyzer_ctx = analyzer_ctx; | 503 | 86 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 67 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 67 | if (iter->has_null()) { | 506 | 66 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 66 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 66 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 66 | } | 510 | 67 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 67 | bitmap_result = result; | 512 | 67 | bitmap_result.mask_out_null(); | 513 | | | 514 | 67 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 67 | return Status::OK(); | 521 | 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 | 251 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 251 | DCHECK(arguments.size() == 1); | 454 | 251 | DCHECK(data_type_with_names.size() == 1); | 455 | 251 | DCHECK(iterators.size() == 1); | 456 | 251 | auto* iter = iterators[0]; | 457 | 251 | auto data_type_with_name = data_type_with_names[0]; | 458 | 251 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 251 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 114 | return Status::OK(); | 463 | 114 | } | 464 | 137 | segment_v2::InvertedIndexQueryType query_type; | 465 | 137 | std::string_view name_view(name); | 466 | 138 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 137 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 137 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 137 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 137 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 137 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 137 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 137 | if (segment_v2::is_range_query(query_type) && | 481 | 137 | 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 | 78 | Field param_value; | 486 | 78 | arguments[0].column->get(0, param_value); | 487 | 78 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 78 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 78 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 78 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 78 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 78 | segment_v2::InvertedIndexParam param; | 496 | 78 | param.column_name = data_type_with_name.first; | 497 | 78 | param.column_type = data_type_with_name.second; | 498 | 78 | param.query_value = query_param->get_value(); | 499 | 78 | param.query_type = query_type; | 500 | 78 | param.num_rows = num_rows; | 501 | 78 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 78 | param.analyzer_ctx = analyzer_ctx; | 503 | 78 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 37 | if (iter->has_null()) { | 506 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 37 | } | 510 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 37 | bitmap_result = result; | 512 | 37 | bitmap_result.mask_out_null(); | 513 | | | 514 | 37 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 37 | return Status::OK(); | 521 | 37 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 172 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 172 | DCHECK(arguments.size() == 1); | 454 | 172 | DCHECK(data_type_with_names.size() == 1); | 455 | 172 | DCHECK(iterators.size() == 1); | 456 | 172 | auto* iter = iterators[0]; | 457 | 172 | auto data_type_with_name = data_type_with_names[0]; | 458 | 172 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 172 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 61 | return Status::OK(); | 463 | 61 | } | 464 | 111 | segment_v2::InvertedIndexQueryType query_type; | 465 | 111 | std::string_view name_view(name); | 466 | 112 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 112 | } else if (name_view == NameLess::name) { | 469 | 112 | 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 | 112 | if (segment_v2::is_range_query(query_type) && | 481 | 112 | 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 | 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 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 86 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 86 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 86 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 86 | segment_v2::InvertedIndexParam param; | 496 | 86 | param.column_name = data_type_with_name.first; | 497 | 86 | param.column_type = data_type_with_name.second; | 498 | 86 | param.query_value = query_param->get_value(); | 499 | 86 | param.query_type = query_type; | 500 | 86 | param.num_rows = num_rows; | 501 | 86 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 86 | param.analyzer_ctx = analyzer_ctx; | 503 | 86 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 65 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 67 | if (iter->has_null()) { | 506 | 67 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 67 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 67 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 67 | } | 510 | 65 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 65 | bitmap_result = result; | 512 | 65 | bitmap_result.mask_out_null(); | 513 | | | 514 | 65 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 65 | return Status::OK(); | 521 | 65 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 211 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 211 | DCHECK(arguments.size() == 1); | 454 | 211 | DCHECK(data_type_with_names.size() == 1); | 455 | 211 | DCHECK(iterators.size() == 1); | 456 | 211 | auto* iter = iterators[0]; | 457 | 211 | auto data_type_with_name = data_type_with_names[0]; | 458 | 211 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 211 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 113 | return Status::OK(); | 463 | 113 | } | 464 | 98 | segment_v2::InvertedIndexQueryType query_type; | 465 | 98 | 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 | 98 | } 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 | 98 | } 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 | 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 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 40 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 40 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 40 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 40 | segment_v2::InvertedIndexParam param; | 496 | 40 | param.column_name = data_type_with_name.first; | 497 | 40 | param.column_type = data_type_with_name.second; | 498 | 40 | param.query_value = query_param->get_value(); | 499 | 40 | param.query_type = query_type; | 500 | 40 | param.num_rows = num_rows; | 501 | 40 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 40 | param.analyzer_ctx = analyzer_ctx; | 503 | 40 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 19 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 19 | if (iter->has_null()) { | 506 | 19 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 19 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 19 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 19 | } | 510 | 19 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 19 | bitmap_result = result; | 512 | 19 | bitmap_result.mask_out_null(); | 513 | | | 514 | 19 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 19 | return Status::OK(); | 521 | 19 | } |
|
522 | | |
523 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
524 | 43.4k | uint32_t result, size_t input_rows_count) const override { |
525 | 43.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
526 | 43.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
527 | | |
528 | 43.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
529 | 43.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
530 | 43.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
531 | 43.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
532 | | |
533 | 43.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
534 | 43.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
535 | | |
536 | | /// The case when arguments are the same (tautological comparison). Return constant. |
537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
539 | 43.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
540 | 43.4k | col_left_untyped == col_right_untyped) { |
541 | | /// Always true: =, <=, >= |
542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
545 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
546 | 0 | block.get_by_position(result).column = |
547 | 0 | DataTypeUInt8() |
548 | 0 | .create_column_const(input_rows_count, |
549 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
550 | 0 | ->convert_to_full_column_if_const(); |
551 | 0 | return Status::OK(); |
552 | 0 | } else { |
553 | 0 | block.get_by_position(result).column = |
554 | 0 | DataTypeUInt8() |
555 | 0 | .create_column_const(input_rows_count, |
556 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
557 | 0 | ->convert_to_full_column_if_const(); |
558 | 0 | return Status::OK(); |
559 | 0 | } |
560 | 0 | } |
561 | | |
562 | 71.6k | auto can_compare = [](PrimitiveType t) -> bool { |
563 | 71.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
564 | 71.6k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 28.3k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 28.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 28.3k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 2.67k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 2.67k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 2.67k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 20.0k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 20.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 20.0k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 4.13k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 4.13k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 4.13k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 12.2k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 12.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 12.2k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 4.22k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 4.22k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 4.22k | }; |
|
565 | | |
566 | 43.4k | if (can_compare(left_type->get_primitive_type()) && |
567 | 43.4k | can_compare(right_type->get_primitive_type())) { |
568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
569 | 28.2k | if (!left_type->equals_ignore_precision(*right_type)) { |
570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
571 | 0 | get_name(), left_type->get_name(), |
572 | 0 | right_type->get_name()); |
573 | 0 | } |
574 | 28.2k | } |
575 | | |
576 | 43.4k | auto compare_type = left_type->get_primitive_type(); |
577 | 43.4k | switch (compare_type) { |
578 | 217 | case TYPE_BOOLEAN: |
579 | 217 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
580 | 4.75k | case TYPE_DATEV2: |
581 | 4.75k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
582 | 951 | case TYPE_DATETIMEV2: |
583 | 951 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
584 | 16 | case TYPE_TIMESTAMPTZ: |
585 | 16 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
586 | 5.23k | case TYPE_TINYINT: |
587 | 5.23k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
588 | 1.54k | case TYPE_SMALLINT: |
589 | 1.54k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
590 | 8.85k | case TYPE_INT: |
591 | 8.85k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
592 | 3.85k | case TYPE_BIGINT: |
593 | 3.85k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
594 | 612 | case TYPE_LARGEINT: |
595 | 612 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
596 | 57 | case TYPE_IPV4: |
597 | 57 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
598 | 37 | case TYPE_IPV6: |
599 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
600 | 541 | case TYPE_FLOAT: |
601 | 541 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
602 | 1.48k | case TYPE_DOUBLE: |
603 | 1.48k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
604 | 0 | case TYPE_TIME: |
605 | 4 | case TYPE_TIMEV2: |
606 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
607 | 0 | case TYPE_DECIMALV2: |
608 | 340 | case TYPE_DECIMAL32: |
609 | 910 | case TYPE_DECIMAL64: |
610 | 2.94k | case TYPE_DECIMAL128I: |
611 | 3.04k | case TYPE_DECIMAL256: |
612 | 3.04k | return execute_decimal(block, result, col_with_type_and_name_left, |
613 | 3.04k | col_with_type_and_name_right); |
614 | 708 | case TYPE_CHAR: |
615 | 6.40k | case TYPE_VARCHAR: |
616 | 12.1k | case TYPE_STRING: |
617 | 12.1k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
618 | 142 | default: |
619 | 142 | return execute_generic(block, result, col_with_type_and_name_left, |
620 | 142 | col_with_type_and_name_right); |
621 | 43.4k | } |
622 | 0 | return Status::OK(); |
623 | 43.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 20.1k | uint32_t result, size_t input_rows_count) const override { | 525 | 20.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 20.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 20.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 20.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 20.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 20.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 20.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 20.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 20.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 20.1k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | 0 | block.get_by_position(result).column = | 547 | 0 | DataTypeUInt8() | 548 | 0 | .create_column_const(input_rows_count, | 549 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | 0 | ->convert_to_full_column_if_const(); | 551 | 0 | return Status::OK(); | 552 | | } else { | 553 | | block.get_by_position(result).column = | 554 | | DataTypeUInt8() | 555 | | .create_column_const(input_rows_count, | 556 | | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | | ->convert_to_full_column_if_const(); | 558 | | return Status::OK(); | 559 | | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 20.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 20.1k | }; | 565 | | | 566 | 20.1k | if (can_compare(left_type->get_primitive_type()) && | 567 | 20.1k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 8.16k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 8.16k | } | 575 | | | 576 | 20.1k | auto compare_type = left_type->get_primitive_type(); | 577 | 20.1k | switch (compare_type) { | 578 | 97 | case TYPE_BOOLEAN: | 579 | 97 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 681 | case TYPE_DATEV2: | 581 | 681 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 451 | case TYPE_DATETIMEV2: | 583 | 451 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 3 | case TYPE_TIMESTAMPTZ: | 585 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 3.44k | case TYPE_TINYINT: | 587 | 3.44k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 281 | case TYPE_SMALLINT: | 589 | 281 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 1.69k | case TYPE_INT: | 591 | 1.69k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 1.02k | case TYPE_BIGINT: | 593 | 1.02k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 96 | case TYPE_LARGEINT: | 595 | 96 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 18 | case TYPE_IPV4: | 597 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 19 | case TYPE_IPV6: | 599 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 96 | case TYPE_FLOAT: | 601 | 96 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 245 | case TYPE_DOUBLE: | 603 | 245 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 4 | case TYPE_TIMEV2: | 606 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 135 | case TYPE_DECIMAL32: | 609 | 304 | case TYPE_DECIMAL64: | 610 | 1.12k | case TYPE_DECIMAL128I: | 611 | 1.15k | case TYPE_DECIMAL256: | 612 | 1.15k | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 1.15k | col_with_type_and_name_right); | 614 | 460 | case TYPE_CHAR: | 615 | 5.63k | case TYPE_VARCHAR: | 616 | 10.8k | case TYPE_STRING: | 617 | 10.8k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 17 | default: | 619 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 17 | col_with_type_and_name_right); | 621 | 20.1k | } | 622 | 0 | return Status::OK(); | 623 | 20.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 1.47k | uint32_t result, size_t input_rows_count) const override { | 525 | 1.47k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 1.47k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 1.47k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 1.47k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 1.47k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 1.47k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 1.47k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 1.47k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 1.47k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 1.47k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | | block.get_by_position(result).column = | 547 | | DataTypeUInt8() | 548 | | .create_column_const(input_rows_count, | 549 | | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | | ->convert_to_full_column_if_const(); | 551 | | return Status::OK(); | 552 | 0 | } else { | 553 | 0 | block.get_by_position(result).column = | 554 | 0 | DataTypeUInt8() | 555 | 0 | .create_column_const(input_rows_count, | 556 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | 0 | ->convert_to_full_column_if_const(); | 558 | 0 | return Status::OK(); | 559 | 0 | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 1.47k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 1.47k | }; | 565 | | | 566 | 1.47k | if (can_compare(left_type->get_primitive_type()) && | 567 | 1.47k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 1.20k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 1.20k | } | 575 | | | 576 | 1.47k | auto compare_type = left_type->get_primitive_type(); | 577 | 1.47k | switch (compare_type) { | 578 | 0 | case TYPE_BOOLEAN: | 579 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 41 | case TYPE_DATEV2: | 581 | 41 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 0 | case TYPE_DATETIMEV2: | 583 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 0 | case TYPE_TIMESTAMPTZ: | 585 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 84 | case TYPE_TINYINT: | 587 | 84 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 0 | case TYPE_SMALLINT: | 589 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 495 | case TYPE_INT: | 591 | 495 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 478 | case TYPE_BIGINT: | 593 | 478 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 0 | case TYPE_LARGEINT: | 595 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 0 | case TYPE_IPV4: | 597 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 0 | case TYPE_IPV6: | 599 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 48 | case TYPE_FLOAT: | 601 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 60 | case TYPE_DOUBLE: | 603 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 0 | case TYPE_DECIMAL32: | 609 | 60 | case TYPE_DECIMAL64: | 610 | 88 | case TYPE_DECIMAL128I: | 611 | 118 | case TYPE_DECIMAL256: | 612 | 118 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 118 | col_with_type_and_name_right); | 614 | 1 | case TYPE_CHAR: | 615 | 32 | case TYPE_VARCHAR: | 616 | 137 | case TYPE_STRING: | 617 | 137 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 8 | default: | 619 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 8 | col_with_type_and_name_right); | 621 | 1.47k | } | 622 | 0 | return Status::OK(); | 623 | 1.47k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 10.5k | uint32_t result, size_t input_rows_count) const override { | 525 | 10.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 10.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 10.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 10.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 10.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 10.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 10.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 10.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 10.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 10.5k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | | block.get_by_position(result).column = | 547 | | DataTypeUInt8() | 548 | | .create_column_const(input_rows_count, | 549 | | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | | ->convert_to_full_column_if_const(); | 551 | | return Status::OK(); | 552 | 0 | } else { | 553 | 0 | block.get_by_position(result).column = | 554 | 0 | DataTypeUInt8() | 555 | 0 | .create_column_const(input_rows_count, | 556 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | 0 | ->convert_to_full_column_if_const(); | 558 | 0 | return Status::OK(); | 559 | 0 | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 10.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 10.5k | }; | 565 | | | 566 | 10.5k | if (can_compare(left_type->get_primitive_type()) && | 567 | 10.5k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 9.48k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 9.48k | } | 575 | | | 576 | 10.5k | auto compare_type = left_type->get_primitive_type(); | 577 | 10.5k | switch (compare_type) { | 578 | 0 | case TYPE_BOOLEAN: | 579 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 933 | case TYPE_DATEV2: | 581 | 933 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 2 | case TYPE_DATETIMEV2: | 583 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 3 | case TYPE_TIMESTAMPTZ: | 585 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 771 | case TYPE_TINYINT: | 587 | 771 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 1.00k | case TYPE_SMALLINT: | 589 | 1.00k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 4.64k | case TYPE_INT: | 591 | 4.64k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 1.14k | case TYPE_BIGINT: | 593 | 1.14k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 223 | case TYPE_LARGEINT: | 595 | 223 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 2 | case TYPE_IPV4: | 597 | 2 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 1 | case TYPE_IPV6: | 599 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 220 | case TYPE_FLOAT: | 601 | 220 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 543 | case TYPE_DOUBLE: | 603 | 543 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 8 | case TYPE_DECIMAL32: | 609 | 74 | case TYPE_DECIMAL64: | 610 | 891 | case TYPE_DECIMAL128I: | 611 | 893 | case TYPE_DECIMAL256: | 612 | 893 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 893 | col_with_type_and_name_right); | 614 | 21 | case TYPE_CHAR: | 615 | 83 | case TYPE_VARCHAR: | 616 | 189 | case TYPE_STRING: | 617 | 189 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 9 | default: | 619 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 9 | col_with_type_and_name_right); | 621 | 10.5k | } | 622 | 0 | return Status::OK(); | 623 | 10.5k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 2.25k | uint32_t result, size_t input_rows_count) const override { | 525 | 2.25k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 2.25k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 2.25k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 2.25k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 2.25k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 2.25k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 2.25k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 2.25k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 2.25k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 2.25k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | 0 | block.get_by_position(result).column = | 547 | 0 | DataTypeUInt8() | 548 | 0 | .create_column_const(input_rows_count, | 549 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | 0 | ->convert_to_full_column_if_const(); | 551 | 0 | return Status::OK(); | 552 | | } else { | 553 | | block.get_by_position(result).column = | 554 | | DataTypeUInt8() | 555 | | .create_column_const(input_rows_count, | 556 | | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | | ->convert_to_full_column_if_const(); | 558 | | return Status::OK(); | 559 | | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 2.25k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 2.25k | }; | 565 | | | 566 | 2.25k | if (can_compare(left_type->get_primitive_type()) && | 567 | 2.25k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 1.87k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 1.87k | } | 575 | | | 576 | 2.25k | auto compare_type = left_type->get_primitive_type(); | 577 | 2.25k | switch (compare_type) { | 578 | 22 | case TYPE_BOOLEAN: | 579 | 22 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 478 | case TYPE_DATEV2: | 581 | 478 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 152 | case TYPE_DATETIMEV2: | 583 | 152 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 3 | case TYPE_TIMESTAMPTZ: | 585 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 40 | case TYPE_TINYINT: | 587 | 40 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 66 | case TYPE_SMALLINT: | 589 | 66 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 624 | case TYPE_INT: | 591 | 624 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 169 | case TYPE_BIGINT: | 593 | 169 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 39 | case TYPE_LARGEINT: | 595 | 39 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 11 | case TYPE_IPV4: | 597 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 1 | case TYPE_IPV6: | 599 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 24 | case TYPE_FLOAT: | 601 | 24 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 202 | case TYPE_DOUBLE: | 603 | 202 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 4 | case TYPE_DECIMAL32: | 609 | 33 | case TYPE_DECIMAL64: | 610 | 100 | case TYPE_DECIMAL128I: | 611 | 121 | case TYPE_DECIMAL256: | 612 | 121 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 121 | col_with_type_and_name_right); | 614 | 29 | case TYPE_CHAR: | 615 | 184 | case TYPE_VARCHAR: | 616 | 252 | case TYPE_STRING: | 617 | 252 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 52 | default: | 619 | 52 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 52 | col_with_type_and_name_right); | 621 | 2.25k | } | 622 | 0 | return Status::OK(); | 623 | 2.25k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 6.68k | uint32_t result, size_t input_rows_count) const override { | 525 | 6.68k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 6.68k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 6.68k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 6.68k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 6.68k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 6.68k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 6.68k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 6.68k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 6.68k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 6.68k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | | block.get_by_position(result).column = | 547 | | DataTypeUInt8() | 548 | | .create_column_const(input_rows_count, | 549 | | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | | ->convert_to_full_column_if_const(); | 551 | | return Status::OK(); | 552 | 0 | } else { | 553 | 0 | block.get_by_position(result).column = | 554 | 0 | DataTypeUInt8() | 555 | 0 | .create_column_const(input_rows_count, | 556 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | 0 | ->convert_to_full_column_if_const(); | 558 | 0 | return Status::OK(); | 559 | 0 | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 6.68k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 6.68k | }; | 565 | | | 566 | 6.68k | if (can_compare(left_type->get_primitive_type()) && | 567 | 6.68k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 5.53k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 5.53k | } | 575 | | | 576 | 6.68k | auto compare_type = left_type->get_primitive_type(); | 577 | 6.68k | switch (compare_type) { | 578 | 78 | case TYPE_BOOLEAN: | 579 | 78 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 2.03k | case TYPE_DATEV2: | 581 | 2.03k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 302 | case TYPE_DATETIMEV2: | 583 | 302 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 4 | case TYPE_TIMESTAMPTZ: | 585 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 858 | case TYPE_TINYINT: | 587 | 858 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 122 | case TYPE_SMALLINT: | 589 | 122 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 711 | case TYPE_INT: | 591 | 711 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 730 | case TYPE_BIGINT: | 593 | 730 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 221 | case TYPE_LARGEINT: | 595 | 221 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 16 | case TYPE_IPV4: | 597 | 16 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 16 | case TYPE_IPV6: | 599 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 133 | case TYPE_FLOAT: | 601 | 133 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 312 | case TYPE_DOUBLE: | 603 | 312 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 186 | case TYPE_DECIMAL32: | 609 | 401 | case TYPE_DECIMAL64: | 610 | 638 | case TYPE_DECIMAL128I: | 611 | 639 | case TYPE_DECIMAL256: | 612 | 639 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 639 | col_with_type_and_name_right); | 614 | 171 | case TYPE_CHAR: | 615 | 344 | case TYPE_VARCHAR: | 616 | 495 | case TYPE_STRING: | 617 | 495 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 11 | default: | 619 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 11 | col_with_type_and_name_right); | 621 | 6.68k | } | 622 | 0 | return Status::OK(); | 623 | 6.68k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 2.26k | uint32_t result, size_t input_rows_count) const override { | 525 | 2.26k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 2.26k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 2.26k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 2.26k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 2.26k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 2.26k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 2.26k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 2.26k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 2.26k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 2.26k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | 0 | block.get_by_position(result).column = | 547 | 0 | DataTypeUInt8() | 548 | 0 | .create_column_const(input_rows_count, | 549 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | 0 | ->convert_to_full_column_if_const(); | 551 | 0 | return Status::OK(); | 552 | | } else { | 553 | | block.get_by_position(result).column = | 554 | | DataTypeUInt8() | 555 | | .create_column_const(input_rows_count, | 556 | | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | | ->convert_to_full_column_if_const(); | 558 | | return Status::OK(); | 559 | | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 2.26k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 2.26k | }; | 565 | | | 566 | 2.26k | if (can_compare(left_type->get_primitive_type()) && | 567 | 2.26k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 1.95k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 1.95k | } | 575 | | | 576 | 2.26k | auto compare_type = left_type->get_primitive_type(); | 577 | 2.26k | switch (compare_type) { | 578 | 20 | case TYPE_BOOLEAN: | 579 | 20 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 582 | case TYPE_DATEV2: | 581 | 582 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 44 | case TYPE_DATETIMEV2: | 583 | 44 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 3 | case TYPE_TIMESTAMPTZ: | 585 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 35 | case TYPE_TINYINT: | 587 | 35 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 72 | case TYPE_SMALLINT: | 589 | 72 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 678 | case TYPE_INT: | 591 | 678 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 298 | case TYPE_BIGINT: | 593 | 298 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 33 | case TYPE_LARGEINT: | 595 | 33 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 10 | case TYPE_IPV4: | 597 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 0 | case TYPE_IPV6: | 599 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 20 | case TYPE_FLOAT: | 601 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 118 | case TYPE_DOUBLE: | 603 | 118 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 7 | case TYPE_DECIMAL32: | 609 | 38 | case TYPE_DECIMAL64: | 610 | 100 | case TYPE_DECIMAL128I: | 611 | 116 | case TYPE_DECIMAL256: | 612 | 116 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 116 | col_with_type_and_name_right); | 614 | 26 | case TYPE_CHAR: | 615 | 130 | case TYPE_VARCHAR: | 616 | 191 | case TYPE_STRING: | 617 | 191 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 45 | default: | 619 | 45 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 45 | col_with_type_and_name_right); | 621 | 2.26k | } | 622 | 0 | return Status::OK(); | 623 | 2.26k | } |
|
624 | | }; |
625 | | |
626 | | #include "common/compile_check_end.h" |
627 | | } // namespace doris |