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.5k | PaddedPODArray<UInt8>& c) { |
66 | 12.5k | size_t size = a.size(); |
67 | 12.5k | const A* __restrict a_pos = a.data(); |
68 | 12.5k | const B* __restrict b_pos = b.data(); |
69 | 12.5k | UInt8* __restrict c_pos = c.data(); |
70 | 12.5k | const A* __restrict a_end = a_pos + size; |
71 | | |
72 | 15.8M | while (a_pos < a_end) { |
73 | 15.8M | *c_pos = Op::apply(*a_pos, *b_pos); |
74 | 15.8M | ++a_pos; |
75 | 15.8M | ++b_pos; |
76 | 15.8M | ++c_pos; |
77 | 15.8M | } |
78 | 12.5k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 64 | PaddedPODArray<UInt8>& c) { | 66 | 64 | size_t size = a.size(); | 67 | 64 | const A* __restrict a_pos = a.data(); | 68 | 64 | const B* __restrict b_pos = b.data(); | 69 | 64 | UInt8* __restrict c_pos = c.data(); | 70 | 64 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 128 | 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 | 64 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 363 | PaddedPODArray<UInt8>& c) { | 66 | 363 | size_t size = a.size(); | 67 | 363 | const A* __restrict a_pos = a.data(); | 68 | 363 | const B* __restrict b_pos = b.data(); | 69 | 363 | UInt8* __restrict c_pos = c.data(); | 70 | 363 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.58k | while (a_pos < a_end) { | 73 | 1.21k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.21k | ++a_pos; | 75 | 1.21k | ++b_pos; | 76 | 1.21k | ++c_pos; | 77 | 1.21k | } | 78 | 363 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 301 | PaddedPODArray<UInt8>& c) { | 66 | 301 | size_t size = a.size(); | 67 | 301 | const A* __restrict a_pos = a.data(); | 68 | 301 | const B* __restrict b_pos = b.data(); | 69 | 301 | UInt8* __restrict c_pos = c.data(); | 70 | 301 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 623 | while (a_pos < a_end) { | 73 | 322 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 322 | ++a_pos; | 75 | 322 | ++b_pos; | 76 | 322 | ++c_pos; | 77 | 322 | } | 78 | 301 | } |
_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 | 647 | PaddedPODArray<UInt8>& c) { | 66 | 647 | size_t size = a.size(); | 67 | 647 | const A* __restrict a_pos = a.data(); | 68 | 647 | const B* __restrict b_pos = b.data(); | 69 | 647 | UInt8* __restrict c_pos = c.data(); | 70 | 647 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.45k | while (a_pos < a_end) { | 73 | 4.81k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4.81k | ++a_pos; | 75 | 4.81k | ++b_pos; | 76 | 4.81k | ++c_pos; | 77 | 4.81k | } | 78 | 647 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 118 | PaddedPODArray<UInt8>& c) { | 66 | 118 | size_t size = a.size(); | 67 | 118 | const A* __restrict a_pos = a.data(); | 68 | 118 | const B* __restrict b_pos = b.data(); | 69 | 118 | UInt8* __restrict c_pos = c.data(); | 70 | 118 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 551 | while (a_pos < a_end) { | 73 | 433 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 433 | ++a_pos; | 75 | 433 | ++b_pos; | 76 | 433 | ++c_pos; | 77 | 433 | } | 78 | 118 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 270 | PaddedPODArray<UInt8>& c) { | 66 | 270 | size_t size = a.size(); | 67 | 270 | const A* __restrict a_pos = a.data(); | 68 | 270 | const B* __restrict b_pos = b.data(); | 69 | 270 | UInt8* __restrict c_pos = c.data(); | 70 | 270 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.94k | while (a_pos < a_end) { | 73 | 1.67k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.67k | ++a_pos; | 75 | 1.67k | ++b_pos; | 76 | 1.67k | ++c_pos; | 77 | 1.67k | } | 78 | 270 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_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 | 11.7k | while (a_pos < a_end) { | 73 | 11.5k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 11.5k | ++a_pos; | 75 | 11.5k | ++b_pos; | 76 | 11.5k | ++c_pos; | 77 | 11.5k | } | 78 | 198 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 95 | PaddedPODArray<UInt8>& c) { | 66 | 95 | size_t size = a.size(); | 67 | 95 | const A* __restrict a_pos = a.data(); | 68 | 95 | const B* __restrict b_pos = b.data(); | 69 | 95 | UInt8* __restrict c_pos = c.data(); | 70 | 95 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 214 | while (a_pos < a_end) { | 73 | 119 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 119 | ++a_pos; | 75 | 119 | ++b_pos; | 76 | 119 | ++c_pos; | 77 | 119 | } | 78 | 95 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_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_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 24 | PaddedPODArray<UInt8>& c) { | 66 | 24 | size_t size = a.size(); | 67 | 24 | const A* __restrict a_pos = a.data(); | 68 | 24 | const B* __restrict b_pos = b.data(); | 69 | 24 | UInt8* __restrict c_pos = c.data(); | 70 | 24 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 48 | while (a_pos < a_end) { | 73 | 24 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 24 | ++a_pos; | 75 | 24 | ++b_pos; | 76 | 24 | ++c_pos; | 77 | 24 | } | 78 | 24 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 109 | PaddedPODArray<UInt8>& c) { | 66 | 109 | size_t size = a.size(); | 67 | 109 | const A* __restrict a_pos = a.data(); | 68 | 109 | const B* __restrict b_pos = b.data(); | 69 | 109 | UInt8* __restrict c_pos = c.data(); | 70 | 109 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 237 | while (a_pos < a_end) { | 73 | 128 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 128 | ++a_pos; | 75 | 128 | ++b_pos; | 76 | 128 | ++c_pos; | 77 | 128 | } | 78 | 109 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 115 | PaddedPODArray<UInt8>& c) { | 66 | 115 | size_t size = a.size(); | 67 | 115 | const A* __restrict a_pos = a.data(); | 68 | 115 | const B* __restrict b_pos = b.data(); | 69 | 115 | UInt8* __restrict c_pos = c.data(); | 70 | 115 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 251 | while (a_pos < a_end) { | 73 | 136 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 136 | ++a_pos; | 75 | 136 | ++b_pos; | 76 | 136 | ++c_pos; | 77 | 136 | } | 78 | 115 | } |
_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 | 64 | PaddedPODArray<UInt8>& c) { | 66 | 64 | size_t size = a.size(); | 67 | 64 | const A* __restrict a_pos = a.data(); | 68 | 64 | const B* __restrict b_pos = b.data(); | 69 | 64 | UInt8* __restrict c_pos = c.data(); | 70 | 64 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 288 | while (a_pos < a_end) { | 73 | 224 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 224 | ++a_pos; | 75 | 224 | ++b_pos; | 76 | 224 | ++c_pos; | 77 | 224 | } | 78 | 64 | } |
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 | 481 | PaddedPODArray<UInt8>& c) { | 66 | 481 | size_t size = a.size(); | 67 | 481 | const A* __restrict a_pos = a.data(); | 68 | 481 | const B* __restrict b_pos = b.data(); | 69 | 481 | UInt8* __restrict c_pos = c.data(); | 70 | 481 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 364k | while (a_pos < a_end) { | 73 | 363k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 363k | ++a_pos; | 75 | 363k | ++b_pos; | 76 | 363k | ++c_pos; | 77 | 363k | } | 78 | 481 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 404 | PaddedPODArray<UInt8>& c) { | 66 | 404 | size_t size = a.size(); | 67 | 404 | const A* __restrict a_pos = a.data(); | 68 | 404 | const B* __restrict b_pos = b.data(); | 69 | 404 | UInt8* __restrict c_pos = c.data(); | 70 | 404 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 31.9k | while (a_pos < a_end) { | 73 | 31.5k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 31.5k | ++a_pos; | 75 | 31.5k | ++b_pos; | 76 | 31.5k | ++c_pos; | 77 | 31.5k | } | 78 | 404 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1.09k | PaddedPODArray<UInt8>& c) { | 66 | 1.09k | size_t size = a.size(); | 67 | 1.09k | const A* __restrict a_pos = a.data(); | 68 | 1.09k | const B* __restrict b_pos = b.data(); | 69 | 1.09k | UInt8* __restrict c_pos = c.data(); | 70 | 1.09k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 3.81M | while (a_pos < a_end) { | 73 | 3.81M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 3.81M | ++a_pos; | 75 | 3.81M | ++b_pos; | 76 | 3.81M | ++c_pos; | 77 | 3.81M | } | 78 | 1.09k | } |
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 | 257 | PaddedPODArray<UInt8>& c) { | 66 | 257 | size_t size = a.size(); | 67 | 257 | const A* __restrict a_pos = a.data(); | 68 | 257 | const B* __restrict b_pos = b.data(); | 69 | 257 | UInt8* __restrict c_pos = c.data(); | 70 | 257 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2.69k | while (a_pos < a_end) { | 73 | 2.43k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 2.43k | ++a_pos; | 75 | 2.43k | ++b_pos; | 76 | 2.43k | ++c_pos; | 77 | 2.43k | } | 78 | 257 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 466 | PaddedPODArray<UInt8>& c) { | 66 | 466 | size_t size = a.size(); | 67 | 466 | const A* __restrict a_pos = a.data(); | 68 | 466 | const B* __restrict b_pos = b.data(); | 69 | 466 | UInt8* __restrict c_pos = c.data(); | 70 | 466 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 4.73k | while (a_pos < a_end) { | 73 | 4.26k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4.26k | ++a_pos; | 75 | 4.26k | ++b_pos; | 76 | 4.26k | ++c_pos; | 77 | 4.26k | } | 78 | 466 | } |
_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 | 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 | 1.63k | while (a_pos < a_end) { | 73 | 1.54k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.54k | ++a_pos; | 75 | 1.54k | ++b_pos; | 76 | 1.54k | ++c_pos; | 77 | 1.54k | } | 78 | 96 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 41 | PaddedPODArray<UInt8>& c) { | 66 | 41 | size_t size = a.size(); | 67 | 41 | const A* __restrict a_pos = a.data(); | 68 | 41 | const B* __restrict b_pos = b.data(); | 69 | 41 | UInt8* __restrict c_pos = c.data(); | 70 | 41 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 195 | while (a_pos < a_end) { | 73 | 154 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 154 | ++a_pos; | 75 | 154 | ++b_pos; | 76 | 154 | ++c_pos; | 77 | 154 | } | 78 | 41 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 31 | PaddedPODArray<UInt8>& c) { | 66 | 31 | size_t size = a.size(); | 67 | 31 | const A* __restrict a_pos = a.data(); | 68 | 31 | const B* __restrict b_pos = b.data(); | 69 | 31 | UInt8* __restrict c_pos = c.data(); | 70 | 31 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 129 | 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 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 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 | 10 | PaddedPODArray<UInt8>& c) { | 66 | 10 | size_t size = a.size(); | 67 | 10 | const A* __restrict a_pos = a.data(); | 68 | 10 | const B* __restrict b_pos = b.data(); | 69 | 10 | UInt8* __restrict c_pos = c.data(); | 70 | 10 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 96 | while (a_pos < a_end) { | 73 | 86 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 86 | ++a_pos; | 75 | 86 | ++b_pos; | 76 | 86 | ++c_pos; | 77 | 86 | } | 78 | 10 | } |
_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 | 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 | 26 | while (a_pos < a_end) { | 73 | 19 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 19 | ++a_pos; | 75 | 19 | ++b_pos; | 76 | 19 | ++c_pos; | 77 | 19 | } | 78 | 7 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 17 | PaddedPODArray<UInt8>& c) { | 66 | 17 | size_t size = a.size(); | 67 | 17 | const A* __restrict a_pos = a.data(); | 68 | 17 | const B* __restrict b_pos = b.data(); | 69 | 17 | UInt8* __restrict c_pos = c.data(); | 70 | 17 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 126 | 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 | 17 | } |
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 | 55 | PaddedPODArray<UInt8>& c) { | 66 | 55 | size_t size = a.size(); | 67 | 55 | const A* __restrict a_pos = a.data(); | 68 | 55 | const B* __restrict b_pos = b.data(); | 69 | 55 | UInt8* __restrict c_pos = c.data(); | 70 | 55 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 161 | 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 | 55 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 70 | PaddedPODArray<UInt8>& c) { | 66 | 70 | size_t size = a.size(); | 67 | 70 | const A* __restrict a_pos = a.data(); | 68 | 70 | const B* __restrict b_pos = b.data(); | 69 | 70 | UInt8* __restrict c_pos = c.data(); | 70 | 70 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 140 | while (a_pos < a_end) { | 73 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 70 | ++a_pos; | 75 | 70 | ++b_pos; | 76 | 70 | ++c_pos; | 77 | 70 | } | 78 | 70 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1.66k | PaddedPODArray<UInt8>& c) { | 66 | 1.66k | size_t size = a.size(); | 67 | 1.66k | const A* __restrict a_pos = a.data(); | 68 | 1.66k | const B* __restrict b_pos = b.data(); | 69 | 1.66k | UInt8* __restrict c_pos = c.data(); | 70 | 1.66k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.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.66k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 243 | PaddedPODArray<UInt8>& c) { | 66 | 243 | size_t size = a.size(); | 67 | 243 | const A* __restrict a_pos = a.data(); | 68 | 243 | const B* __restrict b_pos = b.data(); | 69 | 243 | UInt8* __restrict c_pos = c.data(); | 70 | 243 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 486 | while (a_pos < a_end) { | 73 | 243 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 243 | ++a_pos; | 75 | 243 | ++b_pos; | 76 | 243 | ++c_pos; | 77 | 243 | } | 78 | 243 | } |
_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 | 562 | PaddedPODArray<UInt8>& c) { | 66 | 562 | size_t size = a.size(); | 67 | 562 | const A* __restrict a_pos = a.data(); | 68 | 562 | const B* __restrict b_pos = b.data(); | 69 | 562 | UInt8* __restrict c_pos = c.data(); | 70 | 562 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 4.81k | while (a_pos < a_end) { | 73 | 4.25k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4.25k | ++a_pos; | 75 | 4.25k | ++b_pos; | 76 | 4.25k | ++c_pos; | 77 | 4.25k | } | 78 | 562 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 101 | PaddedPODArray<UInt8>& c) { | 66 | 101 | size_t size = a.size(); | 67 | 101 | const A* __restrict a_pos = a.data(); | 68 | 101 | const B* __restrict b_pos = b.data(); | 69 | 101 | UInt8* __restrict c_pos = c.data(); | 70 | 101 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 204 | while (a_pos < a_end) { | 73 | 103 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 103 | ++a_pos; | 75 | 103 | ++b_pos; | 76 | 103 | ++c_pos; | 77 | 103 | } | 78 | 101 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 192 | PaddedPODArray<UInt8>& c) { | 66 | 192 | size_t size = a.size(); | 67 | 192 | const A* __restrict a_pos = a.data(); | 68 | 192 | const B* __restrict b_pos = b.data(); | 69 | 192 | UInt8* __restrict c_pos = c.data(); | 70 | 192 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 824 | while (a_pos < a_end) { | 73 | 632 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 632 | ++a_pos; | 75 | 632 | ++b_pos; | 76 | 632 | ++c_pos; | 77 | 632 | } | 78 | 192 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 194 | PaddedPODArray<UInt8>& c) { | 66 | 194 | size_t size = a.size(); | 67 | 194 | const A* __restrict a_pos = a.data(); | 68 | 194 | const B* __restrict b_pos = b.data(); | 69 | 194 | UInt8* __restrict c_pos = c.data(); | 70 | 194 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.69k | while (a_pos < a_end) { | 73 | 5.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5.50k | ++a_pos; | 75 | 5.50k | ++b_pos; | 76 | 5.50k | ++c_pos; | 77 | 5.50k | } | 78 | 194 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 178 | PaddedPODArray<UInt8>& c) { | 66 | 178 | size_t size = a.size(); | 67 | 178 | const A* __restrict a_pos = a.data(); | 68 | 178 | const B* __restrict b_pos = b.data(); | 69 | 178 | UInt8* __restrict c_pos = c.data(); | 70 | 178 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 497 | while (a_pos < a_end) { | 73 | 319 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 319 | ++a_pos; | 75 | 319 | ++b_pos; | 76 | 319 | ++c_pos; | 77 | 319 | } | 78 | 178 | } |
_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 | 125 | PaddedPODArray<UInt8>& c) { | 66 | 125 | size_t size = a.size(); | 67 | 125 | const A* __restrict a_pos = a.data(); | 68 | 125 | const B* __restrict b_pos = b.data(); | 69 | 125 | UInt8* __restrict c_pos = c.data(); | 70 | 125 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 269 | while (a_pos < a_end) { | 73 | 144 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 144 | ++a_pos; | 75 | 144 | ++b_pos; | 76 | 144 | ++c_pos; | 77 | 144 | } | 78 | 125 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_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 | 347 | while (a_pos < a_end) { | 73 | 194 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 194 | ++a_pos; | 75 | 194 | ++b_pos; | 76 | 194 | ++c_pos; | 77 | 194 | } | 78 | 153 | } |
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 | 436 | PaddedPODArray<UInt8>& c) { | 66 | 436 | size_t size = a.size(); | 67 | 436 | const A* __restrict a_pos = a.data(); | 68 | 436 | const B* __restrict b_pos = b.data(); | 69 | 436 | UInt8* __restrict c_pos = c.data(); | 70 | 436 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6.76k | while (a_pos < a_end) { | 73 | 6.32k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 6.32k | ++a_pos; | 75 | 6.32k | ++b_pos; | 76 | 6.32k | ++c_pos; | 77 | 6.32k | } | 78 | 436 | } |
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 | 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 | 1.15k | while (a_pos < a_end) { | 73 | 1.07k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.07k | ++a_pos; | 75 | 1.07k | ++b_pos; | 76 | 1.07k | ++c_pos; | 77 | 1.07k | } | 78 | 77 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 39 | PaddedPODArray<UInt8>& c) { | 66 | 39 | size_t size = a.size(); | 67 | 39 | const A* __restrict a_pos = a.data(); | 68 | 39 | const B* __restrict b_pos = b.data(); | 69 | 39 | UInt8* __restrict c_pos = c.data(); | 70 | 39 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 213 | while (a_pos < a_end) { | 73 | 174 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 174 | ++a_pos; | 75 | 174 | ++b_pos; | 76 | 174 | ++c_pos; | 77 | 174 | } | 78 | 39 | } |
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 | 18.1k | PaddedPODArray<UInt8>& c) { |
82 | 18.1k | size_t size = a.size(); |
83 | 18.1k | const A* __restrict a_pos = a.data(); |
84 | 18.1k | UInt8* __restrict c_pos = c.data(); |
85 | 18.1k | const A* __restrict a_end = a_pos + size; |
86 | | |
87 | 25.6M | while (a_pos < a_end) { |
88 | 25.6M | *c_pos = Op::apply(*a_pos, b); |
89 | 25.6M | ++a_pos; |
90 | 25.6M | ++c_pos; |
91 | 25.6M | } |
92 | 18.1k | } _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 | 731 | PaddedPODArray<UInt8>& c) { | 82 | 731 | size_t size = a.size(); | 83 | 731 | const A* __restrict a_pos = a.data(); | 84 | 731 | UInt8* __restrict c_pos = c.data(); | 85 | 731 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 206k | while (a_pos < a_end) { | 88 | 205k | *c_pos = Op::apply(*a_pos, b); | 89 | 205k | ++a_pos; | 90 | 205k | ++c_pos; | 91 | 205k | } | 92 | 731 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 226 | PaddedPODArray<UInt8>& c) { | 82 | 226 | size_t size = a.size(); | 83 | 226 | const A* __restrict a_pos = a.data(); | 84 | 226 | UInt8* __restrict c_pos = c.data(); | 85 | 226 | 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 | 226 | } |
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.62k | PaddedPODArray<UInt8>& c) { | 82 | 2.62k | size_t size = a.size(); | 83 | 2.62k | const A* __restrict a_pos = a.data(); | 84 | 2.62k | UInt8* __restrict c_pos = c.data(); | 85 | 2.62k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 8.99M | while (a_pos < a_end) { | 88 | 8.98M | *c_pos = Op::apply(*a_pos, b); | 89 | 8.98M | ++a_pos; | 90 | 8.98M | ++c_pos; | 91 | 8.98M | } | 92 | 2.62k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 341 | PaddedPODArray<UInt8>& c) { | 82 | 341 | size_t size = a.size(); | 83 | 341 | const A* __restrict a_pos = a.data(); | 84 | 341 | UInt8* __restrict c_pos = c.data(); | 85 | 341 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 101k | while (a_pos < a_end) { | 88 | 101k | *c_pos = Op::apply(*a_pos, b); | 89 | 101k | ++a_pos; | 90 | 101k | ++c_pos; | 91 | 101k | } | 92 | 341 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.92k | PaddedPODArray<UInt8>& c) { | 82 | 1.92k | size_t size = a.size(); | 83 | 1.92k | const A* __restrict a_pos = a.data(); | 84 | 1.92k | UInt8* __restrict c_pos = c.data(); | 85 | 1.92k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 207k | while (a_pos < a_end) { | 88 | 205k | *c_pos = Op::apply(*a_pos, b); | 89 | 205k | ++a_pos; | 90 | 205k | ++c_pos; | 91 | 205k | } | 92 | 1.92k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 792 | PaddedPODArray<UInt8>& c) { | 82 | 792 | size_t size = a.size(); | 83 | 792 | const A* __restrict a_pos = a.data(); | 84 | 792 | UInt8* __restrict c_pos = c.data(); | 85 | 792 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 352k | while (a_pos < a_end) { | 88 | 352k | *c_pos = Op::apply(*a_pos, b); | 89 | 352k | ++a_pos; | 90 | 352k | ++c_pos; | 91 | 352k | } | 92 | 792 | } |
_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 | 15 | PaddedPODArray<UInt8>& c) { | 82 | 15 | size_t size = a.size(); | 83 | 15 | const A* __restrict a_pos = a.data(); | 84 | 15 | UInt8* __restrict c_pos = c.data(); | 85 | 15 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 85 | while (a_pos < a_end) { | 88 | 70 | *c_pos = Op::apply(*a_pos, b); | 89 | 70 | ++a_pos; | 90 | 70 | ++c_pos; | 91 | 70 | } | 92 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 6 | PaddedPODArray<UInt8>& c) { | 82 | 6 | size_t size = a.size(); | 83 | 6 | const A* __restrict a_pos = a.data(); | 84 | 6 | UInt8* __restrict c_pos = c.data(); | 85 | 6 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 12 | while (a_pos < a_end) { | 88 | 6 | *c_pos = Op::apply(*a_pos, b); | 89 | 6 | ++a_pos; | 90 | 6 | ++c_pos; | 91 | 6 | } | 92 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 250 | PaddedPODArray<UInt8>& c) { | 82 | 250 | size_t size = a.size(); | 83 | 250 | const A* __restrict a_pos = a.data(); | 84 | 250 | UInt8* __restrict c_pos = c.data(); | 85 | 250 | 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 | 250 | } |
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 | 18 | PaddedPODArray<UInt8>& c) { | 82 | 18 | size_t size = a.size(); | 83 | 18 | const A* __restrict a_pos = a.data(); | 84 | 18 | UInt8* __restrict c_pos = c.data(); | 85 | 18 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.05k | while (a_pos < a_end) { | 88 | 1.04k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.04k | ++a_pos; | 90 | 1.04k | ++c_pos; | 91 | 1.04k | } | 92 | 18 | } |
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 | 32 | PaddedPODArray<UInt8>& c) { | 82 | 32 | size_t size = a.size(); | 83 | 32 | const A* __restrict a_pos = a.data(); | 84 | 32 | UInt8* __restrict c_pos = c.data(); | 85 | 32 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 80 | while (a_pos < a_end) { | 88 | 48 | *c_pos = Op::apply(*a_pos, b); | 89 | 48 | ++a_pos; | 90 | 48 | ++c_pos; | 91 | 48 | } | 92 | 32 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 52 | PaddedPODArray<UInt8>& c) { | 82 | 52 | size_t size = a.size(); | 83 | 52 | const A* __restrict a_pos = a.data(); | 84 | 52 | UInt8* __restrict c_pos = c.data(); | 85 | 52 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 312 | while (a_pos < a_end) { | 88 | 260 | *c_pos = Op::apply(*a_pos, b); | 89 | 260 | ++a_pos; | 90 | 260 | ++c_pos; | 91 | 260 | } | 92 | 52 | } |
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 | 375 | PaddedPODArray<UInt8>& c) { | 82 | 375 | size_t size = a.size(); | 83 | 375 | const A* __restrict a_pos = a.data(); | 84 | 375 | UInt8* __restrict c_pos = c.data(); | 85 | 375 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.67M | while (a_pos < a_end) { | 88 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.67M | ++a_pos; | 90 | 1.67M | ++c_pos; | 91 | 1.67M | } | 92 | 375 | } |
_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 | 411 | PaddedPODArray<UInt8>& c) { | 82 | 411 | size_t size = a.size(); | 83 | 411 | const A* __restrict a_pos = a.data(); | 84 | 411 | UInt8* __restrict c_pos = c.data(); | 85 | 411 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.20k | while (a_pos < a_end) { | 88 | 3.78k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.78k | ++a_pos; | 90 | 3.78k | ++c_pos; | 91 | 3.78k | } | 92 | 411 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 31 | PaddedPODArray<UInt8>& c) { | 82 | 31 | size_t size = a.size(); | 83 | 31 | const A* __restrict a_pos = a.data(); | 84 | 31 | UInt8* __restrict c_pos = c.data(); | 85 | 31 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 119 | while (a_pos < a_end) { | 88 | 88 | *c_pos = Op::apply(*a_pos, b); | 89 | 88 | ++a_pos; | 90 | 88 | ++c_pos; | 91 | 88 | } | 92 | 31 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 413 | PaddedPODArray<UInt8>& c) { | 82 | 413 | size_t size = a.size(); | 83 | 413 | const A* __restrict a_pos = a.data(); | 84 | 413 | UInt8* __restrict c_pos = c.data(); | 85 | 413 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.65k | while (a_pos < a_end) { | 88 | 3.24k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.24k | ++a_pos; | 90 | 3.24k | ++c_pos; | 91 | 3.24k | } | 92 | 413 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 48 | while (a_pos < a_end) { | 88 | 28 | *c_pos = Op::apply(*a_pos, b); | 89 | 28 | ++a_pos; | 90 | 28 | ++c_pos; | 91 | 28 | } | 92 | 20 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.76k | PaddedPODArray<UInt8>& c) { | 82 | 1.76k | size_t size = a.size(); | 83 | 1.76k | const A* __restrict a_pos = a.data(); | 84 | 1.76k | UInt8* __restrict c_pos = c.data(); | 85 | 1.76k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 14.7k | while (a_pos < a_end) { | 88 | 13.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 13.0k | ++a_pos; | 90 | 13.0k | ++c_pos; | 91 | 13.0k | } | 92 | 1.76k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 549 | PaddedPODArray<UInt8>& c) { | 82 | 549 | size_t size = a.size(); | 83 | 549 | const A* __restrict a_pos = a.data(); | 84 | 549 | UInt8* __restrict c_pos = c.data(); | 85 | 549 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.32k | while (a_pos < a_end) { | 88 | 2.77k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.77k | ++a_pos; | 90 | 2.77k | ++c_pos; | 91 | 2.77k | } | 92 | 549 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.12k | PaddedPODArray<UInt8>& c) { | 82 | 1.12k | size_t size = a.size(); | 83 | 1.12k | const A* __restrict a_pos = a.data(); | 84 | 1.12k | UInt8* __restrict c_pos = c.data(); | 85 | 1.12k | 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.12k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 473 | PaddedPODArray<UInt8>& c) { | 82 | 473 | size_t size = a.size(); | 83 | 473 | const A* __restrict a_pos = a.data(); | 84 | 473 | UInt8* __restrict c_pos = c.data(); | 85 | 473 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.47k | while (a_pos < a_end) { | 88 | 1.00k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.00k | ++a_pos; | 90 | 1.00k | ++c_pos; | 91 | 1.00k | } | 92 | 473 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 207 | PaddedPODArray<UInt8>& c) { | 82 | 207 | size_t size = a.size(); | 83 | 207 | const A* __restrict a_pos = a.data(); | 84 | 207 | UInt8* __restrict c_pos = c.data(); | 85 | 207 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.75k | 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 | 207 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_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 | 85.9k | while (a_pos < a_end) { | 88 | 85.8k | *c_pos = Op::apply(*a_pos, b); | 89 | 85.8k | ++a_pos; | 90 | 85.8k | ++c_pos; | 91 | 85.8k | } | 92 | 13 | } |
_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 | 208 | PaddedPODArray<UInt8>& c) { | 82 | 208 | size_t size = a.size(); | 83 | 208 | const A* __restrict a_pos = a.data(); | 84 | 208 | UInt8* __restrict c_pos = c.data(); | 85 | 208 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.62k | while (a_pos < a_end) { | 88 | 2.42k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.42k | ++a_pos; | 90 | 2.42k | ++c_pos; | 91 | 2.42k | } | 92 | 208 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 503 | PaddedPODArray<UInt8>& c) { | 82 | 503 | size_t size = a.size(); | 83 | 503 | const A* __restrict a_pos = a.data(); | 84 | 503 | UInt8* __restrict c_pos = c.data(); | 85 | 503 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 7.44k | 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 | 503 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 207 | PaddedPODArray<UInt8>& c) { | 82 | 207 | size_t size = a.size(); | 83 | 207 | const A* __restrict a_pos = a.data(); | 84 | 207 | UInt8* __restrict c_pos = c.data(); | 85 | 207 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 607k | while (a_pos < a_end) { | 88 | 607k | *c_pos = Op::apply(*a_pos, b); | 89 | 607k | ++a_pos; | 90 | 607k | ++c_pos; | 91 | 607k | } | 92 | 207 | } |
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 | 12 | PaddedPODArray<UInt8>& c) { | 82 | 12 | size_t size = a.size(); | 83 | 12 | const A* __restrict a_pos = a.data(); | 84 | 12 | UInt8* __restrict c_pos = c.data(); | 85 | 12 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 54.0k | while (a_pos < a_end) { | 88 | 54.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 54.0k | ++a_pos; | 90 | 54.0k | ++c_pos; | 91 | 54.0k | } | 92 | 12 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 19 | PaddedPODArray<UInt8>& c) { | 82 | 19 | size_t size = a.size(); | 83 | 19 | const A* __restrict a_pos = a.data(); | 84 | 19 | UInt8* __restrict c_pos = c.data(); | 85 | 19 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 73.1k | while (a_pos < a_end) { | 88 | 73.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 73.0k | ++a_pos; | 90 | 73.0k | ++c_pos; | 91 | 73.0k | } | 92 | 19 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 510 | PaddedPODArray<UInt8>& c) { | 82 | 510 | size_t size = a.size(); | 83 | 510 | const A* __restrict a_pos = a.data(); | 84 | 510 | UInt8* __restrict c_pos = c.data(); | 85 | 510 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.72M | while (a_pos < a_end) { | 88 | 1.72M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.72M | ++a_pos; | 90 | 1.72M | ++c_pos; | 91 | 1.72M | } | 92 | 510 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 118 | PaddedPODArray<UInt8>& c) { | 82 | 118 | size_t size = a.size(); | 83 | 118 | const A* __restrict a_pos = a.data(); | 84 | 118 | UInt8* __restrict c_pos = c.data(); | 85 | 118 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 607k | while (a_pos < a_end) { | 88 | 607k | *c_pos = Op::apply(*a_pos, b); | 89 | 607k | ++a_pos; | 90 | 607k | ++c_pos; | 91 | 607k | } | 92 | 118 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 145 | PaddedPODArray<UInt8>& c) { | 82 | 145 | size_t size = a.size(); | 83 | 145 | const A* __restrict a_pos = a.data(); | 84 | 145 | UInt8* __restrict c_pos = c.data(); | 85 | 145 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 551 | while (a_pos < a_end) { | 88 | 406 | *c_pos = Op::apply(*a_pos, b); | 89 | 406 | ++a_pos; | 90 | 406 | ++c_pos; | 91 | 406 | } | 92 | 145 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 42 | PaddedPODArray<UInt8>& c) { | 82 | 42 | size_t size = a.size(); | 83 | 42 | const A* __restrict a_pos = a.data(); | 84 | 42 | UInt8* __restrict c_pos = c.data(); | 85 | 42 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 88 | while (a_pos < a_end) { | 88 | 46 | *c_pos = Op::apply(*a_pos, b); | 89 | 46 | ++a_pos; | 90 | 46 | ++c_pos; | 91 | 46 | } | 92 | 42 | } |
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 | 24.3k | while (a_pos < a_end) { | 88 | 24.3k | *c_pos = Op::apply(*a_pos, b); | 89 | 24.3k | ++a_pos; | 90 | 24.3k | ++c_pos; | 91 | 24.3k | } | 92 | 40 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 38 | PaddedPODArray<UInt8>& c) { | 82 | 38 | size_t size = a.size(); | 83 | 38 | const A* __restrict a_pos = a.data(); | 84 | 38 | UInt8* __restrict c_pos = c.data(); | 85 | 38 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 77.5k | while (a_pos < a_end) { | 88 | 77.5k | *c_pos = Op::apply(*a_pos, b); | 89 | 77.5k | ++a_pos; | 90 | 77.5k | ++c_pos; | 91 | 77.5k | } | 92 | 38 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_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 | 45.7k | while (a_pos < a_end) { | 88 | 45.7k | *c_pos = Op::apply(*a_pos, b); | 89 | 45.7k | ++a_pos; | 90 | 45.7k | ++c_pos; | 91 | 45.7k | } | 92 | 33 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_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 | 65.6k | while (a_pos < a_end) { | 88 | 65.5k | *c_pos = Op::apply(*a_pos, b); | 89 | 65.5k | ++a_pos; | 90 | 65.5k | ++c_pos; | 91 | 65.5k | } | 92 | 39 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.51k | PaddedPODArray<UInt8>& c) { | 82 | 1.51k | size_t size = a.size(); | 83 | 1.51k | const A* __restrict a_pos = a.data(); | 84 | 1.51k | UInt8* __restrict c_pos = c.data(); | 85 | 1.51k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.11M | while (a_pos < a_end) { | 88 | 4.10M | *c_pos = Op::apply(*a_pos, b); | 89 | 4.10M | ++a_pos; | 90 | 4.10M | ++c_pos; | 91 | 4.10M | } | 92 | 1.51k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.52k | PaddedPODArray<UInt8>& c) { | 82 | 1.52k | size_t size = a.size(); | 83 | 1.52k | const A* __restrict a_pos = a.data(); | 84 | 1.52k | UInt8* __restrict c_pos = c.data(); | 85 | 1.52k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.16M | while (a_pos < a_end) { | 88 | 4.16M | *c_pos = Op::apply(*a_pos, b); | 89 | 4.16M | ++a_pos; | 90 | 4.16M | ++c_pos; | 91 | 4.16M | } | 92 | 1.52k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 136 | PaddedPODArray<UInt8>& c) { | 82 | 136 | size_t size = a.size(); | 83 | 136 | const A* __restrict a_pos = a.data(); | 84 | 136 | UInt8* __restrict c_pos = c.data(); | 85 | 136 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 5.38k | while (a_pos < a_end) { | 88 | 5.24k | *c_pos = Op::apply(*a_pos, b); | 89 | 5.24k | ++a_pos; | 90 | 5.24k | ++c_pos; | 91 | 5.24k | } | 92 | 136 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 192 | PaddedPODArray<UInt8>& c) { | 82 | 192 | size_t size = a.size(); | 83 | 192 | const A* __restrict a_pos = a.data(); | 84 | 192 | UInt8* __restrict c_pos = c.data(); | 85 | 192 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.87k | while (a_pos < a_end) { | 88 | 1.68k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.68k | ++a_pos; | 90 | 1.68k | ++c_pos; | 91 | 1.68k | } | 92 | 192 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 9 | PaddedPODArray<UInt8>& c) { | 82 | 9 | size_t size = a.size(); | 83 | 9 | const A* __restrict a_pos = a.data(); | 84 | 9 | UInt8* __restrict c_pos = c.data(); | 85 | 9 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 16.7k | while (a_pos < a_end) { | 88 | 16.7k | *c_pos = Op::apply(*a_pos, b); | 89 | 16.7k | ++a_pos; | 90 | 16.7k | ++c_pos; | 91 | 16.7k | } | 92 | 9 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 90.9k | while (a_pos < a_end) { | 88 | 90.9k | *c_pos = Op::apply(*a_pos, b); | 89 | 90.9k | ++a_pos; | 90 | 90.9k | ++c_pos; | 91 | 90.9k | } | 92 | 22 | } |
_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 | 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 | 15 | while (a_pos < a_end) { | 88 | 9 | *c_pos = Op::apply(*a_pos, b); | 89 | 9 | ++a_pos; | 90 | 9 | ++c_pos; | 91 | 9 | } | 92 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 125 | PaddedPODArray<UInt8>& c) { | 82 | 125 | size_t size = a.size(); | 83 | 125 | const A* __restrict a_pos = a.data(); | 84 | 125 | UInt8* __restrict c_pos = c.data(); | 85 | 125 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 681k | while (a_pos < a_end) { | 88 | 680k | *c_pos = Op::apply(*a_pos, b); | 89 | 680k | ++a_pos; | 90 | 680k | ++c_pos; | 91 | 680k | } | 92 | 125 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 118 | PaddedPODArray<UInt8>& c) { | 82 | 118 | size_t size = a.size(); | 83 | 118 | const A* __restrict a_pos = a.data(); | 84 | 118 | UInt8* __restrict c_pos = c.data(); | 85 | 118 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 600k | while (a_pos < a_end) { | 88 | 600k | *c_pos = Op::apply(*a_pos, b); | 89 | 600k | ++a_pos; | 90 | 600k | ++c_pos; | 91 | 600k | } | 92 | 118 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
93 | | |
94 | 8 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
95 | 8 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
96 | 8 | } 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 | 8 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 8 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 8 | } |
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 | 95 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 95 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
110 | 222k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
111 | 222k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
112 | 222k | } |
113 | 95 | } _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 | 37 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 37 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 150k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 150k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 150k | } | 113 | 37 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 21 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 21 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 71.8k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 71.8k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 71.8k | } | 113 | 21 | } |
|
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 | 422 | PaddedPODArray<UInt8>& c) { |
127 | 422 | size_t size = a_offsets.size(); |
128 | 422 | ColumnString::Offset prev_a_offset = 0; |
129 | 422 | ColumnString::Offset prev_b_offset = 0; |
130 | 422 | const auto* a_pos = a_data.data(); |
131 | 422 | const auto* b_pos = b_data.data(); |
132 | | |
133 | 1.11k | for (size_t i = 0; i < size; ++i) { |
134 | 692 | c[i] = Op::apply(memcmp_small_allow_overflow15( |
135 | 692 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
136 | 692 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
137 | 692 | 0); |
138 | | |
139 | 692 | prev_a_offset = a_offsets[i]; |
140 | 692 | prev_b_offset = b_offsets[i]; |
141 | 692 | } |
142 | 422 | } _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 | 377 | PaddedPODArray<UInt8>& c) { | 127 | 377 | size_t size = a_offsets.size(); | 128 | 377 | ColumnString::Offset prev_a_offset = 0; | 129 | 377 | ColumnString::Offset prev_b_offset = 0; | 130 | 377 | const auto* a_pos = a_data.data(); | 131 | 377 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 758 | for (size_t i = 0; i < size; ++i) { | 134 | 381 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 381 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 381 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 381 | 0); | 138 | | | 139 | 381 | prev_a_offset = a_offsets[i]; | 140 | 381 | prev_b_offset = b_offsets[i]; | 141 | 381 | } | 142 | 377 | } |
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 | 751 | PaddedPODArray<UInt8>& c) { |
149 | 751 | size_t size = a_offsets.size(); |
150 | 751 | ColumnString::Offset prev_a_offset = 0; |
151 | 751 | const auto* a_pos = a_data.data(); |
152 | 751 | const auto* b_pos = b_data.data(); |
153 | | |
154 | 1.28M | for (size_t i = 0; i < size; ++i) { |
155 | 1.28M | c[i] = Op::apply( |
156 | 1.28M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
157 | 1.28M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
158 | 1.28M | 0); |
159 | | |
160 | 1.28M | prev_a_offset = a_offsets[i]; |
161 | 1.28M | } |
162 | 751 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 219 | PaddedPODArray<UInt8>& c) { | 149 | 219 | size_t size = a_offsets.size(); | 150 | 219 | ColumnString::Offset prev_a_offset = 0; | 151 | 219 | const auto* a_pos = a_data.data(); | 152 | 219 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 596k | for (size_t i = 0; i < size; ++i) { | 155 | 596k | c[i] = Op::apply( | 156 | 596k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 596k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 596k | 0); | 159 | | | 160 | 596k | prev_a_offset = a_offsets[i]; | 161 | 596k | } | 162 | 219 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 135 | PaddedPODArray<UInt8>& c) { | 149 | 135 | size_t size = a_offsets.size(); | 150 | 135 | ColumnString::Offset prev_a_offset = 0; | 151 | 135 | const auto* a_pos = a_data.data(); | 152 | 135 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 71.3k | for (size_t i = 0; i < size; ++i) { | 155 | 71.1k | c[i] = Op::apply( | 156 | 71.1k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 71.1k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 71.1k | 0); | 159 | | | 160 | 71.1k | prev_a_offset = a_offsets[i]; | 161 | 71.1k | } | 162 | 135 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 216 | PaddedPODArray<UInt8>& c) { | 149 | 216 | size_t size = a_offsets.size(); | 150 | 216 | ColumnString::Offset prev_a_offset = 0; | 151 | 216 | const auto* a_pos = a_data.data(); | 152 | 216 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 358k | for (size_t i = 0; i < size; ++i) { | 155 | 358k | c[i] = Op::apply( | 156 | 358k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 358k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 358k | 0); | 159 | | | 160 | 358k | prev_a_offset = a_offsets[i]; | 161 | 358k | } | 162 | 216 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 181 | PaddedPODArray<UInt8>& c) { | 149 | 181 | size_t size = a_offsets.size(); | 150 | 181 | ColumnString::Offset prev_a_offset = 0; | 151 | 181 | const auto* a_pos = a_data.data(); | 152 | 181 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 262k | for (size_t i = 0; i < size; ++i) { | 155 | 261k | c[i] = Op::apply( | 156 | 261k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 261k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 261k | 0); | 159 | | | 160 | 261k | prev_a_offset = a_offsets[i]; | 161 | 261k | } | 162 | 181 | } |
|
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 | 475 | PaddedPODArray<UInt8>& c) { |
181 | 475 | size_t size = a_offsets.size(); |
182 | 475 | ColumnString::Offset prev_a_offset = 0; |
183 | 475 | ColumnString::Offset prev_b_offset = 0; |
184 | 475 | const auto* a_pos = a_data.data(); |
185 | 475 | const auto* b_pos = b_data.data(); |
186 | | |
187 | 1.34k | for (size_t i = 0; i < size; ++i) { |
188 | 874 | auto a_size = a_offsets[i] - prev_a_offset; |
189 | 874 | auto b_size = b_offsets[i] - prev_b_offset; |
190 | | |
191 | 874 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
192 | 874 | b_pos + prev_b_offset, b_size); |
193 | | |
194 | 874 | prev_a_offset = a_offsets[i]; |
195 | 874 | prev_b_offset = b_offsets[i]; |
196 | 874 | } |
197 | 475 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 474 | PaddedPODArray<UInt8>& c) { | 181 | 474 | size_t size = a_offsets.size(); | 182 | 474 | ColumnString::Offset prev_a_offset = 0; | 183 | 474 | ColumnString::Offset prev_b_offset = 0; | 184 | 474 | const auto* a_pos = a_data.data(); | 185 | 474 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 1.34k | for (size_t i = 0; i < size; ++i) { | 188 | 870 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 870 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 870 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 870 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 870 | prev_a_offset = a_offsets[i]; | 195 | 870 | prev_b_offset = b_offsets[i]; | 196 | 870 | } | 197 | 474 | } |
_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 | 11.1k | PaddedPODArray<UInt8>& c) { |
204 | 11.1k | size_t size = a_offsets.size(); |
205 | 11.1k | 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 | 11.1k | } else { |
215 | 11.1k | ColumnString::Offset prev_a_offset = 0; |
216 | 11.1k | const auto* a_pos = a_data.data(); |
217 | 11.1k | const auto* b_pos = b_data.data(); |
218 | 1.49M | for (size_t i = 0; i < size; ++i) { |
219 | 1.48M | auto a_size = a_offsets[i] - prev_a_offset; |
220 | 1.48M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
221 | 1.48M | b_pos, b_size); |
222 | 1.48M | prev_a_offset = a_offsets[i]; |
223 | 1.48M | } |
224 | 11.1k | } |
225 | 11.1k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 11.0k | PaddedPODArray<UInt8>& c) { | 204 | 11.0k | size_t size = a_offsets.size(); | 205 | 11.0k | 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 | 11.0k | } else { | 215 | 11.0k | ColumnString::Offset prev_a_offset = 0; | 216 | 11.0k | const auto* a_pos = a_data.data(); | 217 | 11.0k | const auto* b_pos = b_data.data(); | 218 | 1.45M | for (size_t i = 0; i < size; ++i) { | 219 | 1.44M | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 1.44M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 1.44M | b_pos, b_size); | 222 | 1.44M | prev_a_offset = a_offsets[i]; | 223 | 1.44M | } | 224 | 11.0k | } | 225 | 11.0k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 132 | PaddedPODArray<UInt8>& c) { | 204 | 132 | size_t size = a_offsets.size(); | 205 | 132 | 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 | 107 | } else { | 215 | 107 | ColumnString::Offset prev_a_offset = 0; | 216 | 107 | const auto* a_pos = a_data.data(); | 217 | 107 | const auto* b_pos = b_data.data(); | 218 | 42.7k | for (size_t i = 0; i < size; ++i) { | 219 | 42.5k | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 42.5k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 42.5k | b_pos, b_size); | 222 | 42.5k | prev_a_offset = a_offsets[i]; | 223 | 42.5k | } | 224 | 107 | } | 225 | 132 | } |
|
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 | 322k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 265 | 250k | 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.90k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 265 | 31.7k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 265 | 2.73k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 265 | 31.3k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
266 | | |
267 | 322k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 267 | 250k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 267 | 1.15k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 267 | 4.90k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 267 | 31.7k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 267 | 2.73k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 267 | 31.3k | FunctionComparison() = default; |
|
268 | | |
269 | 693k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 269 | 675k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 269 | 571 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 269 | 3.50k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 269 | 6.70k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 269 | 2.44k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 269 | 5.40k | 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 | 30.6k | const ColumnPtr& col_right_ptr) const { |
275 | 30.6k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
276 | 30.6k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
277 | | |
278 | 30.6k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
279 | 30.6k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
280 | | |
281 | 30.6k | DCHECK(!(left_is_const && right_is_const)); |
282 | | |
283 | 30.6k | if (!left_is_const && !right_is_const) { |
284 | 12.5k | auto col_res = ColumnUInt8::create(); |
285 | | |
286 | 12.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
287 | 12.5k | vec_res.resize(col_left->get_data().size()); |
288 | 12.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
289 | 12.5k | typename PrimitiveTypeTraits<PT>::CppType, |
290 | 12.5k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
291 | 12.5k | vec_res); |
292 | | |
293 | 12.5k | block.replace_by_position(result, std::move(col_res)); |
294 | 18.1k | } else if (!left_is_const && right_is_const) { |
295 | 18.1k | auto col_res = ColumnUInt8::create(); |
296 | | |
297 | 18.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
298 | 18.1k | vec_res.resize(col_left->size()); |
299 | 18.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
300 | 18.1k | typename PrimitiveTypeTraits<PT>::CppType, |
301 | 18.1k | Op<PT>>::vector_constant(col_left->get_data(), |
302 | 18.1k | col_right->get_element(0), vec_res); |
303 | | |
304 | 18.1k | block.replace_by_position(result, std::move(col_res)); |
305 | 18.4E | } else if (left_is_const && !right_is_const) { |
306 | 8 | auto col_res = ColumnUInt8::create(); |
307 | | |
308 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); |
309 | 8 | vec_res.resize(col_right->size()); |
310 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
311 | 8 | typename PrimitiveTypeTraits<PT>::CppType, |
312 | 8 | Op<PT>>::constant_vector(col_left->get_element(0), |
313 | 8 | col_right->get_data(), vec_res); |
314 | | |
315 | 8 | block.replace_by_position(result, std::move(col_res)); |
316 | 8 | } |
317 | 30.6k | return Status::OK(); |
318 | 30.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 88 | const ColumnPtr& col_right_ptr) const { | 275 | 88 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 88 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 88 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 88 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 88 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 88 | if (!left_is_const && !right_is_const) { | 284 | 64 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 64 | vec_res.resize(col_left->get_data().size()); | 288 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 64 | vec_res); | 292 | | | 293 | 64 | block.replace_by_position(result, std::move(col_res)); | 294 | 64 | } 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 | 88 | return Status::OK(); | 318 | 88 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.09k | const ColumnPtr& col_right_ptr) const { | 275 | 1.09k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.09k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.09k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.09k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.09k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.09k | if (!left_is_const && !right_is_const) { | 284 | 363 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 363 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 363 | vec_res.resize(col_left->get_data().size()); | 288 | 363 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 363 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 363 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 363 | vec_res); | 292 | | | 293 | 363 | block.replace_by_position(result, std::move(col_res)); | 294 | 730 | } else if (!left_is_const && right_is_const) { | 295 | 730 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 730 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 730 | vec_res.resize(col_left->size()); | 299 | 730 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 730 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 730 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 730 | col_right->get_element(0), vec_res); | 303 | | | 304 | 730 | block.replace_by_position(result, std::move(col_res)); | 305 | 730 | } 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.09k | return Status::OK(); | 318 | 1.09k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 527 | const ColumnPtr& col_right_ptr) const { | 275 | 527 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 527 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 527 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 527 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 527 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 527 | if (!left_is_const && !right_is_const) { | 284 | 301 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 301 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 301 | vec_res.resize(col_left->get_data().size()); | 288 | 301 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 301 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 301 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 301 | vec_res); | 292 | | | 293 | 301 | block.replace_by_position(result, std::move(col_res)); | 294 | 301 | } else if (!left_is_const && right_is_const) { | 295 | 226 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 226 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 226 | vec_res.resize(col_left->size()); | 299 | 226 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 226 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 226 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 226 | col_right->get_element(0), vec_res); | 303 | | | 304 | 226 | block.replace_by_position(result, std::move(col_res)); | 305 | 226 | } 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 | 527 | return Status::OK(); | 318 | 527 | } |
_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.26k | const ColumnPtr& col_right_ptr) const { | 275 | 3.26k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.26k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.26k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.26k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.26k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.26k | if (!left_is_const && !right_is_const) { | 284 | 647 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 647 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 647 | vec_res.resize(col_left->get_data().size()); | 288 | 647 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 647 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 647 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 647 | vec_res); | 292 | | | 293 | 647 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.62k | } else if (!left_is_const && right_is_const) { | 295 | 2.62k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.62k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.62k | vec_res.resize(col_left->size()); | 299 | 2.62k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.62k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.62k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.62k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.62k | 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 | 3.26k | return Status::OK(); | 318 | 3.26k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 459 | const ColumnPtr& col_right_ptr) const { | 275 | 459 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 459 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 459 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 459 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 459 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 459 | if (!left_is_const && !right_is_const) { | 284 | 118 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 118 | vec_res.resize(col_left->get_data().size()); | 288 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 118 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 118 | vec_res); | 292 | | | 293 | 118 | block.replace_by_position(result, std::move(col_res)); | 294 | 341 | } else if (!left_is_const && right_is_const) { | 295 | 341 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 341 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 341 | vec_res.resize(col_left->size()); | 299 | 341 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 341 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 341 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 341 | col_right->get_element(0), vec_res); | 303 | | | 304 | 341 | block.replace_by_position(result, std::move(col_res)); | 305 | 341 | } 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 | 459 | return Status::OK(); | 318 | 459 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.18k | const ColumnPtr& col_right_ptr) const { | 275 | 2.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.18k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.18k | if (!left_is_const && !right_is_const) { | 284 | 270 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 270 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 270 | vec_res.resize(col_left->get_data().size()); | 288 | 270 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 270 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 270 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 270 | vec_res); | 292 | | | 293 | 270 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.91k | } else if (!left_is_const && right_is_const) { | 295 | 1.91k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.91k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.91k | vec_res.resize(col_left->size()); | 299 | 1.91k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.91k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.91k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.91k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.91k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.91k | } else if (left_is_const && !right_is_const) { | 306 | 8 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 8 | vec_res.resize(col_right->size()); | 310 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 8 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 8 | col_right->get_data(), vec_res); | 314 | | | 315 | 8 | block.replace_by_position(result, std::move(col_res)); | 316 | 8 | } | 317 | 2.18k | return Status::OK(); | 318 | 2.18k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 990 | const ColumnPtr& col_right_ptr) const { | 275 | 990 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 990 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 990 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 990 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 990 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 990 | 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 | 792 | } else if (!left_is_const && right_is_const) { | 295 | 791 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 791 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 791 | vec_res.resize(col_left->size()); | 299 | 791 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 791 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 791 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 791 | col_right->get_element(0), vec_res); | 303 | | | 304 | 791 | block.replace_by_position(result, std::move(col_res)); | 305 | 791 | } 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 | 990 | return Status::OK(); | 318 | 990 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_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 | 119 | if (!left_is_const && !right_is_const) { | 284 | 95 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 95 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 95 | vec_res.resize(col_left->get_data().size()); | 288 | 95 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 95 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 95 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 95 | vec_res); | 292 | | | 293 | 95 | block.replace_by_position(result, std::move(col_res)); | 294 | 95 | } 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 | 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 | 118 | return Status::OK(); | 318 | 118 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 31 | const ColumnPtr& col_right_ptr) const { | 275 | 31 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 31 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 31 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 31 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 31 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 31 | 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 | 15 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 15 | vec_res.resize(col_left->size()); | 299 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 15 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 15 | col_right->get_element(0), vec_res); | 303 | | | 304 | 15 | block.replace_by_position(result, std::move(col_res)); | 305 | 15 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 31 | return Status::OK(); | 318 | 31 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 30 | const ColumnPtr& col_right_ptr) const { | 275 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 30 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 30 | if (!left_is_const && !right_is_const) { | 284 | 24 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 24 | vec_res.resize(col_left->get_data().size()); | 288 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 24 | vec_res); | 292 | | | 293 | 24 | block.replace_by_position(result, std::move(col_res)); | 294 | 24 | } 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 | 30 | return Status::OK(); | 318 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 109 | const ColumnPtr& col_right_ptr) const { | 275 | 109 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 109 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 109 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 109 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 109 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 109 | if (!left_is_const && !right_is_const) { | 284 | 109 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 109 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 109 | vec_res.resize(col_left->get_data().size()); | 288 | 109 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 109 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 109 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 109 | vec_res); | 292 | | | 293 | 109 | block.replace_by_position(result, std::move(col_res)); | 294 | 109 | } 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 | 109 | return Status::OK(); | 318 | 109 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 365 | const ColumnPtr& col_right_ptr) const { | 275 | 365 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 365 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 365 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 365 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 365 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 365 | if (!left_is_const && !right_is_const) { | 284 | 115 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 115 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 115 | vec_res.resize(col_left->get_data().size()); | 288 | 115 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 115 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 115 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 115 | vec_res); | 292 | | | 293 | 115 | block.replace_by_position(result, std::move(col_res)); | 294 | 250 | } else if (!left_is_const && right_is_const) { | 295 | 250 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 250 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 250 | vec_res.resize(col_left->size()); | 299 | 250 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 250 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 250 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 250 | col_right->get_element(0), vec_res); | 303 | | | 304 | 250 | block.replace_by_position(result, std::move(col_res)); | 305 | 250 | } 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 | 365 | return Status::OK(); | 318 | 365 | } |
_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 | 92 | const ColumnPtr& col_right_ptr) const { | 275 | 92 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 92 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 92 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 92 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 92 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 92 | if (!left_is_const && !right_is_const) { | 284 | 64 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 64 | vec_res.resize(col_left->get_data().size()); | 288 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 64 | vec_res); | 292 | | | 293 | 64 | block.replace_by_position(result, std::move(col_res)); | 294 | 64 | } 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 | 92 | return Status::OK(); | 318 | 92 | } |
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 | 544 | const ColumnPtr& col_right_ptr) const { | 275 | 544 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 544 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 544 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 544 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 544 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 544 | if (!left_is_const && !right_is_const) { | 284 | 481 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 481 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 481 | vec_res.resize(col_left->get_data().size()); | 288 | 481 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 481 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 481 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 481 | vec_res); | 292 | | | 293 | 481 | block.replace_by_position(result, std::move(col_res)); | 294 | 481 | } 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 | 544 | return Status::OK(); | 318 | 544 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 422 | const ColumnPtr& col_right_ptr) const { | 275 | 422 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 422 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 422 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 422 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 422 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 422 | if (!left_is_const && !right_is_const) { | 284 | 404 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 404 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 404 | vec_res.resize(col_left->get_data().size()); | 288 | 404 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 404 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 404 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 404 | vec_res); | 292 | | | 293 | 404 | block.replace_by_position(result, std::move(col_res)); | 294 | 404 | } else if (!left_is_const && right_is_const) { | 295 | 18 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 18 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 18 | vec_res.resize(col_left->size()); | 299 | 18 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 18 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 18 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 18 | col_right->get_element(0), vec_res); | 303 | | | 304 | 18 | block.replace_by_position(result, std::move(col_res)); | 305 | 18 | } 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 | 422 | return Status::OK(); | 318 | 422 | } |
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 | 52 | const ColumnPtr& col_right_ptr) const { | 275 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 52 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 52 | 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 | 32 | } else if (!left_is_const && right_is_const) { | 295 | 32 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 32 | vec_res.resize(col_left->size()); | 299 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 32 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 32 | col_right->get_element(0), vec_res); | 303 | | | 304 | 32 | block.replace_by_position(result, std::move(col_res)); | 305 | 32 | } 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 | 52 | return Status::OK(); | 318 | 52 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_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 | 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 | 52 | } else if (!left_is_const && right_is_const) { | 295 | 52 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 52 | vec_res.resize(col_left->size()); | 299 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 52 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 52 | col_right->get_element(0), vec_res); | 303 | | | 304 | 52 | block.replace_by_position(result, std::move(col_res)); | 305 | 52 | } 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 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.09k | const ColumnPtr& col_right_ptr) const { | 275 | 1.09k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.09k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.09k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.09k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.09k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.09k | if (!left_is_const && !right_is_const) { | 284 | 1.09k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.09k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.09k | vec_res.resize(col_left->get_data().size()); | 288 | 1.09k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.09k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.09k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.09k | vec_res); | 292 | | | 293 | 1.09k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.09k | } 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 | 1.09k | return Status::OK(); | 318 | 1.09k | } |
_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 | 667 | const ColumnPtr& col_right_ptr) const { | 275 | 667 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 667 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 667 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 667 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 667 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 667 | if (!left_is_const && !right_is_const) { | 284 | 257 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 257 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 257 | vec_res.resize(col_left->get_data().size()); | 288 | 257 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 257 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 257 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 257 | vec_res); | 292 | | | 293 | 257 | block.replace_by_position(result, std::move(col_res)); | 294 | 411 | } else if (!left_is_const && right_is_const) { | 295 | 411 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 411 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 411 | vec_res.resize(col_left->size()); | 299 | 411 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 411 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 411 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 411 | col_right->get_element(0), vec_res); | 303 | | | 304 | 411 | 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 | 667 | return Status::OK(); | 318 | 667 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 874 | const ColumnPtr& col_right_ptr) const { | 275 | 874 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 874 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 874 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 874 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 874 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 876 | if (!left_is_const && !right_is_const) { | 284 | 465 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 465 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 465 | vec_res.resize(col_left->get_data().size()); | 288 | 465 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 465 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 465 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 465 | vec_res); | 292 | | | 293 | 465 | block.replace_by_position(result, std::move(col_res)); | 294 | 465 | } else if (!left_is_const && right_is_const) { | 295 | 412 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 412 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 412 | vec_res.resize(col_left->size()); | 299 | 412 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 412 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 412 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 412 | col_right->get_element(0), vec_res); | 303 | | | 304 | 412 | 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 | 874 | return Status::OK(); | 318 | 874 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 4.69k | const ColumnPtr& col_right_ptr) const { | 275 | 4.69k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 4.69k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 4.69k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 4.69k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 4.69k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 4.69k | 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.75k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.75k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.75k | vec_res.resize(col_left->size()); | 299 | 1.75k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.75k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.75k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.75k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.75k | 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.69k | return Status::OK(); | 318 | 4.69k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.22k | const ColumnPtr& col_right_ptr) const { | 275 | 1.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.22k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.22k | 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 | 1.12k | } else if (!left_is_const && right_is_const) { | 295 | 1.12k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.12k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.12k | vec_res.resize(col_left->size()); | 299 | 1.12k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.12k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.12k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.12k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.12k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.22k | return Status::OK(); | 318 | 1.22k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 247 | const ColumnPtr& col_right_ptr) const { | 275 | 247 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 247 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 247 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 247 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 247 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 247 | if (!left_is_const && !right_is_const) { | 284 | 41 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 41 | vec_res.resize(col_left->get_data().size()); | 288 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 41 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 41 | vec_res); | 292 | | | 293 | 41 | block.replace_by_position(result, std::move(col_res)); | 294 | 207 | } else if (!left_is_const && right_is_const) { | 295 | 207 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 207 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 207 | vec_res.resize(col_left->size()); | 299 | 207 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 207 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 207 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 207 | col_right->get_element(0), vec_res); | 303 | | | 304 | 207 | 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 | 247 | return Status::OK(); | 318 | 247 | } |
_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 | 227 | const ColumnPtr& col_right_ptr) const { | 275 | 227 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 227 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 227 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 227 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 227 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 227 | 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 | 208 | } else if (!left_is_const && right_is_const) { | 295 | 208 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 208 | vec_res.resize(col_left->size()); | 299 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 208 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 208 | col_right->get_element(0), vec_res); | 303 | | | 304 | 208 | 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 | 227 | return Status::OK(); | 318 | 227 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 534 | const ColumnPtr& col_right_ptr) const { | 275 | 534 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 534 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 534 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 534 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 534 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 534 | if (!left_is_const && !right_is_const) { | 284 | 31 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 31 | vec_res.resize(col_left->get_data().size()); | 288 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 31 | vec_res); | 292 | | | 293 | 31 | block.replace_by_position(result, std::move(col_res)); | 294 | 503 | } else if (!left_is_const && right_is_const) { | 295 | 503 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 503 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 503 | vec_res.resize(col_left->size()); | 299 | 503 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 503 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 503 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 503 | col_right->get_element(0), vec_res); | 303 | | | 304 | 503 | block.replace_by_position(result, std::move(col_res)); | 305 | 503 | } 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 | 534 | return Status::OK(); | 318 | 534 | } |
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 | 12 | const ColumnPtr& col_right_ptr) const { | 275 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 12 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 12 | 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 | 12 | } else if (!left_is_const && right_is_const) { | 295 | 12 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 12 | vec_res.resize(col_left->size()); | 299 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 12 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 12 | col_right->get_element(0), vec_res); | 303 | | | 304 | 12 | block.replace_by_position(result, std::move(col_res)); | 305 | 12 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 12 | return Status::OK(); | 318 | 12 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 517 | const ColumnPtr& col_right_ptr) const { | 275 | 517 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 517 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 517 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 517 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 517 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 517 | 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 | 510 | } else if (!left_is_const && right_is_const) { | 295 | 510 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 510 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 510 | vec_res.resize(col_left->size()); | 299 | 510 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 510 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 510 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 510 | col_right->get_element(0), vec_res); | 303 | | | 304 | 510 | block.replace_by_position(result, std::move(col_res)); | 305 | 510 | } 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 | 517 | return Status::OK(); | 318 | 517 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 154 | const ColumnPtr& col_right_ptr) const { | 275 | 154 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 154 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 154 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 154 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 154 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 154 | if (!left_is_const && !right_is_const) { | 284 | 9 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 9 | vec_res.resize(col_left->get_data().size()); | 288 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 9 | vec_res); | 292 | | | 293 | 9 | block.replace_by_position(result, std::move(col_res)); | 294 | 145 | } else if (!left_is_const && right_is_const) { | 295 | 145 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 145 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 145 | vec_res.resize(col_left->size()); | 299 | 145 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 145 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 145 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 145 | col_right->get_element(0), vec_res); | 303 | | | 304 | 145 | block.replace_by_position(result, std::move(col_res)); | 305 | 145 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 154 | return Status::OK(); | 318 | 154 | } |
_ZNK5doris18FunctionComparisonINS_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 | 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.51k | const ColumnPtr& col_right_ptr) const { | 275 | 1.51k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.51k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.51k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.51k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.51k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.51k | 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 | 1.51k | } else if (!left_is_const && right_is_const) { | 295 | 1.51k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.51k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.51k | vec_res.resize(col_left->size()); | 299 | 1.51k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.51k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.51k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.51k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.51k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.51k | } 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.51k | return Status::OK(); | 318 | 1.51k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 153 | const ColumnPtr& col_right_ptr) const { | 275 | 153 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 153 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 153 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 153 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 153 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 153 | if (!left_is_const && !right_is_const) { | 284 | 17 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 17 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 17 | vec_res.resize(col_left->get_data().size()); | 288 | 17 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 17 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 17 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 17 | vec_res); | 292 | | | 293 | 17 | block.replace_by_position(result, std::move(col_res)); | 294 | 136 | } else if (!left_is_const && right_is_const) { | 295 | 136 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 136 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 136 | vec_res.resize(col_left->size()); | 299 | 136 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 136 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 136 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 136 | col_right->get_element(0), vec_res); | 303 | | | 304 | 136 | block.replace_by_position(result, std::move(col_res)); | 305 | 136 | } 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 | 153 | return Status::OK(); | 318 | 153 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 9 | const ColumnPtr& col_right_ptr) const { | 275 | 9 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 9 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 9 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 9 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 9 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 9 | 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 | 9 | } else if (!left_is_const && right_is_const) { | 295 | 9 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 9 | vec_res.resize(col_left->size()); | 299 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 9 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 9 | col_right->get_element(0), vec_res); | 303 | | | 304 | 9 | block.replace_by_position(result, std::move(col_res)); | 305 | 9 | } 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 | 9 | return Status::OK(); | 318 | 9 | } |
_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 | 26 | const ColumnPtr& col_right_ptr) const { | 275 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 26 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 26 | if (!left_is_const && !right_is_const) { | 284 | 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 | 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 | 26 | return Status::OK(); | 318 | 26 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 180 | const ColumnPtr& col_right_ptr) const { | 275 | 180 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 180 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 180 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 180 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 180 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 180 | if (!left_is_const && !right_is_const) { | 284 | 55 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 55 | vec_res.resize(col_left->get_data().size()); | 288 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 55 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 55 | vec_res); | 292 | | | 293 | 55 | block.replace_by_position(result, std::move(col_res)); | 294 | 125 | } else if (!left_is_const && right_is_const) { | 295 | 125 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 125 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 125 | vec_res.resize(col_left->size()); | 299 | 125 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 125 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 125 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 125 | col_right->get_element(0), vec_res); | 303 | | | 304 | 125 | block.replace_by_position(result, std::move(col_res)); | 305 | 125 | } 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 | 180 | return Status::OK(); | 318 | 180 | } |
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 | 70 | const ColumnPtr& col_right_ptr) const { | 275 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 70 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 70 | if (!left_is_const && !right_is_const) { | 284 | 70 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 70 | vec_res.resize(col_left->get_data().size()); | 288 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 70 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 70 | vec_res); | 292 | | | 293 | 70 | block.replace_by_position(result, std::move(col_res)); | 294 | 70 | } 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 | 70 | return Status::OK(); | 318 | 70 | } |
_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.65k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.65k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.65k | vec_res.resize(col_left->get_data().size()); | 288 | 1.65k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.65k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.65k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.65k | vec_res); | 292 | | | 293 | 1.65k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.65k | } else if (!left_is_const && right_is_const) { | 295 | 375 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 375 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 375 | vec_res.resize(col_left->size()); | 299 | 375 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 375 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 375 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 375 | col_right->get_element(0), vec_res); | 303 | | | 304 | 375 | block.replace_by_position(result, std::move(col_res)); | 305 | 375 | } 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 | 304 | const ColumnPtr& col_right_ptr) const { | 275 | 304 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 304 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 304 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 304 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 304 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 304 | if (!left_is_const && !right_is_const) { | 284 | 243 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 243 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 243 | vec_res.resize(col_left->get_data().size()); | 288 | 243 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 243 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 243 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 243 | vec_res); | 292 | | | 293 | 243 | block.replace_by_position(result, std::move(col_res)); | 294 | 243 | } 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 | 304 | return Status::OK(); | 318 | 304 | } |
_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 | 593 | const ColumnPtr& col_right_ptr) const { | 275 | 593 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 593 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 593 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 593 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 593 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 593 | if (!left_is_const && !right_is_const) { | 284 | 562 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 562 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 562 | vec_res.resize(col_left->get_data().size()); | 288 | 562 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 562 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 562 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 562 | vec_res); | 292 | | | 293 | 562 | block.replace_by_position(result, std::move(col_res)); | 294 | 562 | } else if (!left_is_const && right_is_const) { | 295 | 31 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 31 | vec_res.resize(col_left->size()); | 299 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 31 | col_right->get_element(0), vec_res); | 303 | | | 304 | 31 | block.replace_by_position(result, std::move(col_res)); | 305 | 31 | } 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 | 593 | return Status::OK(); | 318 | 593 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 121 | const ColumnPtr& col_right_ptr) const { | 275 | 121 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 121 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 121 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 121 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 121 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 121 | if (!left_is_const && !right_is_const) { | 284 | 101 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 101 | vec_res.resize(col_left->get_data().size()); | 288 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 101 | vec_res); | 292 | | | 293 | 101 | block.replace_by_position(result, std::move(col_res)); | 294 | 101 | } 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 | 121 | return Status::OK(); | 318 | 121 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 739 | const ColumnPtr& col_right_ptr) const { | 275 | 739 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 739 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 739 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 739 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 739 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 739 | if (!left_is_const && !right_is_const) { | 284 | 191 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 191 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 191 | vec_res.resize(col_left->get_data().size()); | 288 | 191 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 191 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 191 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 191 | vec_res); | 292 | | | 293 | 191 | block.replace_by_position(result, std::move(col_res)); | 294 | 548 | } else if (!left_is_const && right_is_const) { | 295 | 548 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 548 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 548 | vec_res.resize(col_left->size()); | 299 | 548 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 548 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 548 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 548 | col_right->get_element(0), vec_res); | 303 | | | 304 | 548 | block.replace_by_position(result, std::move(col_res)); | 305 | 548 | } 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 | 739 | return Status::OK(); | 318 | 739 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 666 | const ColumnPtr& col_right_ptr) const { | 275 | 666 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 666 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 666 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 666 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 666 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 667 | if (!left_is_const && !right_is_const) { | 284 | 194 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 194 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 194 | vec_res.resize(col_left->get_data().size()); | 288 | 194 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 194 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 194 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 194 | vec_res); | 292 | | | 293 | 194 | block.replace_by_position(result, std::move(col_res)); | 294 | 473 | } else if (!left_is_const && right_is_const) { | 295 | 473 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 473 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 473 | vec_res.resize(col_left->size()); | 299 | 473 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 473 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 473 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 473 | col_right->get_element(0), vec_res); | 303 | | | 304 | 473 | 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 | 666 | return Status::OK(); | 318 | 666 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 191 | const ColumnPtr& col_right_ptr) const { | 275 | 191 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 191 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 191 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 191 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 191 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 191 | if (!left_is_const && !right_is_const) { | 284 | 178 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 178 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 178 | vec_res.resize(col_left->get_data().size()); | 288 | 178 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 178 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 178 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 178 | vec_res); | 292 | | | 293 | 178 | block.replace_by_position(result, std::move(col_res)); | 294 | 178 | } 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 | 191 | return Status::OK(); | 318 | 191 | } |
_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 | 125 | const ColumnPtr& col_right_ptr) const { | 275 | 125 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 125 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 125 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 125 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 125 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 125 | if (!left_is_const && !right_is_const) { | 284 | 125 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 125 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 125 | vec_res.resize(col_left->get_data().size()); | 288 | 125 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 125 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 125 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 125 | vec_res); | 292 | | | 293 | 125 | block.replace_by_position(result, std::move(col_res)); | 294 | 125 | } 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 | 125 | return Status::OK(); | 318 | 125 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 359 | const ColumnPtr& col_right_ptr) const { | 275 | 359 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 359 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 359 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 359 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 359 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 359 | 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 | 206 | } else if (!left_is_const && right_is_const) { | 295 | 205 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 205 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 205 | vec_res.resize(col_left->size()); | 299 | 205 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 205 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 205 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 205 | col_right->get_element(0), vec_res); | 303 | | | 304 | 205 | block.replace_by_position(result, std::move(col_res)); | 305 | 205 | } 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 | 359 | return Status::OK(); | 318 | 359 | } |
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 | 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 | 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 | 19 | } else if (!left_is_const && right_is_const) { | 295 | 19 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 19 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 19 | vec_res.resize(col_left->size()); | 299 | 19 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 19 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 19 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 19 | col_right->get_element(0), vec_res); | 303 | | | 304 | 19 | block.replace_by_position(result, std::move(col_res)); | 305 | 19 | } 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 552 | const ColumnPtr& col_right_ptr) const { | 275 | 552 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 552 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 552 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 552 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 552 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 552 | if (!left_is_const && !right_is_const) { | 284 | 433 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 433 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 433 | vec_res.resize(col_left->get_data().size()); | 288 | 433 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 433 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 433 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 433 | vec_res); | 292 | | | 293 | 433 | block.replace_by_position(result, std::move(col_res)); | 294 | 433 | } else if (!left_is_const && right_is_const) { | 295 | 118 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 118 | vec_res.resize(col_left->size()); | 299 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 118 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 118 | col_right->get_element(0), vec_res); | 303 | | | 304 | 118 | block.replace_by_position(result, std::move(col_res)); | 305 | 118 | } 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 | 552 | return Status::OK(); | 318 | 552 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 42 | const ColumnPtr& col_right_ptr) const { | 275 | 42 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 42 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 42 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 42 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 42 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 42 | 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 | 42 | } else if (!left_is_const && right_is_const) { | 295 | 42 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 42 | vec_res.resize(col_left->size()); | 299 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 42 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 42 | col_right->get_element(0), vec_res); | 303 | | | 304 | 42 | block.replace_by_position(result, std::move(col_res)); | 305 | 42 | } 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 | 42 | return Status::OK(); | 318 | 42 | } |
_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 | 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 | 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 | 38 | } else if (!left_is_const && right_is_const) { | 295 | 38 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 38 | vec_res.resize(col_left->size()); | 299 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 38 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 38 | col_right->get_element(0), vec_res); | 303 | | | 304 | 38 | block.replace_by_position(result, std::move(col_res)); | 305 | 38 | } 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.59k | const ColumnPtr& col_right_ptr) const { | 275 | 1.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.59k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.59k | 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 | 1.52k | } else if (!left_is_const && right_is_const) { | 295 | 1.52k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.52k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.52k | vec_res.resize(col_left->size()); | 299 | 1.52k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.52k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.52k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.52k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.52k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.59k | return Status::OK(); | 318 | 1.59k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 231 | const ColumnPtr& col_right_ptr) const { | 275 | 231 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 231 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 231 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 231 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 231 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 231 | 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 | 192 | } else if (!left_is_const && right_is_const) { | 295 | 192 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 192 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 192 | vec_res.resize(col_left->size()); | 299 | 192 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 192 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 192 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 192 | col_right->get_element(0), vec_res); | 303 | | | 304 | 192 | block.replace_by_position(result, std::move(col_res)); | 305 | 192 | } 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 | 231 | return Status::OK(); | 318 | 231 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_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_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 | 138 | const ColumnPtr& col_right_ptr) const { | 275 | 138 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 138 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 138 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 138 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 138 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 138 | 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 | 118 | } else if (!left_is_const && right_is_const) { | 295 | 118 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 118 | vec_res.resize(col_left->size()); | 299 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 118 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 118 | col_right->get_element(0), vec_res); | 303 | | | 304 | 118 | block.replace_by_position(result, std::move(col_res)); | 305 | 118 | } 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 | 138 | return Status::OK(); | 318 | 138 | } |
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.36k | const ColumnWithTypeAndName& col_right) const { |
322 | 3.36k | auto call = [&](const auto& type) -> bool { |
323 | 3.36k | using DispatchType = std::decay_t<decltype(type)>; |
324 | 3.36k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
325 | 3.36k | block, result, col_left, col_right); |
326 | 3.36k | return true; |
327 | 3.36k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 165 | auto call = [&](const auto& type) -> bool { | 323 | 165 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 165 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 165 | block, result, col_left, col_right); | 326 | 165 | return true; | 327 | 165 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 181 | auto call = [&](const auto& type) -> bool { | 323 | 181 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 181 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 181 | block, result, col_left, col_right); | 326 | 181 | return true; | 327 | 181 | }; |
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 | 898 | auto call = [&](const auto& type) -> bool { | 323 | 898 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 898 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 898 | block, result, col_left, col_right); | 326 | 898 | return true; | 327 | 898 | }; |
_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 | 12 | auto call = [&](const auto& type) -> bool { | 323 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 12 | block, result, col_left, col_right); | 326 | 12 | return true; | 327 | 12 | }; |
_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 | 1.00k | auto call = [&](const auto& type) -> bool { | 323 | 1.00k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.00k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.00k | block, result, col_left, col_right); | 326 | 1.00k | return true; | 327 | 1.00k | }; |
_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 | 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 | }; |
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 | 47 | auto call = [&](const auto& type) -> bool { | 323 | 47 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 47 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 47 | block, result, col_left, col_right); | 326 | 47 | return true; | 327 | 47 | }; |
_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 | 198 | auto call = [&](const auto& type) -> bool { | 323 | 198 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 198 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 198 | block, result, col_left, col_right); | 326 | 198 | return true; | 327 | 198 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 227 | auto call = [&](const auto& type) -> bool { | 323 | 227 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 227 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 227 | block, result, col_left, col_right); | 326 | 227 | return true; | 327 | 227 | }; |
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 | 263 | auto call = [&](const auto& type) -> bool { | 323 | 263 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 263 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 263 | block, result, col_left, col_right); | 326 | 263 | return true; | 327 | 263 | }; |
_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 | 11 | auto call = [&](const auto& type) -> bool { | 323 | 11 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 11 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 11 | block, result, col_left, col_right); | 326 | 11 | return true; | 327 | 11 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ 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_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 | 39 | auto call = [&](const auto& type) -> bool { | 323 | 39 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 39 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 39 | block, result, col_left, col_right); | 326 | 39 | return true; | 327 | 39 | }; |
_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.36k | 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.36k | 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.36k | return Status::OK(); |
340 | 3.36k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 1.27k | const ColumnWithTypeAndName& col_right) const { | 322 | 1.27k | auto call = [&](const auto& type) -> bool { | 323 | 1.27k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.27k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.27k | block, result, col_left, col_right); | 326 | 1.27k | return true; | 327 | 1.27k | }; | 328 | | | 329 | 1.27k | 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.27k | 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.27k | return Status::OK(); | 340 | 1.27k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 119 | const ColumnWithTypeAndName& col_right) const { | 322 | 119 | auto call = [&](const auto& type) -> bool { | 323 | 119 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 119 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 119 | block, result, col_left, col_right); | 326 | 119 | return true; | 327 | 119 | }; | 328 | | | 329 | 119 | 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 | 119 | 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 | 119 | return Status::OK(); | 340 | 119 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 1.08k | const ColumnWithTypeAndName& col_right) const { | 322 | 1.08k | auto call = [&](const auto& type) -> bool { | 323 | 1.08k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.08k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.08k | block, result, col_left, col_right); | 326 | 1.08k | return true; | 327 | 1.08k | }; | 328 | | | 329 | 1.08k | 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.08k | 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.08k | return Status::OK(); | 340 | 1.08k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 100 | const ColumnWithTypeAndName& col_right) const { | 322 | 100 | auto call = [&](const auto& type) -> bool { | 323 | 100 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 100 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 100 | block, result, col_left, col_right); | 326 | 100 | return true; | 327 | 100 | }; | 328 | | | 329 | 100 | 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 | 100 | 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 | 100 | return Status::OK(); | 340 | 100 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 689 | const ColumnWithTypeAndName& col_right) const { | 322 | 689 | auto call = [&](const auto& type) -> bool { | 323 | 689 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 689 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 689 | block, result, col_left, col_right); | 326 | 689 | return true; | 327 | 689 | }; | 328 | | | 329 | 689 | 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 | 689 | 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 | 689 | return Status::OK(); | 340 | 689 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 96 | const ColumnWithTypeAndName& col_right) const { | 322 | 96 | auto call = [&](const auto& type) -> bool { | 323 | 96 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 96 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 96 | block, result, col_left, col_right); | 326 | 96 | return true; | 327 | 96 | }; | 328 | | | 329 | 96 | 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 | 96 | 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 | 96 | return Status::OK(); | 340 | 96 | } |
|
341 | | |
342 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
343 | 12.8k | const IColumn* c1) const { |
344 | 12.8k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
345 | 12.8k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
346 | 12.8k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
347 | 12.8k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
348 | 12.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 | 12.8k | DCHECK(!(c0_const && c1_const)); |
353 | 12.8k | const ColumnString::Chars* c0_const_chars = nullptr; |
354 | 12.8k | const ColumnString::Chars* c1_const_chars = nullptr; |
355 | 12.8k | ColumnString::Offset c0_const_size = 0; |
356 | 12.8k | ColumnString::Offset c1_const_size = 0; |
357 | | |
358 | 12.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 | 12.8k | if (c1_const) { |
372 | 11.9k | const ColumnString* c1_const_string = |
373 | 11.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
374 | | |
375 | 11.9k | if (c1_const_string) { |
376 | 11.9k | c1_const_chars = &c1_const_string->get_chars(); |
377 | 11.9k | 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.9k | } |
383 | | |
384 | 12.8k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
385 | | |
386 | 12.8k | auto c_res = ColumnUInt8::create(); |
387 | 12.8k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
388 | 12.8k | vec_res.resize(c0->size()); |
389 | | |
390 | 12.8k | if (c0_string && c1_string) { |
391 | 897 | StringImpl::string_vector_string_vector( |
392 | 897 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
393 | 897 | c1_string->get_offsets(), vec_res); |
394 | 11.9k | } else if (c0_string && c1_const) { |
395 | 11.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
396 | 11.9k | *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 | 12.8k | block.replace_by_position(result, std::move(c_res)); |
406 | 12.8k | return Status::OK(); |
407 | 12.8k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 11.5k | const IColumn* c1) const { | 344 | 11.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 11.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 11.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 11.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 11.5k | 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 | 11.5k | DCHECK(!(c0_const && c1_const)); | 353 | 11.5k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 11.5k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 11.5k | ColumnString::Offset c0_const_size = 0; | 356 | 11.5k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 11.5k | 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 | 11.5k | if (c1_const) { | 372 | 11.0k | const ColumnString* c1_const_string = | 373 | 11.0k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 11.0k | if (c1_const_string) { | 376 | 11.0k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 11.0k | 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.0k | } | 383 | | | 384 | 11.5k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 11.5k | auto c_res = ColumnUInt8::create(); | 387 | 11.5k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 11.5k | vec_res.resize(c0->size()); | 389 | | | 390 | 11.5k | if (c0_string && c1_string) { | 391 | 474 | StringImpl::string_vector_string_vector( | 392 | 474 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 474 | c1_string->get_offsets(), vec_res); | 394 | 11.0k | } else if (c0_string && c1_const) { | 395 | 11.0k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 11.0k | *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 | 11.5k | block.replace_by_position(result, std::move(c_res)); | 406 | 11.5k | return Status::OK(); | 407 | 11.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 133 | const IColumn* c1) const { | 344 | 133 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 133 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 133 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 133 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 133 | 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 | 133 | DCHECK(!(c0_const && c1_const)); | 353 | 133 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 133 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 133 | ColumnString::Offset c0_const_size = 0; | 356 | 133 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 133 | 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 | 133 | if (c1_const) { | 372 | 132 | const ColumnString* c1_const_string = | 373 | 132 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 132 | if (c1_const_string) { | 376 | 132 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 132 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 132 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 132 | } | 383 | | | 384 | 133 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 133 | auto c_res = ColumnUInt8::create(); | 387 | 133 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 133 | vec_res.resize(c0->size()); | 389 | | | 390 | 133 | 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 | 132 | } else if (c0_string && c1_const) { | 395 | 132 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 132 | *c1_const_chars, c1_const_size, vec_res); | 397 | 132 | } 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 | 133 | block.replace_by_position(result, std::move(c_res)); | 406 | 133 | return Status::OK(); | 407 | 133 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 221 | const IColumn* c1) const { | 344 | 221 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 221 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 221 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 221 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 221 | 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 | 221 | DCHECK(!(c0_const && c1_const)); | 353 | 221 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 221 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 221 | ColumnString::Offset c0_const_size = 0; | 356 | 221 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 221 | 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 | 221 | if (c1_const) { | 372 | 219 | const ColumnString* c1_const_string = | 373 | 219 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 219 | if (c1_const_string) { | 376 | 219 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 219 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 219 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 219 | } | 383 | | | 384 | 221 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 221 | auto c_res = ColumnUInt8::create(); | 387 | 221 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 221 | vec_res.resize(c0->size()); | 389 | | | 390 | 221 | 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 | 219 | } else if (c0_string && c1_const) { | 395 | 219 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 219 | *c1_const_chars, c1_const_size, vec_res); | 397 | 219 | } 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 | 221 | block.replace_by_position(result, std::move(c_res)); | 406 | 221 | return Status::OK(); | 407 | 221 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 259 | const IColumn* c1) const { | 344 | 259 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 259 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 259 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 259 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 259 | 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 | 259 | DCHECK(!(c0_const && c1_const)); | 353 | 259 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 259 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 259 | ColumnString::Offset c0_const_size = 0; | 356 | 259 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 259 | 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 | 259 | if (c1_const) { | 372 | 216 | const ColumnString* c1_const_string = | 373 | 216 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 216 | if (c1_const_string) { | 376 | 216 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 216 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 216 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 216 | } | 383 | | | 384 | 259 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 259 | auto c_res = ColumnUInt8::create(); | 387 | 259 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 259 | vec_res.resize(c0->size()); | 389 | | | 390 | 259 | 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 | 216 | } else if (c0_string && c1_const) { | 395 | 216 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 216 | *c1_const_chars, c1_const_size, vec_res); | 397 | 216 | } 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 | 259 | block.replace_by_position(result, std::move(c_res)); | 406 | 259 | return Status::OK(); | 407 | 259 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 512 | const IColumn* c1) const { | 344 | 512 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 512 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 512 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 512 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 512 | 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 | 512 | DCHECK(!(c0_const && c1_const)); | 353 | 512 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 512 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 512 | ColumnString::Offset c0_const_size = 0; | 356 | 512 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 512 | 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 | 512 | if (c1_const) { | 372 | 135 | const ColumnString* c1_const_string = | 373 | 135 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 135 | if (c1_const_string) { | 376 | 135 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 135 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 135 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 135 | } | 383 | | | 384 | 512 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 512 | auto c_res = ColumnUInt8::create(); | 387 | 512 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 512 | vec_res.resize(c0->size()); | 389 | | | 390 | 512 | if (c0_string && c1_string) { | 391 | 377 | StringImpl::string_vector_string_vector( | 392 | 377 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 377 | c1_string->get_offsets(), vec_res); | 394 | 377 | } else if (c0_string && c1_const) { | 395 | 135 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 135 | *c1_const_chars, c1_const_size, vec_res); | 397 | 135 | } 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 | 512 | block.replace_by_position(result, std::move(c_res)); | 406 | 512 | return Status::OK(); | 407 | 512 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 181 | const IColumn* c1) const { | 344 | 181 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 181 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 181 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 181 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 181 | 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 | 181 | DCHECK(!(c0_const && c1_const)); | 353 | 181 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 181 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 181 | ColumnString::Offset c0_const_size = 0; | 356 | 181 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 181 | 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 | 181 | if (c1_const) { | 372 | 181 | const ColumnString* c1_const_string = | 373 | 181 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 181 | if (c1_const_string) { | 376 | 181 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 181 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 181 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 181 | } | 383 | | | 384 | 181 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 181 | auto c_res = ColumnUInt8::create(); | 387 | 181 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 181 | vec_res.resize(c0->size()); | 389 | | | 390 | 181 | 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 | 181 | } else if (c0_string && c1_const) { | 395 | 181 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 181 | *c1_const_chars, c1_const_size, vec_res); | 397 | 181 | } 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 | 181 | block.replace_by_position(result, std::move(c_res)); | 406 | 181 | return Status::OK(); | 407 | 181 | } |
|
408 | | |
409 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
410 | 104 | const IColumn* c1) const { |
411 | 104 | bool c0_const = is_column_const(*c0); |
412 | 104 | bool c1_const = is_column_const(*c1); |
413 | | |
414 | 104 | DCHECK(!(c0_const && c1_const)); |
415 | | |
416 | 104 | auto c_res = ColumnUInt8::create(); |
417 | 104 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
418 | 104 | vec_res.resize(c0->size()); |
419 | | |
420 | 104 | if (c0_const) { |
421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
422 | 104 | } else if (c1_const) { |
423 | 95 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
424 | 95 | } else { |
425 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
426 | 9 | } |
427 | | |
428 | 104 | block.replace_by_position(result, std::move(c_res)); |
429 | 104 | } _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 | 22 | const IColumn* c1) const { | 411 | 22 | bool c0_const = is_column_const(*c0); | 412 | 22 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 22 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 22 | auto c_res = ColumnUInt8::create(); | 417 | 22 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 22 | vec_res.resize(c0->size()); | 419 | | | 420 | 22 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 22 | } else if (c1_const) { | 423 | 21 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 21 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 22 | block.replace_by_position(result, std::move(c_res)); | 429 | 22 | } |
_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 | 37 | const IColumn* c1) const { | 411 | 37 | bool c0_const = is_column_const(*c0); | 412 | 37 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 37 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 37 | auto c_res = ColumnUInt8::create(); | 417 | 37 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 37 | vec_res.resize(c0->size()); | 419 | | | 420 | 37 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 37 | } else if (c1_const) { | 423 | 37 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 37 | } else { | 425 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 0 | } | 427 | | | 428 | 37 | block.replace_by_position(result, std::move(c_res)); | 429 | 37 | } |
|
430 | | |
431 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
432 | 104 | const ColumnWithTypeAndName& c1) const { |
433 | 104 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
434 | 104 | return Status::OK(); |
435 | 104 | } _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 | 22 | const ColumnWithTypeAndName& c1) const { | 433 | 22 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 22 | return Status::OK(); | 435 | 22 | } |
_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 | 37 | const ColumnWithTypeAndName& c1) const { | 433 | 37 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 37 | return Status::OK(); | 435 | 37 | } |
|
436 | | |
437 | | public: |
438 | 218 | 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 | 35 | 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 | 322k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 250k | 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.89k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 31.7k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 440 | 2.72k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 31.3k | 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 | 322k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
444 | 322k | return std::make_shared<DataTypeUInt8>(); |
445 | 322k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 250k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 250k | return std::make_shared<DataTypeUInt8>(); | 445 | 250k | } |
_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.89k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 4.89k | return std::make_shared<DataTypeUInt8>(); | 445 | 4.89k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 31.7k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 31.7k | return std::make_shared<DataTypeUInt8>(); | 445 | 31.7k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 2.72k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 2.72k | return std::make_shared<DataTypeUInt8>(); | 445 | 2.72k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 31.3k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 31.3k | return std::make_shared<DataTypeUInt8>(); | 445 | 31.3k | } |
|
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.61k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
453 | 1.61k | DCHECK(arguments.size() == 1); |
454 | 1.61k | DCHECK(data_type_with_names.size() == 1); |
455 | 1.61k | DCHECK(iterators.size() == 1); |
456 | 1.61k | auto* iter = iterators[0]; |
457 | 1.61k | auto data_type_with_name = data_type_with_names[0]; |
458 | 1.61k | if (iter == nullptr) { |
459 | 0 | return Status::OK(); |
460 | 0 | } |
461 | 1.61k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
462 | 421 | return Status::OK(); |
463 | 421 | } |
464 | 1.19k | segment_v2::InvertedIndexQueryType query_type; |
465 | 1.19k | std::string_view name_view(name); |
466 | 1.19k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
467 | 744 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
468 | 744 | } else if (name_view == NameLess::name) { |
469 | 109 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
470 | 337 | } else if (name_view == NameLessOrEquals::name) { |
471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
472 | 239 | } else if (name_view == NameGreater::name) { |
473 | 114 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
474 | 135 | } else if (name_view == NameGreaterOrEquals::name) { |
475 | 135 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
476 | 18.4E | } else { |
477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
478 | 18.4E | } |
479 | | |
480 | 1.20k | if (segment_v2::is_range_query(query_type) && |
481 | 1.20k | 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.02k | Field param_value; |
486 | 1.02k | arguments[0].column->get(0, param_value); |
487 | 1.02k | if (param_value.is_null()) { |
488 | 1 | return Status::OK(); |
489 | 1 | } |
490 | 1.02k | auto param_type = arguments[0].type->get_primitive_type(); |
491 | 1.02k | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; |
492 | 1.02k | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( |
493 | 1.02k | param_type, ¶m_value, query_param)); |
494 | | |
495 | 1.02k | segment_v2::InvertedIndexParam param; |
496 | 1.02k | param.column_name = data_type_with_name.first; |
497 | 1.02k | param.column_type = data_type_with_name.second; |
498 | 1.02k | param.query_value = query_param->get_value(); |
499 | 1.02k | param.query_type = query_type; |
500 | 1.02k | param.num_rows = num_rows; |
501 | 1.02k | param.roaring = std::make_shared<roaring::Roaring>(); |
502 | 1.02k | param.analyzer_ctx = analyzer_ctx; |
503 | 1.02k | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
504 | 873 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
505 | 873 | if (iter->has_null()) { |
506 | 871 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
507 | 871 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
508 | 871 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
509 | 871 | } |
510 | 873 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
511 | 873 | bitmap_result = result; |
512 | 873 | bitmap_result.mask_out_null(); |
513 | | |
514 | 873 | if (name_view == NameNotEquals::name) { |
515 | 61 | roaring::Roaring full_result; |
516 | 61 | full_result.addRange(0, num_rows); |
517 | 61 | bitmap_result.op_not(&full_result); |
518 | 61 | } |
519 | | |
520 | 873 | return Status::OK(); |
521 | 873 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 728 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 728 | DCHECK(arguments.size() == 1); | 454 | 728 | DCHECK(data_type_with_names.size() == 1); | 455 | 728 | DCHECK(iterators.size() == 1); | 456 | 728 | auto* iter = iterators[0]; | 457 | 728 | auto data_type_with_name = data_type_with_names[0]; | 458 | 728 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 728 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 64 | return Status::OK(); | 463 | 64 | } | 464 | 664 | segment_v2::InvertedIndexQueryType query_type; | 465 | 664 | std::string_view name_view(name); | 466 | 674 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 674 | 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 | 674 | if (segment_v2::is_range_query(query_type) && | 481 | 674 | 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 | 674 | Field param_value; | 486 | 674 | arguments[0].column->get(0, param_value); | 487 | 674 | if (param_value.is_null()) { | 488 | 1 | return Status::OK(); | 489 | 1 | } | 490 | 673 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 673 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 673 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 673 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 672 | segment_v2::InvertedIndexParam param; | 496 | 672 | param.column_name = data_type_with_name.first; | 497 | 672 | param.column_type = data_type_with_name.second; | 498 | 672 | param.query_value = query_param->get_value(); | 499 | 672 | param.query_type = query_type; | 500 | 672 | param.num_rows = num_rows; | 501 | 672 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 672 | param.analyzer_ctx = analyzer_ctx; | 503 | 672 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 625 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 627 | if (iter->has_null()) { | 506 | 627 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 627 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 627 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 627 | } | 510 | 625 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 625 | bitmap_result = result; | 512 | 625 | bitmap_result.mask_out_null(); | 513 | | | 514 | 625 | 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 | 625 | return Status::OK(); | 521 | 625 | } |
_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 | 61 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 61 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 61 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 61 | } | 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 | 61 | roaring::Roaring full_result; | 516 | 61 | full_result.addRange(0, num_rows); | 517 | 61 | bitmap_result.op_not(&full_result); | 518 | 61 | } | 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 | 248 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 248 | DCHECK(arguments.size() == 1); | 454 | 248 | DCHECK(data_type_with_names.size() == 1); | 455 | 248 | DCHECK(iterators.size() == 1); | 456 | 248 | auto* iter = iterators[0]; | 457 | 248 | auto data_type_with_name = data_type_with_names[0]; | 458 | 248 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 248 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 113 | return Status::OK(); | 463 | 113 | } | 464 | 135 | segment_v2::InvertedIndexQueryType query_type; | 465 | 135 | std::string_view name_view(name); | 466 | 135 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 135 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 135 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 135 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 135 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 135 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 135 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 135 | if (segment_v2::is_range_query(query_type) && | 481 | 135 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 59 | return Status::OK(); | 484 | 59 | } | 485 | 76 | Field param_value; | 486 | 76 | arguments[0].column->get(0, param_value); | 487 | 76 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 76 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 76 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 76 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 76 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 76 | segment_v2::InvertedIndexParam param; | 496 | 76 | param.column_name = data_type_with_name.first; | 497 | 76 | param.column_type = data_type_with_name.second; | 498 | 76 | param.query_value = query_param->get_value(); | 499 | 76 | param.query_type = query_type; | 500 | 76 | param.num_rows = num_rows; | 501 | 76 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 76 | param.analyzer_ctx = analyzer_ctx; | 503 | 76 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 35 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 35 | if (iter->has_null()) { | 506 | 34 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 34 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 34 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 34 | } | 510 | 35 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 35 | bitmap_result = result; | 512 | 35 | bitmap_result.mask_out_null(); | 513 | | | 514 | 35 | 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 | 35 | return Status::OK(); | 521 | 35 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 171 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 171 | DCHECK(arguments.size() == 1); | 454 | 171 | DCHECK(data_type_with_names.size() == 1); | 455 | 171 | DCHECK(iterators.size() == 1); | 456 | 171 | auto* iter = iterators[0]; | 457 | 171 | auto data_type_with_name = data_type_with_names[0]; | 458 | 171 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 171 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 61 | return Status::OK(); | 463 | 61 | } | 464 | 110 | segment_v2::InvertedIndexQueryType query_type; | 465 | 110 | std::string_view name_view(name); | 466 | 110 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 110 | } else if (name_view == NameLess::name) { | 469 | 109 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 109 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 1 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 1 | } else { | 477 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 1 | } | 479 | | | 480 | 109 | if (segment_v2::is_range_query(query_type) && | 481 | 109 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 26 | return Status::OK(); | 484 | 26 | } | 485 | 83 | Field param_value; | 486 | 83 | arguments[0].column->get(0, param_value); | 487 | 83 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 83 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 83 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 83 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 83 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 83 | segment_v2::InvertedIndexParam param; | 496 | 83 | param.column_name = data_type_with_name.first; | 497 | 83 | param.column_type = data_type_with_name.second; | 498 | 83 | param.query_value = query_param->get_value(); | 499 | 83 | param.query_type = query_type; | 500 | 83 | param.num_rows = num_rows; | 501 | 83 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 83 | param.analyzer_ctx = analyzer_ctx; | 503 | 83 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 64 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 65 | if (iter->has_null()) { | 506 | 65 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 65 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 65 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 65 | } | 510 | 64 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 64 | bitmap_result = result; | 512 | 64 | bitmap_result.mask_out_null(); | 513 | | | 514 | 64 | 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 | 64 | return Status::OK(); | 521 | 64 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 210 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 210 | DCHECK(arguments.size() == 1); | 454 | 210 | DCHECK(data_type_with_names.size() == 1); | 455 | 210 | DCHECK(iterators.size() == 1); | 456 | 210 | auto* iter = iterators[0]; | 457 | 210 | auto data_type_with_name = data_type_with_names[0]; | 458 | 210 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 210 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 113 | return Status::OK(); | 463 | 113 | } | 464 | 97 | segment_v2::InvertedIndexQueryType query_type; | 465 | 97 | std::string_view name_view(name); | 466 | 98 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 97 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 98 | } else if (name_view == NameLessOrEquals::name) { | 471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 18.4E | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 18.4E | } else { | 477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 18.4E | } | 479 | | | 480 | 98 | if (segment_v2::is_range_query(query_type) && | 481 | 98 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 58 | return Status::OK(); | 484 | 58 | } | 485 | 40 | Field param_value; | 486 | 40 | arguments[0].column->get(0, param_value); | 487 | 40 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 40 | 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 | 18 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 18 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 18 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 18 | } | 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 | 46.9k | uint32_t result, size_t input_rows_count) const override { |
525 | 46.9k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
526 | 46.9k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
527 | | |
528 | 46.9k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
529 | 46.9k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
530 | 46.9k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
531 | 46.9k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
532 | | |
533 | 46.9k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
534 | 46.9k | 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 | 46.9k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
540 | 46.9k | 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 | 77.6k | auto can_compare = [](PrimitiveType t) -> bool { |
563 | 77.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
564 | 77.6k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 31.3k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 31.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 31.3k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 2.70k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 2.70k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 2.70k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 20.4k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 20.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 20.4k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 5.70k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 5.70k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 5.70k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 11.6k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 11.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 11.6k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 5.76k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 5.76k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 5.76k | }; |
|
565 | | |
566 | 46.9k | if (can_compare(left_type->get_primitive_type()) && |
567 | 46.9k | 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 | 30.7k | 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 | 30.7k | } |
575 | | |
576 | 46.9k | auto compare_type = left_type->get_primitive_type(); |
577 | 46.9k | switch (compare_type) { |
578 | 189 | case TYPE_BOOLEAN: |
579 | 189 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
580 | 5.33k | case TYPE_DATEV2: |
581 | 5.33k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
582 | 1.02k | case TYPE_DATETIMEV2: |
583 | 1.02k | 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 | 4.69k | case TYPE_TINYINT: |
587 | 4.69k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
588 | 1.52k | case TYPE_SMALLINT: |
589 | 1.52k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
590 | 11.2k | case TYPE_INT: |
591 | 11.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
592 | 3.68k | case TYPE_BIGINT: |
593 | 3.68k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
594 | 588 | case TYPE_LARGEINT: |
595 | 588 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
596 | 70 | case TYPE_IPV4: |
597 | 70 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
598 | 48 | case TYPE_IPV6: |
599 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
600 | 559 | case TYPE_FLOAT: |
601 | 559 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
602 | 1.64k | case TYPE_DOUBLE: |
603 | 1.64k | 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 | 390 | case TYPE_DECIMAL32: |
609 | 983 | case TYPE_DECIMAL64: |
610 | 3.26k | case TYPE_DECIMAL128I: |
611 | 3.36k | case TYPE_DECIMAL256: |
612 | 3.36k | return execute_decimal(block, result, col_with_type_and_name_left, |
613 | 3.36k | col_with_type_and_name_right); |
614 | 876 | case TYPE_CHAR: |
615 | 6.88k | case TYPE_VARCHAR: |
616 | 12.8k | case TYPE_STRING: |
617 | 12.8k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
618 | 104 | default: |
619 | 104 | return execute_generic(block, result, col_with_type_and_name_left, |
620 | 104 | col_with_type_and_name_right); |
621 | 46.9k | } |
622 | 0 | return Status::OK(); |
623 | 46.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 22.0k | uint32_t result, size_t input_rows_count) const override { | 525 | 22.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 22.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 22.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 22.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 22.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 22.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 22.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 22.0k | 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 | 22.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 22.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 | 22.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 22.0k | }; | 565 | | | 566 | 22.0k | if (can_compare(left_type->get_primitive_type()) && | 567 | 22.0k | 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.26k | 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.26k | } | 575 | | | 576 | 22.0k | auto compare_type = left_type->get_primitive_type(); | 577 | 22.0k | switch (compare_type) { | 578 | 88 | case TYPE_BOOLEAN: | 579 | 88 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 1.09k | case TYPE_DATEV2: | 581 | 1.09k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 527 | case TYPE_DATETIMEV2: | 583 | 527 | 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.26k | case TYPE_TINYINT: | 587 | 3.26k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 459 | case TYPE_SMALLINT: | 589 | 459 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 2.19k | case TYPE_INT: | 591 | 2.19k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 989 | case TYPE_BIGINT: | 593 | 989 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 119 | case TYPE_LARGEINT: | 595 | 119 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 31 | case TYPE_IPV4: | 597 | 31 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 30 | case TYPE_IPV6: | 599 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 109 | case TYPE_FLOAT: | 601 | 109 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 365 | case TYPE_DOUBLE: | 603 | 365 | 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 | 165 | case TYPE_DECIMAL32: | 609 | 346 | case TYPE_DECIMAL64: | 610 | 1.24k | case TYPE_DECIMAL128I: | 611 | 1.27k | case TYPE_DECIMAL256: | 612 | 1.27k | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 1.27k | col_with_type_and_name_right); | 614 | 631 | case TYPE_CHAR: | 615 | 6.10k | case TYPE_VARCHAR: | 616 | 11.5k | case TYPE_STRING: | 617 | 11.5k | 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 | 22.0k | } | 622 | 0 | return Status::OK(); | 623 | 22.0k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 1.48k | uint32_t result, size_t input_rows_count) const override { | 525 | 1.48k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 1.48k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 1.48k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 1.48k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 1.48k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 1.48k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 1.48k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 1.48k | 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.48k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 1.48k | 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.48k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 1.48k | }; | 565 | | | 566 | 1.48k | if (can_compare(left_type->get_primitive_type()) && | 567 | 1.48k | 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.22k | 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.22k | } | 575 | | | 576 | 1.48k | auto compare_type = left_type->get_primitive_type(); | 577 | 1.48k | 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 | 92 | case TYPE_TINYINT: | 587 | 92 | 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 | 544 | case TYPE_INT: | 591 | 544 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 422 | case TYPE_BIGINT: | 593 | 422 | 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 | 52 | case TYPE_FLOAT: | 601 | 52 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 72 | case TYPE_DOUBLE: | 603 | 72 | 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 | 61 | case TYPE_DECIMAL64: | 610 | 89 | case TYPE_DECIMAL128I: | 611 | 119 | case TYPE_DECIMAL256: | 612 | 119 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 119 | col_with_type_and_name_right); | 614 | 1 | case TYPE_CHAR: | 615 | 30 | case TYPE_VARCHAR: | 616 | 133 | case TYPE_STRING: | 617 | 133 | 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.48k | } | 622 | 0 | return Status::OK(); | 623 | 1.48k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 10.8k | uint32_t result, size_t input_rows_count) const override { | 525 | 10.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 10.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 10.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 10.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 10.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 10.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 10.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 10.8k | 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.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 10.8k | 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.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 10.8k | }; | 565 | | | 566 | 10.8k | if (can_compare(left_type->get_primitive_type()) && | 567 | 10.8k | 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.57k | 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.57k | } | 575 | | | 576 | 10.8k | auto compare_type = left_type->get_primitive_type(); | 577 | 10.8k | 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 | 1.09k | case TYPE_DATEV2: | 581 | 1.09k | 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 | 667 | case TYPE_TINYINT: | 587 | 667 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 875 | case TYPE_SMALLINT: | 589 | 875 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 4.69k | case TYPE_INT: | 591 | 4.69k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 1.22k | case TYPE_BIGINT: | 593 | 1.22k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 247 | case TYPE_LARGEINT: | 595 | 247 | 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 | 227 | case TYPE_FLOAT: | 601 | 227 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 534 | case TYPE_DOUBLE: | 603 | 534 | 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 | 12 | case TYPE_DECIMAL32: | 609 | 78 | case TYPE_DECIMAL64: | 610 | 1.08k | case TYPE_DECIMAL128I: | 611 | 1.08k | case TYPE_DECIMAL256: | 612 | 1.08k | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 1.08k | col_with_type_and_name_right); | 614 | 21 | case TYPE_CHAR: | 615 | 91 | case TYPE_VARCHAR: | 616 | 221 | case TYPE_STRING: | 617 | 221 | 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.8k | } | 622 | 0 | return Status::OK(); | 623 | 10.8k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 3.03k | uint32_t result, size_t input_rows_count) const override { | 525 | 3.03k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 3.03k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 3.03k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 3.03k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 3.03k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 3.03k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 3.03k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 3.03k | 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 | 3.03k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 3.03k | 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 | 3.03k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 3.03k | }; | 565 | | | 566 | 3.03k | if (can_compare(left_type->get_primitive_type()) && | 567 | 3.03k | 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 | 2.67k | 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 | 2.67k | } | 575 | | | 576 | 3.03k | auto compare_type = left_type->get_primitive_type(); | 577 | 3.03k | switch (compare_type) { | 578 | 12 | case TYPE_BOOLEAN: | 579 | 12 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 517 | case TYPE_DATEV2: | 581 | 517 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 153 | case TYPE_DATETIMEV2: | 583 | 153 | 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 | 33 | case TYPE_SMALLINT: | 589 | 33 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 1.51k | case TYPE_INT: | 591 | 1.51k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 153 | case TYPE_BIGINT: | 593 | 153 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 9 | case TYPE_LARGEINT: | 595 | 9 | 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 | 26 | case TYPE_FLOAT: | 601 | 26 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 180 | case TYPE_DOUBLE: | 603 | 180 | 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 | 32 | case TYPE_DECIMAL64: | 610 | 79 | case TYPE_DECIMAL128I: | 611 | 100 | case TYPE_DECIMAL256: | 612 | 100 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 100 | col_with_type_and_name_right); | 614 | 42 | case TYPE_CHAR: | 615 | 191 | case TYPE_VARCHAR: | 616 | 259 | case TYPE_STRING: | 617 | 259 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 22 | default: | 619 | 22 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 22 | col_with_type_and_name_right); | 621 | 3.03k | } | 622 | 0 | return Status::OK(); | 623 | 3.03k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 6.45k | uint32_t result, size_t input_rows_count) const override { | 525 | 6.45k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 6.45k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 6.45k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 6.45k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 6.45k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 6.45k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 6.45k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 6.45k | 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.45k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 6.45k | 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.45k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 6.45k | }; | 565 | | | 566 | 6.45k | if (can_compare(left_type->get_primitive_type()) && | 567 | 6.45k | 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.23k | 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.23k | } | 575 | | | 576 | 6.45k | auto compare_type = left_type->get_primitive_type(); | 577 | 6.45k | switch (compare_type) { | 578 | 70 | case TYPE_BOOLEAN: | 579 | 70 | 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 | 304 | case TYPE_DATETIMEV2: | 583 | 304 | 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 | 593 | case TYPE_TINYINT: | 587 | 593 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 121 | case TYPE_SMALLINT: | 589 | 121 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 739 | case TYPE_INT: | 591 | 739 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 666 | case TYPE_BIGINT: | 593 | 666 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 191 | case TYPE_LARGEINT: | 595 | 191 | 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 | 125 | case TYPE_FLOAT: | 601 | 125 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 359 | case TYPE_DOUBLE: | 603 | 359 | 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 | 198 | case TYPE_DECIMAL32: | 609 | 425 | case TYPE_DECIMAL64: | 610 | 688 | case TYPE_DECIMAL128I: | 611 | 689 | case TYPE_DECIMAL256: | 612 | 689 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 689 | col_with_type_and_name_right); | 614 | 160 | case TYPE_CHAR: | 615 | 341 | case TYPE_VARCHAR: | 616 | 512 | case TYPE_STRING: | 617 | 512 | 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.45k | } | 622 | 0 | return Status::OK(); | 623 | 6.45k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 3.02k | uint32_t result, size_t input_rows_count) const override { | 525 | 3.02k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 3.02k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 3.02k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 3.02k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 3.02k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 3.02k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 3.02k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 3.02k | 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 | 3.02k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 3.02k | 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 | 3.02k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 3.02k | }; | 565 | | | 566 | 3.02k | if (can_compare(left_type->get_primitive_type()) && | 567 | 3.02k | 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 | 2.74k | 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 | 2.74k | } | 575 | | | 576 | 3.02k | auto compare_type = left_type->get_primitive_type(); | 577 | 3.02k | switch (compare_type) { | 578 | 19 | case TYPE_BOOLEAN: | 579 | 19 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 552 | case TYPE_DATEV2: | 581 | 552 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 42 | case TYPE_DATETIMEV2: | 583 | 42 | 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 | 39 | case TYPE_TINYINT: | 587 | 39 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 39 | case TYPE_SMALLINT: | 589 | 39 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 1.59k | case TYPE_INT: | 591 | 1.59k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 231 | case TYPE_BIGINT: | 593 | 231 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 22 | case TYPE_LARGEINT: | 595 | 22 | 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 | 138 | case TYPE_DOUBLE: | 603 | 138 | 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 | 11 | case TYPE_DECIMAL32: | 609 | 41 | case TYPE_DECIMAL64: | 610 | 80 | case TYPE_DECIMAL128I: | 611 | 96 | case TYPE_DECIMAL256: | 612 | 96 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 96 | col_with_type_and_name_right); | 614 | 21 | case TYPE_CHAR: | 615 | 128 | case TYPE_VARCHAR: | 616 | 181 | case TYPE_STRING: | 617 | 181 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 37 | default: | 619 | 37 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 37 | col_with_type_and_name_right); | 621 | 3.02k | } | 622 | 0 | return Status::OK(); | 623 | 3.02k | } |
|
624 | | }; |
625 | | |
626 | | #include "common/compile_check_end.h" |
627 | | } // namespace doris |