be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <limits> |
24 | | #include <type_traits> |
25 | | |
26 | | #include "common/logging.h" |
27 | | #include "core/accurate_comparison.h" |
28 | | #include "core/assert_cast.h" |
29 | | #include "core/column/column_const.h" |
30 | | #include "core/column/column_decimal.h" |
31 | | #include "core/column/column_nullable.h" |
32 | | #include "core/column/column_string.h" |
33 | | #include "core/data_type/data_type_number.h" |
34 | | #include "core/data_type/data_type_string.h" |
35 | | #include "core/data_type/define_primitive_type.h" |
36 | | #include "core/decimal_comparison.h" |
37 | | #include "core/field.h" |
38 | | #include "core/memcmp_small.h" |
39 | | #include "core/value/vdatetime_value.h" |
40 | | #include "exprs/function/function.h" |
41 | | #include "exprs/function/function_helpers.h" |
42 | | #include "exprs/function/functions_logical.h" |
43 | | #include "storage/index/index_reader_helper.h" |
44 | | |
45 | | namespace doris { |
46 | | |
47 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
48 | | * The comparison functions always return 0 or 1 (UInt8). |
49 | | * |
50 | | * You can compare the following types: |
51 | | * - numbers and decimals; |
52 | | * - strings and fixed strings; |
53 | | * - dates; |
54 | | * - datetimes; |
55 | | * within each group, but not from different groups; |
56 | | * - tuples (lexicographic comparison). |
57 | | * |
58 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
59 | | */ |
60 | | |
61 | | template <typename A, typename B, typename Op> |
62 | | struct NumComparisonImpl { |
63 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
64 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
65 | 8.22k | PaddedPODArray<UInt8>& c) { |
66 | 8.22k | size_t size = a.size(); |
67 | 8.22k | const A* __restrict a_pos = a.data(); |
68 | 8.22k | const B* __restrict b_pos = b.data(); |
69 | 8.22k | UInt8* __restrict c_pos = c.data(); |
70 | 8.22k | const A* __restrict a_end = a_pos + size; |
71 | | |
72 | 5.82M | while (a_pos < a_end) { |
73 | 5.81M | *c_pos = Op::apply(*a_pos, *b_pos); |
74 | 5.81M | ++a_pos; |
75 | 5.81M | ++b_pos; |
76 | 5.81M | ++c_pos; |
77 | 5.81M | } |
78 | 8.22k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 76 | PaddedPODArray<UInt8>& c) { | 66 | 76 | size_t size = a.size(); | 67 | 76 | const A* __restrict a_pos = a.data(); | 68 | 76 | const B* __restrict b_pos = b.data(); | 69 | 76 | UInt8* __restrict c_pos = c.data(); | 70 | 76 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 152 | while (a_pos < a_end) { | 73 | 76 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 76 | ++a_pos; | 75 | 76 | ++b_pos; | 76 | 76 | ++c_pos; | 77 | 76 | } | 78 | 76 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 247 | PaddedPODArray<UInt8>& c) { | 66 | 247 | size_t size = a.size(); | 67 | 247 | const A* __restrict a_pos = a.data(); | 68 | 247 | const B* __restrict b_pos = b.data(); | 69 | 247 | UInt8* __restrict c_pos = c.data(); | 70 | 247 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 500 | while (a_pos < a_end) { | 73 | 253 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 253 | ++a_pos; | 75 | 253 | ++b_pos; | 76 | 253 | ++c_pos; | 77 | 253 | } | 78 | 247 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 294 | PaddedPODArray<UInt8>& c) { | 66 | 294 | size_t size = a.size(); | 67 | 294 | const A* __restrict a_pos = a.data(); | 68 | 294 | const B* __restrict b_pos = b.data(); | 69 | 294 | UInt8* __restrict c_pos = c.data(); | 70 | 294 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 606 | while (a_pos < a_end) { | 73 | 312 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 312 | ++a_pos; | 75 | 312 | ++b_pos; | 76 | 312 | ++c_pos; | 77 | 312 | } | 78 | 294 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 2 | PaddedPODArray<UInt8>& c) { | 66 | 2 | size_t size = a.size(); | 67 | 2 | const A* __restrict a_pos = a.data(); | 68 | 2 | const B* __restrict b_pos = b.data(); | 69 | 2 | UInt8* __restrict c_pos = c.data(); | 70 | 2 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 12 | while (a_pos < a_end) { | 73 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 10 | ++a_pos; | 75 | 10 | ++b_pos; | 76 | 10 | ++c_pos; | 77 | 10 | } | 78 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 177 | PaddedPODArray<UInt8>& c) { | 66 | 177 | size_t size = a.size(); | 67 | 177 | const A* __restrict a_pos = a.data(); | 68 | 177 | const B* __restrict b_pos = b.data(); | 69 | 177 | UInt8* __restrict c_pos = c.data(); | 70 | 177 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 496 | 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 | 177 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 84 | PaddedPODArray<UInt8>& c) { | 66 | 84 | size_t size = a.size(); | 67 | 84 | const A* __restrict a_pos = a.data(); | 68 | 84 | const B* __restrict b_pos = b.data(); | 69 | 84 | UInt8* __restrict c_pos = c.data(); | 70 | 84 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 168 | while (a_pos < a_end) { | 73 | 84 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 84 | ++a_pos; | 75 | 84 | ++b_pos; | 76 | 84 | ++c_pos; | 77 | 84 | } | 78 | 84 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 312 | PaddedPODArray<UInt8>& c) { | 66 | 312 | size_t size = a.size(); | 67 | 312 | const A* __restrict a_pos = a.data(); | 68 | 312 | const B* __restrict b_pos = b.data(); | 69 | 312 | UInt8* __restrict c_pos = c.data(); | 70 | 312 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.95k | while (a_pos < a_end) { | 73 | 1.63k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.63k | ++a_pos; | 75 | 1.63k | ++b_pos; | 76 | 1.63k | ++c_pos; | 77 | 1.63k | } | 78 | 312 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 277 | PaddedPODArray<UInt8>& c) { | 66 | 277 | size_t size = a.size(); | 67 | 277 | const A* __restrict a_pos = a.data(); | 68 | 277 | const B* __restrict b_pos = b.data(); | 69 | 277 | UInt8* __restrict c_pos = c.data(); | 70 | 277 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.65k | while (a_pos < a_end) { | 73 | 1.38k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.38k | ++a_pos; | 75 | 1.38k | ++b_pos; | 76 | 1.38k | ++c_pos; | 77 | 1.38k | } | 78 | 277 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 97 | PaddedPODArray<UInt8>& c) { | 66 | 97 | size_t size = a.size(); | 67 | 97 | const A* __restrict a_pos = a.data(); | 68 | 97 | const B* __restrict b_pos = b.data(); | 69 | 97 | UInt8* __restrict c_pos = c.data(); | 70 | 97 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 194 | while (a_pos < a_end) { | 73 | 97 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 97 | ++a_pos; | 75 | 97 | ++b_pos; | 76 | 97 | ++c_pos; | 77 | 97 | } | 78 | 97 | } |
_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 | 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 | 255 | while (a_pos < a_end) { | 73 | 137 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 137 | ++a_pos; | 75 | 137 | ++b_pos; | 76 | 137 | ++c_pos; | 77 | 137 | } | 78 | 118 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 111 | PaddedPODArray<UInt8>& c) { | 66 | 111 | size_t size = a.size(); | 67 | 111 | const A* __restrict a_pos = a.data(); | 68 | 111 | const B* __restrict b_pos = b.data(); | 69 | 111 | UInt8* __restrict c_pos = c.data(); | 70 | 111 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 243 | while (a_pos < a_end) { | 73 | 132 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 132 | ++a_pos; | 75 | 132 | ++b_pos; | 76 | 132 | ++c_pos; | 77 | 132 | } | 78 | 111 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 4 | PaddedPODArray<UInt8>& c) { | 66 | 4 | size_t size = a.size(); | 67 | 4 | const A* __restrict a_pos = a.data(); | 68 | 4 | const B* __restrict b_pos = b.data(); | 69 | 4 | UInt8* __restrict c_pos = c.data(); | 70 | 4 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 8 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 39 | PaddedPODArray<UInt8>& c) { | 66 | 39 | size_t size = a.size(); | 67 | 39 | const A* __restrict a_pos = a.data(); | 68 | 39 | const B* __restrict b_pos = b.data(); | 69 | 39 | UInt8* __restrict c_pos = c.data(); | 70 | 39 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 108 | while (a_pos < a_end) { | 73 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 69 | ++a_pos; | 75 | 69 | ++b_pos; | 76 | 69 | ++c_pos; | 77 | 69 | } | 78 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 56 | PaddedPODArray<UInt8>& c) { | 66 | 56 | size_t size = a.size(); | 67 | 56 | const A* __restrict a_pos = a.data(); | 68 | 56 | const B* __restrict b_pos = b.data(); | 69 | 56 | UInt8* __restrict c_pos = c.data(); | 70 | 56 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 252 | while (a_pos < a_end) { | 73 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 196 | ++a_pos; | 75 | 196 | ++b_pos; | 76 | 196 | ++c_pos; | 77 | 196 | } | 78 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 601 | PaddedPODArray<UInt8>& c) { | 66 | 601 | size_t size = a.size(); | 67 | 601 | const A* __restrict a_pos = a.data(); | 68 | 601 | const B* __restrict b_pos = b.data(); | 69 | 601 | UInt8* __restrict c_pos = c.data(); | 70 | 601 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 298k | while (a_pos < a_end) { | 73 | 297k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 297k | ++a_pos; | 75 | 297k | ++b_pos; | 76 | 297k | ++c_pos; | 77 | 297k | } | 78 | 601 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 394 | PaddedPODArray<UInt8>& c) { | 66 | 394 | size_t size = a.size(); | 67 | 394 | const A* __restrict a_pos = a.data(); | 68 | 394 | const B* __restrict b_pos = b.data(); | 69 | 394 | UInt8* __restrict c_pos = c.data(); | 70 | 394 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6.67k | while (a_pos < a_end) { | 73 | 6.28k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 6.28k | ++a_pos; | 75 | 6.28k | ++b_pos; | 76 | 6.28k | ++c_pos; | 77 | 6.28k | } | 78 | 394 | } |
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 | 987 | PaddedPODArray<UInt8>& c) { | 66 | 987 | size_t size = a.size(); | 67 | 987 | const A* __restrict a_pos = a.data(); | 68 | 987 | const B* __restrict b_pos = b.data(); | 69 | 987 | UInt8* __restrict c_pos = c.data(); | 70 | 987 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 3.69M | while (a_pos < a_end) { | 73 | 3.69M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 3.69M | ++a_pos; | 75 | 3.69M | ++b_pos; | 76 | 3.69M | ++c_pos; | 77 | 3.69M | } | 78 | 987 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 38 | PaddedPODArray<UInt8>& c) { | 66 | 38 | size_t size = a.size(); | 67 | 38 | const A* __restrict a_pos = a.data(); | 68 | 38 | const B* __restrict b_pos = b.data(); | 69 | 38 | UInt8* __restrict c_pos = c.data(); | 70 | 38 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 322 | while (a_pos < a_end) { | 73 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 284 | ++a_pos; | 75 | 284 | ++b_pos; | 76 | 284 | ++c_pos; | 77 | 284 | } | 78 | 38 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 112 | PaddedPODArray<UInt8>& c) { | 66 | 112 | size_t size = a.size(); | 67 | 112 | const A* __restrict a_pos = a.data(); | 68 | 112 | const B* __restrict b_pos = b.data(); | 69 | 112 | UInt8* __restrict c_pos = c.data(); | 70 | 112 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 376 | while (a_pos < a_end) { | 73 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 264 | ++a_pos; | 75 | 264 | ++b_pos; | 76 | 264 | ++c_pos; | 77 | 264 | } | 78 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 39 | PaddedPODArray<UInt8>& c) { | 66 | 39 | size_t size = a.size(); | 67 | 39 | const A* __restrict a_pos = a.data(); | 68 | 39 | const B* __restrict b_pos = b.data(); | 69 | 39 | UInt8* __restrict c_pos = c.data(); | 70 | 39 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 235 | while (a_pos < a_end) { | 73 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 196 | ++a_pos; | 75 | 196 | ++b_pos; | 76 | 196 | ++c_pos; | 77 | 196 | } | 78 | 39 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 65 | PaddedPODArray<UInt8>& c) { | 66 | 65 | size_t size = a.size(); | 67 | 65 | const A* __restrict a_pos = a.data(); | 68 | 65 | const B* __restrict b_pos = b.data(); | 69 | 65 | UInt8* __restrict c_pos = c.data(); | 70 | 65 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 579 | while (a_pos < a_end) { | 73 | 514 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 514 | ++a_pos; | 75 | 514 | ++b_pos; | 76 | 514 | ++c_pos; | 77 | 514 | } | 78 | 65 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 2 | PaddedPODArray<UInt8>& c) { | 66 | 2 | size_t size = a.size(); | 67 | 2 | const A* __restrict a_pos = a.data(); | 68 | 2 | const B* __restrict b_pos = b.data(); | 69 | 2 | UInt8* __restrict c_pos = c.data(); | 70 | 2 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 29 | PaddedPODArray<UInt8>& c) { | 66 | 29 | size_t size = a.size(); | 67 | 29 | const A* __restrict a_pos = a.data(); | 68 | 29 | const B* __restrict b_pos = b.data(); | 69 | 29 | UInt8* __restrict c_pos = c.data(); | 70 | 29 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 102 | while (a_pos < a_end) { | 73 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 73 | ++a_pos; | 75 | 73 | ++b_pos; | 76 | 73 | ++c_pos; | 77 | 73 | } | 78 | 29 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 8 | PaddedPODArray<UInt8>& c) { | 66 | 8 | size_t size = a.size(); | 67 | 8 | const A* __restrict a_pos = a.data(); | 68 | 8 | const B* __restrict b_pos = b.data(); | 69 | 8 | UInt8* __restrict c_pos = c.data(); | 70 | 8 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 67 | while (a_pos < a_end) { | 73 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 59 | ++a_pos; | 75 | 59 | ++b_pos; | 76 | 59 | ++c_pos; | 77 | 59 | } | 78 | 8 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 3 | PaddedPODArray<UInt8>& c) { | 66 | 3 | size_t size = a.size(); | 67 | 3 | const A* __restrict a_pos = a.data(); | 68 | 3 | const B* __restrict b_pos = b.data(); | 69 | 3 | UInt8* __restrict c_pos = c.data(); | 70 | 3 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 7 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 3 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 9 | PaddedPODArray<UInt8>& c) { | 66 | 9 | size_t size = a.size(); | 67 | 9 | const A* __restrict a_pos = a.data(); | 68 | 9 | const B* __restrict b_pos = b.data(); | 69 | 9 | UInt8* __restrict c_pos = c.data(); | 70 | 9 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 68 | while (a_pos < a_end) { | 73 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 59 | ++a_pos; | 75 | 59 | ++b_pos; | 76 | 59 | ++c_pos; | 77 | 59 | } | 78 | 9 | } |
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 | 22 | PaddedPODArray<UInt8>& c) { | 66 | 22 | size_t size = a.size(); | 67 | 22 | const A* __restrict a_pos = a.data(); | 68 | 22 | const B* __restrict b_pos = b.data(); | 69 | 22 | UInt8* __restrict c_pos = c.data(); | 70 | 22 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 66 | while (a_pos < a_end) { | 73 | 44 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 44 | ++a_pos; | 75 | 44 | ++b_pos; | 76 | 44 | ++c_pos; | 77 | 44 | } | 78 | 22 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 81 | PaddedPODArray<UInt8>& c) { | 66 | 81 | size_t size = a.size(); | 67 | 81 | const A* __restrict a_pos = a.data(); | 68 | 81 | const B* __restrict b_pos = b.data(); | 69 | 81 | UInt8* __restrict c_pos = c.data(); | 70 | 81 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 162 | while (a_pos < a_end) { | 73 | 81 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 81 | ++a_pos; | 75 | 81 | ++b_pos; | 76 | 81 | ++c_pos; | 77 | 81 | } | 78 | 81 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1.90k | PaddedPODArray<UInt8>& c) { | 66 | 1.90k | size_t size = a.size(); | 67 | 1.90k | const A* __restrict a_pos = a.data(); | 68 | 1.90k | const B* __restrict b_pos = b.data(); | 69 | 1.90k | UInt8* __restrict c_pos = c.data(); | 70 | 1.90k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.80M | while (a_pos < a_end) { | 73 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.80M | ++a_pos; | 75 | 1.80M | ++b_pos; | 76 | 1.80M | ++c_pos; | 77 | 1.80M | } | 78 | 1.90k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 240 | PaddedPODArray<UInt8>& c) { | 66 | 240 | size_t size = a.size(); | 67 | 240 | const A* __restrict a_pos = a.data(); | 68 | 240 | const B* __restrict b_pos = b.data(); | 69 | 240 | UInt8* __restrict c_pos = c.data(); | 70 | 240 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 480 | while (a_pos < a_end) { | 73 | 240 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 240 | ++a_pos; | 75 | 240 | ++b_pos; | 76 | 240 | ++c_pos; | 77 | 240 | } | 78 | 240 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 140 | PaddedPODArray<UInt8>& c) { | 66 | 140 | size_t size = a.size(); | 67 | 140 | const A* __restrict a_pos = a.data(); | 68 | 140 | const B* __restrict b_pos = b.data(); | 69 | 140 | UInt8* __restrict c_pos = c.data(); | 70 | 140 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 280 | while (a_pos < a_end) { | 73 | 140 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 140 | ++a_pos; | 75 | 140 | ++b_pos; | 76 | 140 | ++c_pos; | 77 | 140 | } | 78 | 140 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 100 | PaddedPODArray<UInt8>& c) { | 66 | 100 | size_t size = a.size(); | 67 | 100 | const A* __restrict a_pos = a.data(); | 68 | 100 | const B* __restrict b_pos = b.data(); | 69 | 100 | UInt8* __restrict c_pos = c.data(); | 70 | 100 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 202 | while (a_pos < a_end) { | 73 | 102 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 102 | ++a_pos; | 75 | 102 | ++b_pos; | 76 | 102 | ++c_pos; | 77 | 102 | } | 78 | 100 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 260 | PaddedPODArray<UInt8>& c) { | 66 | 260 | size_t size = a.size(); | 67 | 260 | const A* __restrict a_pos = a.data(); | 68 | 260 | const B* __restrict b_pos = b.data(); | 69 | 260 | UInt8* __restrict c_pos = c.data(); | 70 | 260 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 912 | while (a_pos < a_end) { | 73 | 652 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 652 | ++a_pos; | 75 | 652 | ++b_pos; | 76 | 652 | ++c_pos; | 77 | 652 | } | 78 | 260 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 199 | PaddedPODArray<UInt8>& c) { | 66 | 199 | size_t size = a.size(); | 67 | 199 | const A* __restrict a_pos = a.data(); | 68 | 199 | const B* __restrict b_pos = b.data(); | 69 | 199 | UInt8* __restrict c_pos = c.data(); | 70 | 199 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.21k | while (a_pos < a_end) { | 73 | 5.02k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5.02k | ++a_pos; | 75 | 5.02k | ++b_pos; | 76 | 5.02k | ++c_pos; | 77 | 5.02k | } | 78 | 199 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 137 | PaddedPODArray<UInt8>& c) { | 66 | 137 | size_t size = a.size(); | 67 | 137 | const A* __restrict a_pos = a.data(); | 68 | 137 | const B* __restrict b_pos = b.data(); | 69 | 137 | UInt8* __restrict c_pos = c.data(); | 70 | 137 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 274 | while (a_pos < a_end) { | 73 | 137 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 137 | ++a_pos; | 75 | 137 | ++b_pos; | 76 | 137 | ++c_pos; | 77 | 137 | } | 78 | 137 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 16 | PaddedPODArray<UInt8>& c) { | 66 | 16 | size_t size = a.size(); | 67 | 16 | const A* __restrict a_pos = a.data(); | 68 | 16 | const B* __restrict b_pos = b.data(); | 69 | 16 | UInt8* __restrict c_pos = c.data(); | 70 | 16 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 32 | while (a_pos < a_end) { | 73 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 16 | ++a_pos; | 75 | 16 | ++b_pos; | 76 | 16 | ++c_pos; | 77 | 16 | } | 78 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 16 | PaddedPODArray<UInt8>& c) { | 66 | 16 | size_t size = a.size(); | 67 | 16 | const A* __restrict a_pos = a.data(); | 68 | 16 | const B* __restrict b_pos = b.data(); | 69 | 16 | UInt8* __restrict c_pos = c.data(); | 70 | 16 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 32 | while (a_pos < a_end) { | 73 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 16 | ++a_pos; | 75 | 16 | ++b_pos; | 76 | 16 | ++c_pos; | 77 | 16 | } | 78 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 136 | PaddedPODArray<UInt8>& c) { | 66 | 136 | size_t size = a.size(); | 67 | 136 | const A* __restrict a_pos = a.data(); | 68 | 136 | const B* __restrict b_pos = b.data(); | 69 | 136 | UInt8* __restrict c_pos = c.data(); | 70 | 136 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 291 | while (a_pos < a_end) { | 73 | 155 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 155 | ++a_pos; | 75 | 155 | ++b_pos; | 76 | 155 | ++c_pos; | 77 | 155 | } | 78 | 136 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 131 | PaddedPODArray<UInt8>& c) { | 66 | 131 | size_t size = a.size(); | 67 | 131 | const A* __restrict a_pos = a.data(); | 68 | 131 | const B* __restrict b_pos = b.data(); | 69 | 131 | UInt8* __restrict c_pos = c.data(); | 70 | 131 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 291 | while (a_pos < a_end) { | 73 | 160 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 160 | ++a_pos; | 75 | 160 | ++b_pos; | 76 | 160 | ++c_pos; | 77 | 160 | } | 78 | 131 | } |
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 | 437 | PaddedPODArray<UInt8>& c) { | 66 | 437 | size_t size = a.size(); | 67 | 437 | const A* __restrict a_pos = a.data(); | 68 | 437 | const B* __restrict b_pos = b.data(); | 69 | 437 | UInt8* __restrict c_pos = c.data(); | 70 | 437 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6.59k | while (a_pos < a_end) { | 73 | 6.16k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 6.16k | ++a_pos; | 75 | 6.16k | ++b_pos; | 76 | 6.16k | ++c_pos; | 77 | 6.16k | } | 78 | 437 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 23 | PaddedPODArray<UInt8>& c) { | 66 | 23 | size_t size = a.size(); | 67 | 23 | const A* __restrict a_pos = a.data(); | 68 | 23 | const B* __restrict b_pos = b.data(); | 69 | 23 | UInt8* __restrict c_pos = c.data(); | 70 | 23 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 105 | while (a_pos < a_end) { | 73 | 82 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 82 | ++a_pos; | 75 | 82 | ++b_pos; | 76 | 82 | ++c_pos; | 77 | 82 | } | 78 | 23 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 30 | PaddedPODArray<UInt8>& c) { | 66 | 30 | size_t size = a.size(); | 67 | 30 | const A* __restrict a_pos = a.data(); | 68 | 30 | const B* __restrict b_pos = b.data(); | 69 | 30 | UInt8* __restrict c_pos = c.data(); | 70 | 30 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 64 | while (a_pos < a_end) { | 73 | 34 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 34 | ++a_pos; | 75 | 34 | ++b_pos; | 76 | 34 | ++c_pos; | 77 | 34 | } | 78 | 30 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
79 | | |
80 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
81 | 176k | PaddedPODArray<UInt8>& c) { |
82 | 176k | size_t size = a.size(); |
83 | 176k | const A* __restrict a_pos = a.data(); |
84 | 176k | UInt8* __restrict c_pos = c.data(); |
85 | 176k | const A* __restrict a_end = a_pos + size; |
86 | | |
87 | 182M | while (a_pos < a_end) { |
88 | 182M | *c_pos = Op::apply(*a_pos, b); |
89 | 182M | ++a_pos; |
90 | 182M | ++c_pos; |
91 | 182M | } |
92 | 176k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 1.53k | PaddedPODArray<UInt8>& c) { | 82 | 1.53k | size_t size = a.size(); | 83 | 1.53k | const A* __restrict a_pos = a.data(); | 84 | 1.53k | UInt8* __restrict c_pos = c.data(); | 85 | 1.53k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 5.01k | while (a_pos < a_end) { | 88 | 3.47k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.47k | ++a_pos; | 90 | 3.47k | ++c_pos; | 91 | 3.47k | } | 92 | 1.53k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 964 | PaddedPODArray<UInt8>& c) { | 82 | 964 | size_t size = a.size(); | 83 | 964 | const A* __restrict a_pos = a.data(); | 84 | 964 | UInt8* __restrict c_pos = c.data(); | 85 | 964 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 204k | while (a_pos < a_end) { | 88 | 203k | *c_pos = Op::apply(*a_pos, b); | 89 | 203k | ++a_pos; | 90 | 203k | ++c_pos; | 91 | 203k | } | 92 | 964 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 402 | PaddedPODArray<UInt8>& c) { | 82 | 402 | size_t size = a.size(); | 83 | 402 | const A* __restrict a_pos = a.data(); | 84 | 402 | UInt8* __restrict c_pos = c.data(); | 85 | 402 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 101k | while (a_pos < a_end) { | 88 | 100k | *c_pos = Op::apply(*a_pos, b); | 89 | 100k | ++a_pos; | 90 | 100k | ++c_pos; | 91 | 100k | } | 92 | 402 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 6.70k | PaddedPODArray<UInt8>& c) { | 82 | 6.70k | size_t size = a.size(); | 83 | 6.70k | const A* __restrict a_pos = a.data(); | 84 | 6.70k | UInt8* __restrict c_pos = c.data(); | 85 | 6.70k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 9.22M | while (a_pos < a_end) { | 88 | 9.21M | *c_pos = Op::apply(*a_pos, b); | 89 | 9.21M | ++a_pos; | 90 | 9.21M | ++c_pos; | 91 | 9.21M | } | 92 | 6.70k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.37k | PaddedPODArray<UInt8>& c) { | 82 | 1.37k | size_t size = a.size(); | 83 | 1.37k | const A* __restrict a_pos = a.data(); | 84 | 1.37k | UInt8* __restrict c_pos = c.data(); | 85 | 1.37k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 128k | while (a_pos < a_end) { | 88 | 126k | *c_pos = Op::apply(*a_pos, b); | 89 | 126k | ++a_pos; | 90 | 126k | ++c_pos; | 91 | 126k | } | 92 | 1.37k | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 30.9k | PaddedPODArray<UInt8>& c) { | 82 | 30.9k | size_t size = a.size(); | 83 | 30.9k | const A* __restrict a_pos = a.data(); | 84 | 30.9k | UInt8* __restrict c_pos = c.data(); | 85 | 30.9k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.04M | while (a_pos < a_end) { | 88 | 2.00M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.00M | ++a_pos; | 90 | 2.00M | ++c_pos; | 91 | 2.00M | } | 92 | 30.9k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 23.0k | PaddedPODArray<UInt8>& c) { | 82 | 23.0k | size_t size = a.size(); | 83 | 23.0k | const A* __restrict a_pos = a.data(); | 84 | 23.0k | UInt8* __restrict c_pos = c.data(); | 85 | 23.0k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.87M | while (a_pos < a_end) { | 88 | 2.84M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.84M | ++a_pos; | 90 | 2.84M | ++c_pos; | 91 | 2.84M | } | 92 | 23.0k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 69 | PaddedPODArray<UInt8>& c) { | 82 | 69 | size_t size = a.size(); | 83 | 69 | const A* __restrict a_pos = a.data(); | 84 | 69 | UInt8* __restrict c_pos = c.data(); | 85 | 69 | 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 | 69 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 13 | PaddedPODArray<UInt8>& c) { | 82 | 13 | size_t size = a.size(); | 83 | 13 | const A* __restrict a_pos = a.data(); | 84 | 13 | UInt8* __restrict c_pos = c.data(); | 85 | 13 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 127 | while (a_pos < a_end) { | 88 | 114 | *c_pos = Op::apply(*a_pos, b); | 89 | 114 | ++a_pos; | 90 | 114 | ++c_pos; | 91 | 114 | } | 92 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 6 | PaddedPODArray<UInt8>& c) { | 82 | 6 | size_t size = a.size(); | 83 | 6 | const A* __restrict a_pos = a.data(); | 84 | 6 | UInt8* __restrict c_pos = c.data(); | 85 | 6 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 12 | while (a_pos < a_end) { | 88 | 6 | *c_pos = Op::apply(*a_pos, b); | 89 | 6 | ++a_pos; | 90 | 6 | ++c_pos; | 91 | 6 | } | 92 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 4 | PaddedPODArray<UInt8>& c) { | 82 | 4 | size_t size = a.size(); | 83 | 4 | const A* __restrict a_pos = a.data(); | 84 | 4 | UInt8* __restrict c_pos = c.data(); | 85 | 4 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 26 | while (a_pos < a_end) { | 88 | 22 | *c_pos = Op::apply(*a_pos, b); | 89 | 22 | ++a_pos; | 90 | 22 | ++c_pos; | 91 | 22 | } | 92 | 4 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 308 | PaddedPODArray<UInt8>& c) { | 82 | 308 | size_t size = a.size(); | 83 | 308 | const A* __restrict a_pos = a.data(); | 84 | 308 | UInt8* __restrict c_pos = c.data(); | 85 | 308 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 701k | while (a_pos < a_end) { | 88 | 701k | *c_pos = Op::apply(*a_pos, b); | 89 | 701k | ++a_pos; | 90 | 701k | ++c_pos; | 91 | 701k | } | 92 | 308 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 39 | PaddedPODArray<UInt8>& c) { | 82 | 39 | size_t size = a.size(); | 83 | 39 | const A* __restrict a_pos = a.data(); | 84 | 39 | UInt8* __restrict c_pos = c.data(); | 85 | 39 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 98 | while (a_pos < a_end) { | 88 | 59 | *c_pos = Op::apply(*a_pos, b); | 89 | 59 | ++a_pos; | 90 | 59 | ++c_pos; | 91 | 59 | } | 92 | 39 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 2 | PaddedPODArray<UInt8>& c) { | 82 | 2 | size_t size = a.size(); | 83 | 2 | const A* __restrict a_pos = a.data(); | 84 | 2 | UInt8* __restrict c_pos = c.data(); | 85 | 2 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4 | while (a_pos < a_end) { | 88 | 2 | *c_pos = Op::apply(*a_pos, b); | 89 | 2 | ++a_pos; | 90 | 2 | ++c_pos; | 91 | 2 | } | 92 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 44 | PaddedPODArray<UInt8>& c) { | 82 | 44 | size_t size = a.size(); | 83 | 44 | const A* __restrict a_pos = a.data(); | 84 | 44 | UInt8* __restrict c_pos = c.data(); | 85 | 44 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.24k | while (a_pos < a_end) { | 88 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.19k | ++a_pos; | 90 | 1.19k | ++c_pos; | 91 | 1.19k | } | 92 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 26 | PaddedPODArray<UInt8>& c) { | 82 | 26 | size_t size = a.size(); | 83 | 26 | const A* __restrict a_pos = a.data(); | 84 | 26 | UInt8* __restrict c_pos = c.data(); | 85 | 26 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 802 | while (a_pos < a_end) { | 88 | 776 | *c_pos = Op::apply(*a_pos, b); | 89 | 776 | ++a_pos; | 90 | 776 | ++c_pos; | 91 | 776 | } | 92 | 26 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 2.80k | PaddedPODArray<UInt8>& c) { | 82 | 2.80k | size_t size = a.size(); | 83 | 2.80k | const A* __restrict a_pos = a.data(); | 84 | 2.80k | UInt8* __restrict c_pos = c.data(); | 85 | 2.80k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 658k | while (a_pos < a_end) { | 88 | 655k | *c_pos = Op::apply(*a_pos, b); | 89 | 655k | ++a_pos; | 90 | 655k | ++c_pos; | 91 | 655k | } | 92 | 2.80k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 2.71k | PaddedPODArray<UInt8>& c) { | 82 | 2.71k | size_t size = a.size(); | 83 | 2.71k | const A* __restrict a_pos = a.data(); | 84 | 2.71k | UInt8* __restrict c_pos = c.data(); | 85 | 2.71k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 272k | while (a_pos < a_end) { | 88 | 270k | *c_pos = Op::apply(*a_pos, b); | 89 | 270k | ++a_pos; | 90 | 270k | ++c_pos; | 91 | 270k | } | 92 | 2.71k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 28 | PaddedPODArray<UInt8>& c) { | 82 | 28 | size_t size = a.size(); | 83 | 28 | const A* __restrict a_pos = a.data(); | 84 | 28 | UInt8* __restrict c_pos = c.data(); | 85 | 28 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 70 | while (a_pos < a_end) { | 88 | 42 | *c_pos = Op::apply(*a_pos, b); | 89 | 42 | ++a_pos; | 90 | 42 | ++c_pos; | 91 | 42 | } | 92 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 40 | PaddedPODArray<UInt8>& c) { | 82 | 40 | size_t size = a.size(); | 83 | 40 | const A* __restrict a_pos = a.data(); | 84 | 40 | UInt8* __restrict c_pos = c.data(); | 85 | 40 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 282 | while (a_pos < a_end) { | 88 | 242 | *c_pos = Op::apply(*a_pos, b); | 89 | 242 | ++a_pos; | 90 | 242 | ++c_pos; | 91 | 242 | } | 92 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 157 | PaddedPODArray<UInt8>& c) { | 82 | 157 | size_t size = a.size(); | 83 | 157 | const A* __restrict a_pos = a.data(); | 84 | 157 | UInt8* __restrict c_pos = c.data(); | 85 | 157 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 743 | while (a_pos < a_end) { | 88 | 586 | *c_pos = Op::apply(*a_pos, b); | 89 | 586 | ++a_pos; | 90 | 586 | ++c_pos; | 91 | 586 | } | 92 | 157 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 525 | PaddedPODArray<UInt8>& c) { | 82 | 525 | size_t size = a.size(); | 83 | 525 | const A* __restrict a_pos = a.data(); | 84 | 525 | UInt8* __restrict c_pos = c.data(); | 85 | 525 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.67M | while (a_pos < a_end) { | 88 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.67M | ++a_pos; | 90 | 1.67M | ++c_pos; | 91 | 1.67M | } | 92 | 525 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 94 | PaddedPODArray<UInt8>& c) { | 82 | 94 | size_t size = a.size(); | 83 | 94 | const A* __restrict a_pos = a.data(); | 84 | 94 | UInt8* __restrict c_pos = c.data(); | 85 | 94 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 210 | while (a_pos < a_end) { | 88 | 116 | *c_pos = Op::apply(*a_pos, b); | 89 | 116 | ++a_pos; | 90 | 116 | ++c_pos; | 91 | 116 | } | 92 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 337 | PaddedPODArray<UInt8>& c) { | 82 | 337 | size_t size = a.size(); | 83 | 337 | const A* __restrict a_pos = a.data(); | 84 | 337 | UInt8* __restrict c_pos = c.data(); | 85 | 337 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 45.4k | while (a_pos < a_end) { | 88 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 45.1k | ++a_pos; | 90 | 45.1k | ++c_pos; | 91 | 45.1k | } | 92 | 337 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 81 | 1 | PaddedPODArray<UInt8>& c) { | 82 | 1 | size_t size = a.size(); | 83 | 1 | const A* __restrict a_pos = a.data(); | 84 | 1 | UInt8* __restrict c_pos = c.data(); | 85 | 1 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 8 | while (a_pos < a_end) { | 88 | 7 | *c_pos = Op::apply(*a_pos, b); | 89 | 7 | ++a_pos; | 90 | 7 | ++c_pos; | 91 | 7 | } | 92 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 873 | PaddedPODArray<UInt8>& c) { | 82 | 873 | size_t size = a.size(); | 83 | 873 | const A* __restrict a_pos = a.data(); | 84 | 873 | UInt8* __restrict c_pos = c.data(); | 85 | 873 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 6.16k | while (a_pos < a_end) { | 88 | 5.29k | *c_pos = Op::apply(*a_pos, b); | 89 | 5.29k | ++a_pos; | 90 | 5.29k | ++c_pos; | 91 | 5.29k | } | 92 | 873 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.79k | PaddedPODArray<UInt8>& c) { | 82 | 1.79k | size_t size = a.size(); | 83 | 1.79k | const A* __restrict a_pos = a.data(); | 84 | 1.79k | UInt8* __restrict c_pos = c.data(); | 85 | 1.79k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 7.31k | while (a_pos < a_end) { | 88 | 5.51k | *c_pos = Op::apply(*a_pos, b); | 89 | 5.51k | ++a_pos; | 90 | 5.51k | ++c_pos; | 91 | 5.51k | } | 92 | 1.79k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.57k | PaddedPODArray<UInt8>& c) { | 82 | 1.57k | size_t size = a.size(); | 83 | 1.57k | const A* __restrict a_pos = a.data(); | 84 | 1.57k | UInt8* __restrict c_pos = c.data(); | 85 | 1.57k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 10.5k | while (a_pos < a_end) { | 88 | 8.93k | *c_pos = Op::apply(*a_pos, b); | 89 | 8.93k | ++a_pos; | 90 | 8.93k | ++c_pos; | 91 | 8.93k | } | 92 | 1.57k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 460 | PaddedPODArray<UInt8>& c) { | 82 | 460 | size_t size = a.size(); | 83 | 460 | const A* __restrict a_pos = a.data(); | 84 | 460 | UInt8* __restrict c_pos = c.data(); | 85 | 460 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 13.9k | while (a_pos < a_end) { | 88 | 13.4k | *c_pos = Op::apply(*a_pos, b); | 89 | 13.4k | ++a_pos; | 90 | 13.4k | ++c_pos; | 91 | 13.4k | } | 92 | 460 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 26.0k | PaddedPODArray<UInt8>& c) { | 82 | 26.0k | size_t size = a.size(); | 83 | 26.0k | const A* __restrict a_pos = a.data(); | 84 | 26.0k | UInt8* __restrict c_pos = c.data(); | 85 | 26.0k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 6.70M | while (a_pos < a_end) { | 88 | 6.67M | *c_pos = Op::apply(*a_pos, b); | 89 | 6.67M | ++a_pos; | 90 | 6.67M | ++c_pos; | 91 | 6.67M | } | 92 | 26.0k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 8.59k | PaddedPODArray<UInt8>& c) { | 82 | 8.59k | size_t size = a.size(); | 83 | 8.59k | const A* __restrict a_pos = a.data(); | 84 | 8.59k | UInt8* __restrict c_pos = c.data(); | 85 | 8.59k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 5.37M | while (a_pos < a_end) { | 88 | 5.36M | *c_pos = Op::apply(*a_pos, b); | 89 | 5.36M | ++a_pos; | 90 | 5.36M | ++c_pos; | 91 | 5.36M | } | 92 | 8.59k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 13.4k | PaddedPODArray<UInt8>& c) { | 82 | 13.4k | size_t size = a.size(); | 83 | 13.4k | const A* __restrict a_pos = a.data(); | 84 | 13.4k | UInt8* __restrict c_pos = c.data(); | 85 | 13.4k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 172k | while (a_pos < a_end) { | 88 | 158k | *c_pos = Op::apply(*a_pos, b); | 89 | 158k | ++a_pos; | 90 | 158k | ++c_pos; | 91 | 158k | } | 92 | 13.4k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.53k | PaddedPODArray<UInt8>& c) { | 82 | 1.53k | size_t size = a.size(); | 83 | 1.53k | const A* __restrict a_pos = a.data(); | 84 | 1.53k | UInt8* __restrict c_pos = c.data(); | 85 | 1.53k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.78k | while (a_pos < a_end) { | 88 | 3.25k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.25k | ++a_pos; | 90 | 3.25k | ++c_pos; | 91 | 3.25k | } | 92 | 1.53k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 293 | PaddedPODArray<UInt8>& c) { | 82 | 293 | size_t size = a.size(); | 83 | 293 | const A* __restrict a_pos = a.data(); | 84 | 293 | UInt8* __restrict c_pos = c.data(); | 85 | 293 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.93k | while (a_pos < a_end) { | 88 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.63k | ++a_pos; | 90 | 1.63k | ++c_pos; | 91 | 1.63k | } | 92 | 293 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 92 | PaddedPODArray<UInt8>& c) { | 82 | 92 | size_t size = a.size(); | 83 | 92 | const A* __restrict a_pos = a.data(); | 84 | 92 | UInt8* __restrict c_pos = c.data(); | 85 | 92 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 86.2k | while (a_pos < a_end) { | 88 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 86.1k | ++a_pos; | 90 | 86.1k | ++c_pos; | 91 | 86.1k | } | 92 | 92 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1 | PaddedPODArray<UInt8>& c) { | 82 | 1 | size_t size = a.size(); | 83 | 1 | const A* __restrict a_pos = a.data(); | 84 | 1 | UInt8* __restrict c_pos = c.data(); | 85 | 1 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 9 | while (a_pos < a_end) { | 88 | 8 | *c_pos = Op::apply(*a_pos, b); | 89 | 8 | ++a_pos; | 90 | 8 | ++c_pos; | 91 | 8 | } | 92 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 216 | PaddedPODArray<UInt8>& c) { | 82 | 216 | size_t size = a.size(); | 83 | 216 | const A* __restrict a_pos = a.data(); | 84 | 216 | UInt8* __restrict c_pos = c.data(); | 85 | 216 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.77k | while (a_pos < a_end) { | 88 | 3.55k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.55k | ++a_pos; | 90 | 3.55k | ++c_pos; | 91 | 3.55k | } | 92 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 26 | PaddedPODArray<UInt8>& c) { | 82 | 26 | size_t size = a.size(); | 83 | 26 | const A* __restrict a_pos = a.data(); | 84 | 26 | UInt8* __restrict c_pos = c.data(); | 85 | 26 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 64 | while (a_pos < a_end) { | 88 | 38 | *c_pos = Op::apply(*a_pos, b); | 89 | 38 | ++a_pos; | 90 | 38 | ++c_pos; | 91 | 38 | } | 92 | 26 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 2.43k | PaddedPODArray<UInt8>& c) { | 82 | 2.43k | size_t size = a.size(); | 83 | 2.43k | const A* __restrict a_pos = a.data(); | 84 | 2.43k | UInt8* __restrict c_pos = c.data(); | 85 | 2.43k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 346k | while (a_pos < a_end) { | 88 | 344k | *c_pos = Op::apply(*a_pos, b); | 89 | 344k | ++a_pos; | 90 | 344k | ++c_pos; | 91 | 344k | } | 92 | 2.43k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 219 | PaddedPODArray<UInt8>& c) { | 82 | 219 | size_t size = a.size(); | 83 | 219 | const A* __restrict a_pos = a.data(); | 84 | 219 | UInt8* __restrict c_pos = c.data(); | 85 | 219 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 641k | while (a_pos < a_end) { | 88 | 641k | *c_pos = Op::apply(*a_pos, b); | 89 | 641k | ++a_pos; | 90 | 641k | ++c_pos; | 91 | 641k | } | 92 | 219 | } |
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 | 139 | PaddedPODArray<UInt8>& c) { | 82 | 139 | size_t size = a.size(); | 83 | 139 | const A* __restrict a_pos = a.data(); | 84 | 139 | UInt8* __restrict c_pos = c.data(); | 85 | 139 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 69.0k | while (a_pos < a_end) { | 88 | 68.8k | *c_pos = Op::apply(*a_pos, b); | 89 | 68.8k | ++a_pos; | 90 | 68.8k | ++c_pos; | 91 | 68.8k | } | 92 | 139 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 298 | PaddedPODArray<UInt8>& c) { | 82 | 298 | size_t size = a.size(); | 83 | 298 | const A* __restrict a_pos = a.data(); | 84 | 298 | UInt8* __restrict c_pos = c.data(); | 85 | 298 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 59.9k | while (a_pos < a_end) { | 88 | 59.6k | *c_pos = Op::apply(*a_pos, b); | 89 | 59.6k | ++a_pos; | 90 | 59.6k | ++c_pos; | 91 | 59.6k | } | 92 | 298 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 1.57k | PaddedPODArray<UInt8>& c) { | 82 | 1.57k | size_t size = a.size(); | 83 | 1.57k | const A* __restrict a_pos = a.data(); | 84 | 1.57k | UInt8* __restrict c_pos = c.data(); | 85 | 1.57k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.94M | while (a_pos < a_end) { | 88 | 4.94M | *c_pos = Op::apply(*a_pos, b); | 89 | 4.94M | ++a_pos; | 90 | 4.94M | ++c_pos; | 91 | 4.94M | } | 92 | 1.57k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 7.30k | PaddedPODArray<UInt8>& c) { | 82 | 7.30k | size_t size = a.size(); | 83 | 7.30k | const A* __restrict a_pos = a.data(); | 84 | 7.30k | UInt8* __restrict c_pos = c.data(); | 85 | 7.30k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 51.6M | while (a_pos < a_end) { | 88 | 51.6M | *c_pos = Op::apply(*a_pos, b); | 89 | 51.6M | ++a_pos; | 90 | 51.6M | ++c_pos; | 91 | 51.6M | } | 92 | 7.30k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 614 | PaddedPODArray<UInt8>& c) { | 82 | 614 | size_t size = a.size(); | 83 | 614 | const A* __restrict a_pos = a.data(); | 84 | 614 | UInt8* __restrict c_pos = c.data(); | 85 | 614 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 30.6k | while (a_pos < a_end) { | 88 | 30.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 30.0k | ++a_pos; | 90 | 30.0k | ++c_pos; | 91 | 30.0k | } | 92 | 614 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 500 | PaddedPODArray<UInt8>& c) { | 82 | 500 | size_t size = a.size(); | 83 | 500 | const A* __restrict a_pos = a.data(); | 84 | 500 | UInt8* __restrict c_pos = c.data(); | 85 | 500 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 29.7k | while (a_pos < a_end) { | 88 | 29.2k | *c_pos = Op::apply(*a_pos, b); | 89 | 29.2k | ++a_pos; | 90 | 29.2k | ++c_pos; | 91 | 29.2k | } | 92 | 500 | } |
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 | 50 | PaddedPODArray<UInt8>& c) { | 82 | 50 | size_t size = a.size(); | 83 | 50 | const A* __restrict a_pos = a.data(); | 84 | 50 | UInt8* __restrict c_pos = c.data(); | 85 | 50 | 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 | 50 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 260 | PaddedPODArray<UInt8>& c) { | 82 | 260 | size_t size = a.size(); | 83 | 260 | const A* __restrict a_pos = a.data(); | 84 | 260 | UInt8* __restrict c_pos = c.data(); | 85 | 260 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 145k | while (a_pos < a_end) { | 88 | 145k | *c_pos = Op::apply(*a_pos, b); | 89 | 145k | ++a_pos; | 90 | 145k | ++c_pos; | 91 | 145k | } | 92 | 260 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 98 | PaddedPODArray<UInt8>& c) { | 82 | 98 | size_t size = a.size(); | 83 | 98 | const A* __restrict a_pos = a.data(); | 84 | 98 | UInt8* __restrict c_pos = c.data(); | 85 | 98 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 95.1k | while (a_pos < a_end) { | 88 | 95.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 95.0k | ++a_pos; | 90 | 95.0k | ++c_pos; | 91 | 95.0k | } | 92 | 98 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 344 | PaddedPODArray<UInt8>& c) { | 82 | 344 | size_t size = a.size(); | 83 | 344 | const A* __restrict a_pos = a.data(); | 84 | 344 | UInt8* __restrict c_pos = c.data(); | 85 | 344 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 186k | while (a_pos < a_end) { | 88 | 185k | *c_pos = Op::apply(*a_pos, b); | 89 | 185k | ++a_pos; | 90 | 185k | ++c_pos; | 91 | 185k | } | 92 | 344 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 13.0k | PaddedPODArray<UInt8>& c) { | 82 | 13.0k | size_t size = a.size(); | 83 | 13.0k | const A* __restrict a_pos = a.data(); | 84 | 13.0k | UInt8* __restrict c_pos = c.data(); | 85 | 13.0k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 43.8M | while (a_pos < a_end) { | 88 | 43.8M | *c_pos = Op::apply(*a_pos, b); | 89 | 43.8M | ++a_pos; | 90 | 43.8M | ++c_pos; | 91 | 43.8M | } | 92 | 13.0k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 19.8k | PaddedPODArray<UInt8>& c) { | 82 | 19.8k | size_t size = a.size(); | 83 | 19.8k | const A* __restrict a_pos = a.data(); | 84 | 19.8k | UInt8* __restrict c_pos = c.data(); | 85 | 19.8k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 48.1M | while (a_pos < a_end) { | 88 | 48.1M | *c_pos = Op::apply(*a_pos, b); | 89 | 48.1M | ++a_pos; | 90 | 48.1M | ++c_pos; | 91 | 48.1M | } | 92 | 19.8k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 770 | PaddedPODArray<UInt8>& c) { | 82 | 770 | size_t size = a.size(); | 83 | 770 | const A* __restrict a_pos = a.data(); | 84 | 770 | UInt8* __restrict c_pos = c.data(); | 85 | 770 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 40.1k | while (a_pos < a_end) { | 88 | 39.4k | *c_pos = Op::apply(*a_pos, b); | 89 | 39.4k | ++a_pos; | 90 | 39.4k | ++c_pos; | 91 | 39.4k | } | 92 | 770 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 817 | PaddedPODArray<UInt8>& c) { | 82 | 817 | size_t size = a.size(); | 83 | 817 | const A* __restrict a_pos = a.data(); | 84 | 817 | UInt8* __restrict c_pos = c.data(); | 85 | 817 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 40.5k | while (a_pos < a_end) { | 88 | 39.7k | *c_pos = Op::apply(*a_pos, b); | 89 | 39.7k | ++a_pos; | 90 | 39.7k | ++c_pos; | 91 | 39.7k | } | 92 | 817 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 44 | PaddedPODArray<UInt8>& c) { | 82 | 44 | size_t size = a.size(); | 83 | 44 | const A* __restrict a_pos = a.data(); | 84 | 44 | UInt8* __restrict c_pos = c.data(); | 85 | 44 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 140k | while (a_pos < a_end) { | 88 | 140k | *c_pos = Op::apply(*a_pos, b); | 89 | 140k | ++a_pos; | 90 | 140k | ++c_pos; | 91 | 140k | } | 92 | 44 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 48 | PaddedPODArray<UInt8>& c) { | 82 | 48 | size_t size = a.size(); | 83 | 48 | const A* __restrict a_pos = a.data(); | 84 | 48 | UInt8* __restrict c_pos = c.data(); | 85 | 48 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 160k | while (a_pos < a_end) { | 88 | 160k | *c_pos = Op::apply(*a_pos, b); | 89 | 160k | ++a_pos; | 90 | 160k | ++c_pos; | 91 | 160k | } | 92 | 48 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 10 | PaddedPODArray<UInt8>& c) { | 82 | 10 | size_t size = a.size(); | 83 | 10 | const A* __restrict a_pos = a.data(); | 84 | 10 | UInt8* __restrict c_pos = c.data(); | 85 | 10 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 110 | while (a_pos < a_end) { | 88 | 100 | *c_pos = Op::apply(*a_pos, b); | 89 | 100 | ++a_pos; | 90 | 100 | ++c_pos; | 91 | 100 | } | 92 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 10 | PaddedPODArray<UInt8>& c) { | 82 | 10 | size_t size = a.size(); | 83 | 10 | const A* __restrict a_pos = a.data(); | 84 | 10 | UInt8* __restrict c_pos = c.data(); | 85 | 10 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 110 | while (a_pos < a_end) { | 88 | 100 | *c_pos = Op::apply(*a_pos, b); | 89 | 100 | ++a_pos; | 90 | 100 | ++c_pos; | 91 | 100 | } | 92 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 108 | PaddedPODArray<UInt8>& c) { | 82 | 108 | size_t size = a.size(); | 83 | 108 | const A* __restrict a_pos = a.data(); | 84 | 108 | UInt8* __restrict c_pos = c.data(); | 85 | 108 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 218 | while (a_pos < a_end) { | 88 | 110 | *c_pos = Op::apply(*a_pos, b); | 89 | 110 | ++a_pos; | 90 | 110 | ++c_pos; | 91 | 110 | } | 92 | 108 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 104 | PaddedPODArray<UInt8>& c) { | 82 | 104 | size_t size = a.size(); | 83 | 104 | const A* __restrict a_pos = a.data(); | 84 | 104 | UInt8* __restrict c_pos = c.data(); | 85 | 104 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 208 | while (a_pos < a_end) { | 88 | 104 | *c_pos = Op::apply(*a_pos, b); | 89 | 104 | ++a_pos; | 90 | 104 | ++c_pos; | 91 | 104 | } | 92 | 104 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 128 | PaddedPODArray<UInt8>& c) { | 82 | 128 | size_t size = a.size(); | 83 | 128 | const A* __restrict a_pos = a.data(); | 84 | 128 | UInt8* __restrict c_pos = c.data(); | 85 | 128 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 681k | while (a_pos < a_end) { | 88 | 681k | *c_pos = Op::apply(*a_pos, b); | 89 | 681k | ++a_pos; | 90 | 681k | ++c_pos; | 91 | 681k | } | 92 | 128 | } |
_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 | 601k | while (a_pos < a_end) { | 88 | 601k | *c_pos = Op::apply(*a_pos, b); | 89 | 601k | ++a_pos; | 90 | 601k | ++c_pos; | 91 | 601k | } | 92 | 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 | 5.83k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
95 | 5.83k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
96 | 5.83k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 192 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 192 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 192 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 24 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 24 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 24 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 141 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 141 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 141 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 433 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 433 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 433 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 12 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 782 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 782 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 782 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 150 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 150 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 150 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 192 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 192 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 192 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 2.83k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 2.83k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 2.83k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 116 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 116 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 116 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 46 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 46 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 46 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 94 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 168 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 168 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 168 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 23 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 23 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 23 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 79 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 92 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 92 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 92 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 94 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 486 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 486 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 486 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 1 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 1 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
97 | | }; |
98 | | |
99 | | /// Generic version, implemented for columns of same type. |
100 | | template <typename Op> |
101 | | struct GenericComparisonImpl { |
102 | 9 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
103 | 20 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
104 | 11 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
105 | 11 | } |
106 | 9 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 10 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 6 | } | 106 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 1 | } | 106 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 1 | } | 106 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 3 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 3 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 3 | } | 106 | 3 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
107 | | |
108 | 140 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 140 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
110 | 500k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
111 | 500k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
112 | 500k | } |
113 | 140 | } _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 | 46 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 46 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 230k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 230k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 230k | } | 113 | 46 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 57 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 57 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 269k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 269k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 269k | } | 113 | 57 | } |
|
114 | | |
115 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
116 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
117 | 0 | } Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
118 | | }; |
119 | | |
120 | | template <typename Op> |
121 | | struct StringComparisonImpl { |
122 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
123 | | const ColumnString::Offsets& a_offsets, |
124 | | const ColumnString::Chars& b_data, |
125 | | const ColumnString::Offsets& b_offsets, |
126 | 393 | PaddedPODArray<UInt8>& c) { |
127 | 393 | size_t size = a_offsets.size(); |
128 | 393 | ColumnString::Offset prev_a_offset = 0; |
129 | 393 | ColumnString::Offset prev_b_offset = 0; |
130 | 393 | const auto* a_pos = a_data.data(); |
131 | 393 | const auto* b_pos = b_data.data(); |
132 | | |
133 | 989 | for (size_t i = 0; i < size; ++i) { |
134 | 596 | c[i] = Op::apply(memcmp_small_allow_overflow15( |
135 | 596 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
136 | 596 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
137 | 596 | 0); |
138 | | |
139 | 596 | prev_a_offset = a_offsets[i]; |
140 | 596 | prev_b_offset = b_offsets[i]; |
141 | 596 | } |
142 | 393 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 2 | PaddedPODArray<UInt8>& c) { | 127 | 2 | size_t size = a_offsets.size(); | 128 | 2 | ColumnString::Offset prev_a_offset = 0; | 129 | 2 | ColumnString::Offset prev_b_offset = 0; | 130 | 2 | const auto* a_pos = a_data.data(); | 131 | 2 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 49 | for (size_t i = 0; i < size; ++i) { | 134 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 47 | 0); | 138 | | | 139 | 47 | prev_a_offset = a_offsets[i]; | 140 | 47 | prev_b_offset = b_offsets[i]; | 141 | 47 | } | 142 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 36 | PaddedPODArray<UInt8>& c) { | 127 | 36 | size_t size = a_offsets.size(); | 128 | 36 | ColumnString::Offset prev_a_offset = 0; | 129 | 36 | ColumnString::Offset prev_b_offset = 0; | 130 | 36 | const auto* a_pos = a_data.data(); | 131 | 36 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 230 | for (size_t i = 0; i < size; ++i) { | 134 | 194 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 194 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 194 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 194 | 0); | 138 | | | 139 | 194 | prev_a_offset = a_offsets[i]; | 140 | 194 | prev_b_offset = b_offsets[i]; | 141 | 194 | } | 142 | 36 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 355 | PaddedPODArray<UInt8>& c) { | 127 | 355 | size_t size = a_offsets.size(); | 128 | 355 | ColumnString::Offset prev_a_offset = 0; | 129 | 355 | ColumnString::Offset prev_b_offset = 0; | 130 | 355 | const auto* a_pos = a_data.data(); | 131 | 355 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 710 | for (size_t i = 0; i < size; ++i) { | 134 | 355 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 355 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 355 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 355 | 0); | 138 | | | 139 | 355 | prev_a_offset = a_offsets[i]; | 140 | 355 | prev_b_offset = b_offsets[i]; | 141 | 355 | } | 142 | 355 | } |
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 | 2.99k | PaddedPODArray<UInt8>& c) { |
149 | 2.99k | size_t size = a_offsets.size(); |
150 | 2.99k | ColumnString::Offset prev_a_offset = 0; |
151 | 2.99k | const auto* a_pos = a_data.data(); |
152 | 2.99k | const auto* b_pos = b_data.data(); |
153 | | |
154 | 1.94M | for (size_t i = 0; i < size; ++i) { |
155 | 1.94M | c[i] = Op::apply( |
156 | 1.94M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
157 | 1.94M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
158 | 1.94M | 0); |
159 | | |
160 | 1.94M | prev_a_offset = a_offsets[i]; |
161 | 1.94M | } |
162 | 2.99k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 197 | PaddedPODArray<UInt8>& c) { | 149 | 197 | size_t size = a_offsets.size(); | 150 | 197 | ColumnString::Offset prev_a_offset = 0; | 151 | 197 | const auto* a_pos = a_data.data(); | 152 | 197 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 593k | for (size_t i = 0; i < size; ++i) { | 155 | 592k | c[i] = Op::apply( | 156 | 592k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 592k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 592k | 0); | 159 | | | 160 | 592k | prev_a_offset = a_offsets[i]; | 161 | 592k | } | 162 | 197 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 253 | PaddedPODArray<UInt8>& c) { | 149 | 253 | size_t size = a_offsets.size(); | 150 | 253 | ColumnString::Offset prev_a_offset = 0; | 151 | 253 | const auto* a_pos = a_data.data(); | 152 | 253 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 72.8k | for (size_t i = 0; i < size; ++i) { | 155 | 72.5k | c[i] = Op::apply( | 156 | 72.5k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 72.5k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 72.5k | 0); | 159 | | | 160 | 72.5k | prev_a_offset = a_offsets[i]; | 161 | 72.5k | } | 162 | 253 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 680 | PaddedPODArray<UInt8>& c) { | 149 | 680 | size_t size = a_offsets.size(); | 150 | 680 | ColumnString::Offset prev_a_offset = 0; | 151 | 680 | const auto* a_pos = a_data.data(); | 152 | 680 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 645k | for (size_t i = 0; i < size; ++i) { | 155 | 644k | c[i] = Op::apply( | 156 | 644k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 644k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 644k | 0); | 159 | | | 160 | 644k | prev_a_offset = a_offsets[i]; | 161 | 644k | } | 162 | 680 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 1.86k | PaddedPODArray<UInt8>& c) { | 149 | 1.86k | size_t size = a_offsets.size(); | 150 | 1.86k | ColumnString::Offset prev_a_offset = 0; | 151 | 1.86k | const auto* a_pos = a_data.data(); | 152 | 1.86k | const auto* b_pos = b_data.data(); | 153 | | | 154 | 632k | for (size_t i = 0; i < size; ++i) { | 155 | 630k | c[i] = Op::apply( | 156 | 630k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 630k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 630k | 0); | 159 | | | 160 | 630k | prev_a_offset = a_offsets[i]; | 161 | 630k | } | 162 | 1.86k | } |
|
163 | | |
164 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
165 | | ColumnString::Offset a_size, |
166 | | const ColumnString::Chars& b_data, |
167 | | const ColumnString::Offsets& b_offsets, |
168 | 6 | PaddedPODArray<UInt8>& c) { |
169 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
170 | 6 | a_data, a_size, c); |
171 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 168 | 6 | PaddedPODArray<UInt8>& c) { | 169 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 170 | 6 | a_data, a_size, c); | 171 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
172 | | }; |
173 | | |
174 | | template <bool positive> |
175 | | struct StringEqualsImpl { |
176 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
177 | | const ColumnString::Offsets& a_offsets, |
178 | | const ColumnString::Chars& b_data, |
179 | | const ColumnString::Offsets& b_offsets, |
180 | 457 | PaddedPODArray<UInt8>& c) { |
181 | 457 | size_t size = a_offsets.size(); |
182 | 457 | ColumnString::Offset prev_a_offset = 0; |
183 | 457 | ColumnString::Offset prev_b_offset = 0; |
184 | 457 | const auto* a_pos = a_data.data(); |
185 | 457 | const auto* b_pos = b_data.data(); |
186 | | |
187 | 1.33k | for (size_t i = 0; i < size; ++i) { |
188 | 880 | auto a_size = a_offsets[i] - prev_a_offset; |
189 | 880 | auto b_size = b_offsets[i] - prev_b_offset; |
190 | | |
191 | 880 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
192 | 880 | b_pos + prev_b_offset, b_size); |
193 | | |
194 | 880 | prev_a_offset = a_offsets[i]; |
195 | 880 | prev_b_offset = b_offsets[i]; |
196 | 880 | } |
197 | 457 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 456 | PaddedPODArray<UInt8>& c) { | 181 | 456 | size_t size = a_offsets.size(); | 182 | 456 | ColumnString::Offset prev_a_offset = 0; | 183 | 456 | ColumnString::Offset prev_b_offset = 0; | 184 | 456 | const auto* a_pos = a_data.data(); | 185 | 456 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 1.33k | for (size_t i = 0; i < size; ++i) { | 188 | 876 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 876 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 876 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 876 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 876 | prev_a_offset = a_offsets[i]; | 195 | 876 | prev_b_offset = b_offsets[i]; | 196 | 876 | } | 197 | 456 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 1 | PaddedPODArray<UInt8>& c) { | 181 | 1 | size_t size = a_offsets.size(); | 182 | 1 | ColumnString::Offset prev_a_offset = 0; | 183 | 1 | ColumnString::Offset prev_b_offset = 0; | 184 | 1 | const auto* a_pos = a_data.data(); | 185 | 1 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 5 | for (size_t i = 0; i < size; ++i) { | 188 | 4 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 4 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 4 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 4 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 4 | prev_a_offset = a_offsets[i]; | 195 | 4 | prev_b_offset = b_offsets[i]; | 196 | 4 | } | 197 | 1 | } |
|
198 | | |
199 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
200 | | const ColumnString::Offsets& a_offsets, |
201 | | const ColumnString::Chars& b_data, |
202 | | ColumnString::Offset b_size, |
203 | 23.4k | PaddedPODArray<UInt8>& c) { |
204 | 23.4k | size_t size = a_offsets.size(); |
205 | 23.4k | if (b_size == 0) { |
206 | 1 | auto* __restrict data = c.data(); |
207 | 1 | auto* __restrict offsets = a_offsets.data(); |
208 | | |
209 | 1 | ColumnString::Offset prev_a_offset = 0; |
210 | 4 | for (size_t i = 0; i < size; ++i) { |
211 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
212 | 3 | prev_a_offset = offsets[i]; |
213 | 3 | } |
214 | 23.4k | } else { |
215 | 23.4k | ColumnString::Offset prev_a_offset = 0; |
216 | 23.4k | const auto* a_pos = a_data.data(); |
217 | 23.4k | const auto* b_pos = b_data.data(); |
218 | 9.36M | for (size_t i = 0; i < size; ++i) { |
219 | 9.34M | auto a_size = a_offsets[i] - prev_a_offset; |
220 | 9.34M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
221 | 9.34M | b_pos, b_size); |
222 | 9.34M | prev_a_offset = a_offsets[i]; |
223 | 9.34M | } |
224 | 23.4k | } |
225 | 23.4k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 21.9k | PaddedPODArray<UInt8>& c) { | 204 | 21.9k | size_t size = a_offsets.size(); | 205 | 21.9k | if (b_size == 0) { | 206 | 0 | auto* __restrict data = c.data(); | 207 | 0 | auto* __restrict offsets = a_offsets.data(); | 208 | |
| 209 | 0 | ColumnString::Offset prev_a_offset = 0; | 210 | 0 | for (size_t i = 0; i < size; ++i) { | 211 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 212 | 0 | prev_a_offset = offsets[i]; | 213 | 0 | } | 214 | 21.9k | } else { | 215 | 21.9k | ColumnString::Offset prev_a_offset = 0; | 216 | 21.9k | const auto* a_pos = a_data.data(); | 217 | 21.9k | const auto* b_pos = b_data.data(); | 218 | 8.39M | for (size_t i = 0; i < size; ++i) { | 219 | 8.37M | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 8.37M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 8.37M | b_pos, b_size); | 222 | 8.37M | prev_a_offset = a_offsets[i]; | 223 | 8.37M | } | 224 | 21.9k | } | 225 | 21.9k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 1.51k | PaddedPODArray<UInt8>& c) { | 204 | 1.51k | size_t size = a_offsets.size(); | 205 | 1.51k | if (b_size == 0) { | 206 | 1 | auto* __restrict data = c.data(); | 207 | 1 | auto* __restrict offsets = a_offsets.data(); | 208 | | | 209 | 1 | ColumnString::Offset prev_a_offset = 0; | 210 | 4 | for (size_t i = 0; i < size; ++i) { | 211 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 212 | 3 | prev_a_offset = offsets[i]; | 213 | 3 | } | 214 | 1.51k | } else { | 215 | 1.51k | ColumnString::Offset prev_a_offset = 0; | 216 | 1.51k | const auto* a_pos = a_data.data(); | 217 | 1.51k | const auto* b_pos = b_data.data(); | 218 | 969k | for (size_t i = 0; i < size; ++i) { | 219 | 968k | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 968k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 968k | b_pos, b_size); | 222 | 968k | prev_a_offset = a_offsets[i]; | 223 | 968k | } | 224 | 1.51k | } | 225 | 1.51k | } |
|
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 | 457k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 265 | 425k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 265 | 1.36k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 265 | 6.32k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 265 | 9.02k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 265 | 3.17k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 265 | 12.5k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
266 | | |
267 | 458k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 267 | 425k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 267 | 1.36k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 267 | 6.32k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 267 | 9.01k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 267 | 3.17k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 267 | 12.5k | FunctionComparison() = default; |
|
268 | | |
269 | 1.21M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 269 | 1.17M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 269 | 1.18k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 269 | 6.60k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 269 | 16.4k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 269 | 3.25k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 269 | 15.4k | 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 | 184k | const ColumnPtr& col_right_ptr) const { |
275 | 184k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
276 | 184k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
277 | | |
278 | 184k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
279 | 184k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
280 | | |
281 | 184k | DCHECK(!(left_is_const && right_is_const)); |
282 | | |
283 | 184k | if (!left_is_const && !right_is_const) { |
284 | 8.21k | auto col_res = ColumnUInt8::create(); |
285 | | |
286 | 8.21k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
287 | 8.21k | vec_res.resize(col_left->get_data().size()); |
288 | 8.21k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
289 | 8.21k | typename PrimitiveTypeTraits<PT>::CppType, |
290 | 8.21k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
291 | 8.21k | vec_res); |
292 | | |
293 | 8.21k | block.replace_by_position(result, std::move(col_res)); |
294 | 176k | } else if (!left_is_const && right_is_const) { |
295 | 170k | auto col_res = ColumnUInt8::create(); |
296 | | |
297 | 170k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
298 | 170k | vec_res.resize(col_left->size()); |
299 | 170k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
300 | 170k | typename PrimitiveTypeTraits<PT>::CppType, |
301 | 170k | Op<PT>>::vector_constant(col_left->get_data(), |
302 | 170k | col_right->get_element(0), vec_res); |
303 | | |
304 | 170k | block.replace_by_position(result, std::move(col_res)); |
305 | 170k | } else if (left_is_const && !right_is_const) { |
306 | 5.83k | auto col_res = ColumnUInt8::create(); |
307 | | |
308 | 5.83k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
309 | 5.83k | vec_res.resize(col_right->size()); |
310 | 5.83k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
311 | 5.83k | typename PrimitiveTypeTraits<PT>::CppType, |
312 | 5.83k | Op<PT>>::constant_vector(col_left->get_element(0), |
313 | 5.83k | col_right->get_data(), vec_res); |
314 | | |
315 | 5.83k | block.replace_by_position(result, std::move(col_res)); |
316 | 5.83k | } |
317 | 184k | return Status::OK(); |
318 | 184k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.61k | const ColumnPtr& col_right_ptr) const { | 275 | 1.61k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.61k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.61k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.61k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.61k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.61k | if (!left_is_const && !right_is_const) { | 284 | 76 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 76 | vec_res.resize(col_left->get_data().size()); | 288 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 76 | vec_res); | 292 | | | 293 | 76 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.53k | } else if (!left_is_const && right_is_const) { | 295 | 1.53k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.53k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.53k | vec_res.resize(col_left->size()); | 299 | 1.53k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.53k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.53k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.53k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.53k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.53k | } 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.61k | return Status::OK(); | 318 | 1.61k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.21k | const ColumnPtr& col_right_ptr) const { | 275 | 1.21k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.21k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.21k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.21k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.21k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.21k | if (!left_is_const && !right_is_const) { | 284 | 247 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 247 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 247 | vec_res.resize(col_left->get_data().size()); | 288 | 247 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 247 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 247 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 247 | vec_res); | 292 | | | 293 | 247 | block.replace_by_position(result, std::move(col_res)); | 294 | 964 | } else if (!left_is_const && right_is_const) { | 295 | 964 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 964 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 964 | vec_res.resize(col_left->size()); | 299 | 964 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 964 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 964 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 964 | col_right->get_element(0), vec_res); | 303 | | | 304 | 964 | block.replace_by_position(result, std::move(col_res)); | 305 | 964 | } 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.21k | return Status::OK(); | 318 | 1.21k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 696 | const ColumnPtr& col_right_ptr) const { | 275 | 696 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 696 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 696 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 696 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 696 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 696 | if (!left_is_const && !right_is_const) { | 284 | 294 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 294 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 294 | vec_res.resize(col_left->get_data().size()); | 288 | 294 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 294 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 294 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 294 | vec_res); | 292 | | | 293 | 294 | block.replace_by_position(result, std::move(col_res)); | 294 | 402 | } else if (!left_is_const && right_is_const) { | 295 | 402 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 402 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 402 | vec_res.resize(col_left->size()); | 299 | 402 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 402 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 402 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 402 | col_right->get_element(0), vec_res); | 303 | | | 304 | 402 | block.replace_by_position(result, std::move(col_res)); | 305 | 402 | } 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 | 696 | return Status::OK(); | 318 | 696 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 2 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 2 | vec_res.resize(col_left->get_data().size()); | 288 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 2 | vec_res); | 292 | | | 293 | 2 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 6.88k | const ColumnPtr& col_right_ptr) const { | 275 | 6.88k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 6.88k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 6.88k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 6.88k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 6.88k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 6.88k | if (!left_is_const && !right_is_const) { | 284 | 177 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 177 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 177 | vec_res.resize(col_left->get_data().size()); | 288 | 177 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 177 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 177 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 177 | vec_res); | 292 | | | 293 | 177 | block.replace_by_position(result, std::move(col_res)); | 294 | 6.70k | } else if (!left_is_const && right_is_const) { | 295 | 6.51k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 6.51k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 6.51k | vec_res.resize(col_left->size()); | 299 | 6.51k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 6.51k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 6.51k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 6.51k | col_right->get_element(0), vec_res); | 303 | | | 304 | 6.51k | block.replace_by_position(result, std::move(col_res)); | 305 | 6.51k | } else if (left_is_const && !right_is_const) { | 306 | 192 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 192 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 192 | vec_res.resize(col_right->size()); | 310 | 192 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 192 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 192 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 192 | col_right->get_data(), vec_res); | 314 | | | 315 | 192 | block.replace_by_position(result, std::move(col_res)); | 316 | 192 | } | 317 | 6.88k | return Status::OK(); | 318 | 6.88k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.46k | const ColumnPtr& col_right_ptr) const { | 275 | 1.46k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.46k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.46k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.46k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.46k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.46k | if (!left_is_const && !right_is_const) { | 284 | 84 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 84 | vec_res.resize(col_left->get_data().size()); | 288 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 84 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 84 | vec_res); | 292 | | | 293 | 84 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.37k | } else if (!left_is_const && right_is_const) { | 295 | 1.35k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.35k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.35k | vec_res.resize(col_left->size()); | 299 | 1.35k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.35k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.35k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.35k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.35k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.35k | } else if (left_is_const && !right_is_const) { | 306 | 24 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 24 | vec_res.resize(col_right->size()); | 310 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 24 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 24 | col_right->get_data(), vec_res); | 314 | | | 315 | 24 | block.replace_by_position(result, std::move(col_res)); | 316 | 24 | } | 317 | 1.46k | return Status::OK(); | 318 | 1.46k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 31.2k | const ColumnPtr& col_right_ptr) const { | 275 | 31.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 31.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 31.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 31.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 31.2k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 31.2k | if (!left_is_const && !right_is_const) { | 284 | 312 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 312 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 312 | vec_res.resize(col_left->get_data().size()); | 288 | 312 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 312 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 312 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 312 | vec_res); | 292 | | | 293 | 312 | block.replace_by_position(result, std::move(col_res)); | 294 | 30.9k | } else if (!left_is_const && right_is_const) { | 295 | 30.7k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 30.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 30.7k | vec_res.resize(col_left->size()); | 299 | 30.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 30.7k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 30.7k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 30.7k | col_right->get_element(0), vec_res); | 303 | | | 304 | 30.7k | block.replace_by_position(result, std::move(col_res)); | 305 | 30.7k | } else if (left_is_const && !right_is_const) { | 306 | 141 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 141 | vec_res.resize(col_right->size()); | 310 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 141 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 141 | col_right->get_data(), vec_res); | 314 | | | 315 | 141 | block.replace_by_position(result, std::move(col_res)); | 316 | 141 | } | 317 | 31.2k | return Status::OK(); | 318 | 31.2k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 23.3k | const ColumnPtr& col_right_ptr) const { | 275 | 23.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 23.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 23.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 23.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 23.3k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 23.3k | if (!left_is_const && !right_is_const) { | 284 | 277 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 277 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 277 | vec_res.resize(col_left->get_data().size()); | 288 | 277 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 277 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 277 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 277 | vec_res); | 292 | | | 293 | 277 | block.replace_by_position(result, std::move(col_res)); | 294 | 23.0k | } else if (!left_is_const && right_is_const) { | 295 | 22.6k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 22.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 22.6k | vec_res.resize(col_left->size()); | 299 | 22.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 22.6k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 22.6k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 22.6k | col_right->get_element(0), vec_res); | 303 | | | 304 | 22.6k | block.replace_by_position(result, std::move(col_res)); | 305 | 22.6k | } else if (left_is_const && !right_is_const) { | 306 | 433 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 433 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 433 | vec_res.resize(col_right->size()); | 310 | 433 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 433 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 433 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 433 | col_right->get_data(), vec_res); | 314 | | | 315 | 433 | block.replace_by_position(result, std::move(col_res)); | 316 | 433 | } | 317 | 23.3k | return Status::OK(); | 318 | 23.3k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 166 | const ColumnPtr& col_right_ptr) const { | 275 | 166 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 166 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 166 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 166 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 166 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 166 | if (!left_is_const && !right_is_const) { | 284 | 97 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 97 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 97 | vec_res.resize(col_left->get_data().size()); | 288 | 97 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 97 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 97 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 97 | vec_res); | 292 | | | 293 | 97 | block.replace_by_position(result, std::move(col_res)); | 294 | 97 | } else if (!left_is_const && right_is_const) { | 295 | 57 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 57 | vec_res.resize(col_left->size()); | 299 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 57 | col_right->get_element(0), vec_res); | 303 | | | 304 | 57 | block.replace_by_position(result, std::move(col_res)); | 305 | 57 | } else if (left_is_const && !right_is_const) { | 306 | 12 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 12 | vec_res.resize(col_right->size()); | 310 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 12 | col_right->get_data(), vec_res); | 314 | | | 315 | 12 | block.replace_by_position(result, std::move(col_res)); | 316 | 12 | } | 317 | 166 | return Status::OK(); | 318 | 166 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 29 | const ColumnPtr& col_right_ptr) const { | 275 | 29 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 29 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 29 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 29 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 29 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 29 | 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 | 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 | 29 | return Status::OK(); | 318 | 29 | } |
_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 | 122 | const ColumnPtr& col_right_ptr) const { | 275 | 122 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 122 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 122 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 122 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 122 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 122 | if (!left_is_const && !right_is_const) { | 284 | 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 | 118 | } else if (!left_is_const && right_is_const) { | 295 | 4 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 4 | vec_res.resize(col_left->size()); | 299 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 4 | col_right->get_element(0), vec_res); | 303 | | | 304 | 4 | block.replace_by_position(result, std::move(col_res)); | 305 | 4 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 122 | return Status::OK(); | 318 | 122 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 419 | const ColumnPtr& col_right_ptr) const { | 275 | 419 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 419 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 419 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 419 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 419 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 419 | if (!left_is_const && !right_is_const) { | 284 | 111 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 111 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 111 | vec_res.resize(col_left->get_data().size()); | 288 | 111 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 111 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 111 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 111 | vec_res); | 292 | | | 293 | 111 | block.replace_by_position(result, std::move(col_res)); | 294 | 308 | } else if (!left_is_const && right_is_const) { | 295 | 308 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 308 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 308 | vec_res.resize(col_left->size()); | 299 | 308 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 308 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 308 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 308 | col_right->get_element(0), vec_res); | 303 | | | 304 | 308 | block.replace_by_position(result, std::move(col_res)); | 305 | 308 | } 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 | 419 | return Status::OK(); | 318 | 419 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 4 | const ColumnPtr& col_right_ptr) const { | 275 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 4 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 4 | if (!left_is_const && !right_is_const) { | 284 | 4 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 4 | vec_res.resize(col_left->get_data().size()); | 288 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 4 | vec_res); | 292 | | | 293 | 4 | block.replace_by_position(result, std::move(col_res)); | 294 | 4 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 4 | return Status::OK(); | 318 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 78 | const ColumnPtr& col_right_ptr) const { | 275 | 78 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 78 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 78 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 78 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 78 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 78 | if (!left_is_const && !right_is_const) { | 284 | 39 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 39 | vec_res.resize(col_left->get_data().size()); | 288 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 39 | vec_res); | 292 | | | 293 | 39 | block.replace_by_position(result, std::move(col_res)); | 294 | 39 | } else if (!left_is_const && right_is_const) { | 295 | 39 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 39 | vec_res.resize(col_left->size()); | 299 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 39 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 39 | col_right->get_element(0), vec_res); | 303 | | | 304 | 39 | block.replace_by_position(result, std::move(col_res)); | 305 | 39 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 78 | return Status::OK(); | 318 | 78 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 2 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2 | vec_res.resize(col_left->size()); | 299 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2 | col_right->get_element(0), vec_res); | 303 | | | 304 | 2 | block.replace_by_position(result, std::move(col_res)); | 305 | 2 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 100 | const ColumnPtr& col_right_ptr) const { | 275 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 100 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 100 | if (!left_is_const && !right_is_const) { | 284 | 56 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 56 | vec_res.resize(col_left->get_data().size()); | 288 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 56 | vec_res); | 292 | | | 293 | 56 | block.replace_by_position(result, std::move(col_res)); | 294 | 56 | } else if (!left_is_const && right_is_const) { | 295 | 44 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 44 | vec_res.resize(col_left->size()); | 299 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 44 | col_right->get_element(0), vec_res); | 303 | | | 304 | 44 | block.replace_by_position(result, std::move(col_res)); | 305 | 44 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 100 | return Status::OK(); | 318 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 26 | const ColumnPtr& col_right_ptr) const { | 275 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 26 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 26 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 26 | } else if (!left_is_const && right_is_const) { | 295 | 26 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 26 | vec_res.resize(col_left->size()); | 299 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 26 | col_right->get_element(0), vec_res); | 303 | | | 304 | 26 | block.replace_by_position(result, std::move(col_res)); | 305 | 26 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 26 | return Status::OK(); | 318 | 26 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3.40k | const ColumnPtr& col_right_ptr) const { | 275 | 3.40k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.40k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.40k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.40k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.40k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.40k | if (!left_is_const && !right_is_const) { | 284 | 601 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 601 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 601 | vec_res.resize(col_left->get_data().size()); | 288 | 601 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 601 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 601 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 601 | vec_res); | 292 | | | 293 | 601 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.80k | } else if (!left_is_const && right_is_const) { | 295 | 2.80k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.80k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.80k | vec_res.resize(col_left->size()); | 299 | 2.80k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.80k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.80k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.80k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.80k | 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.40k | return Status::OK(); | 318 | 3.40k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3.10k | const ColumnPtr& col_right_ptr) const { | 275 | 3.10k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.10k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.10k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.10k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.10k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.10k | if (!left_is_const && !right_is_const) { | 284 | 394 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 394 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 394 | vec_res.resize(col_left->get_data().size()); | 288 | 394 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 394 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 394 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 394 | vec_res); | 292 | | | 293 | 394 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.71k | } else if (!left_is_const && right_is_const) { | 295 | 1.93k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.93k | vec_res.resize(col_left->size()); | 299 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.93k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.93k | } else if (left_is_const && !right_is_const) { | 306 | 782 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 782 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 782 | vec_res.resize(col_right->size()); | 310 | 782 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 782 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 782 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 782 | col_right->get_data(), vec_res); | 314 | | | 315 | 782 | block.replace_by_position(result, std::move(col_res)); | 316 | 782 | } | 317 | 3.10k | return Status::OK(); | 318 | 3.10k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 48 | const ColumnPtr& col_right_ptr) const { | 275 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 48 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 48 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 28 | } else if (!left_is_const && right_is_const) { | 295 | 28 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 28 | vec_res.resize(col_left->size()); | 299 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 28 | col_right->get_element(0), vec_res); | 303 | | | 304 | 28 | block.replace_by_position(result, std::move(col_res)); | 305 | 28 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 48 | return Status::OK(); | 318 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 60 | const ColumnPtr& col_right_ptr) const { | 275 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 60 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 60 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 40 | } else if (!left_is_const && right_is_const) { | 295 | 40 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 40 | vec_res.resize(col_left->size()); | 299 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 40 | col_right->get_element(0), vec_res); | 303 | | | 304 | 40 | block.replace_by_position(result, std::move(col_res)); | 305 | 40 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 60 | return Status::OK(); | 318 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.14k | const ColumnPtr& col_right_ptr) const { | 275 | 1.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.14k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.14k | if (!left_is_const && !right_is_const) { | 284 | 987 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 987 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 987 | vec_res.resize(col_left->get_data().size()); | 288 | 987 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 987 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 987 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 987 | vec_res); | 292 | | | 293 | 987 | block.replace_by_position(result, std::move(col_res)); | 294 | 987 | } else if (!left_is_const && right_is_const) { | 295 | 157 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 157 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 157 | vec_res.resize(col_left->size()); | 299 | 157 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 157 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 157 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 157 | col_right->get_element(0), vec_res); | 303 | | | 304 | 157 | block.replace_by_position(result, std::move(col_res)); | 305 | 157 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.14k | return Status::OK(); | 318 | 1.14k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 94 | const ColumnPtr& col_right_ptr) const { | 275 | 94 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 94 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 94 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 94 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 94 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 94 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 94 | } else if (!left_is_const && right_is_const) { | 295 | 94 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 94 | vec_res.resize(col_left->size()); | 299 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 94 | col_right->get_element(0), vec_res); | 303 | | | 304 | 94 | block.replace_by_position(result, std::move(col_res)); | 305 | 94 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 94 | return Status::OK(); | 318 | 94 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 890 | const ColumnPtr& col_right_ptr) const { | 275 | 890 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 890 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 890 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 890 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 890 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 890 | if (!left_is_const && !right_is_const) { | 284 | 37 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 37 | vec_res.resize(col_left->get_data().size()); | 288 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 37 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 37 | vec_res); | 292 | | | 293 | 37 | block.replace_by_position(result, std::move(col_res)); | 294 | 853 | } else if (!left_is_const && right_is_const) { | 295 | 705 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 705 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 705 | vec_res.resize(col_left->size()); | 299 | 705 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 705 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 705 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 705 | col_right->get_element(0), vec_res); | 303 | | | 304 | 705 | block.replace_by_position(result, std::move(col_res)); | 305 | 705 | } else if (left_is_const && !right_is_const) { | 306 | 150 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 150 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 150 | vec_res.resize(col_right->size()); | 310 | 150 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 150 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 150 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 150 | col_right->get_data(), vec_res); | 314 | | | 315 | 150 | block.replace_by_position(result, std::move(col_res)); | 316 | 150 | } | 317 | 890 | return Status::OK(); | 318 | 890 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.87k | const ColumnPtr& col_right_ptr) const { | 275 | 1.87k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.87k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.87k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.87k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.87k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.87k | if (!left_is_const && !right_is_const) { | 284 | 112 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 112 | vec_res.resize(col_left->get_data().size()); | 288 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 112 | vec_res); | 292 | | | 293 | 112 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.75k | } else if (!left_is_const && right_is_const) { | 295 | 1.57k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.57k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.57k | vec_res.resize(col_left->size()); | 299 | 1.57k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.57k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.57k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.57k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.57k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.57k | } else if (left_is_const && !right_is_const) { | 306 | 192 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 192 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 192 | vec_res.resize(col_right->size()); | 310 | 192 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 192 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 192 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 192 | col_right->get_data(), vec_res); | 314 | | | 315 | 192 | block.replace_by_position(result, std::move(col_res)); | 316 | 192 | } | 317 | 1.87k | return Status::OK(); | 318 | 1.87k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 28.8k | const ColumnPtr& col_right_ptr) const { | 275 | 28.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 28.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 28.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 28.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 28.8k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 28.8k | 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 | 28.8k | } else if (!left_is_const && right_is_const) { | 295 | 26.0k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 26.0k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 26.0k | vec_res.resize(col_left->size()); | 299 | 26.0k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 26.0k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 26.0k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 26.0k | col_right->get_element(0), vec_res); | 303 | | | 304 | 26.0k | block.replace_by_position(result, std::move(col_res)); | 305 | 26.0k | } else if (left_is_const && !right_is_const) { | 306 | 2.83k | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 2.83k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 2.83k | vec_res.resize(col_right->size()); | 310 | 2.83k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 2.83k | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 2.83k | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 2.83k | col_right->get_data(), vec_res); | 314 | | | 315 | 2.83k | block.replace_by_position(result, std::move(col_res)); | 316 | 2.83k | } | 317 | 28.8k | return Status::OK(); | 318 | 28.8k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 13.5k | const ColumnPtr& col_right_ptr) const { | 275 | 13.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 13.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 13.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 13.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 13.5k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 13.5k | if (!left_is_const && !right_is_const) { | 284 | 65 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 65 | vec_res.resize(col_left->get_data().size()); | 288 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 65 | vec_res); | 292 | | | 293 | 65 | block.replace_by_position(result, std::move(col_res)); | 294 | 13.5k | } else if (!left_is_const && right_is_const) { | 295 | 13.4k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 13.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 13.4k | vec_res.resize(col_left->size()); | 299 | 13.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 13.4k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 13.4k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 13.4k | col_right->get_element(0), vec_res); | 303 | | | 304 | 13.4k | block.replace_by_position(result, std::move(col_res)); | 305 | 13.4k | } else if (left_is_const && !right_is_const) { | 306 | 116 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 116 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 116 | vec_res.resize(col_right->size()); | 310 | 116 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 116 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 116 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 116 | col_right->get_data(), vec_res); | 314 | | | 315 | 116 | block.replace_by_position(result, std::move(col_res)); | 316 | 116 | } | 317 | 13.5k | return Status::OK(); | 318 | 13.5k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 249 | const ColumnPtr& col_right_ptr) const { | 275 | 249 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 249 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 249 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 249 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 249 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 249 | if (!left_is_const && !right_is_const) { | 284 | 2 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 2 | vec_res.resize(col_left->get_data().size()); | 288 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 2 | vec_res); | 292 | | | 293 | 2 | block.replace_by_position(result, std::move(col_res)); | 294 | 247 | } else if (!left_is_const && right_is_const) { | 295 | 201 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 201 | vec_res.resize(col_left->size()); | 299 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 201 | col_right->get_element(0), vec_res); | 303 | | | 304 | 201 | block.replace_by_position(result, std::move(col_res)); | 305 | 201 | } else if (left_is_const && !right_is_const) { | 306 | 46 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 46 | vec_res.resize(col_right->size()); | 310 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 46 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 46 | col_right->get_data(), vec_res); | 314 | | | 315 | 46 | block.replace_by_position(result, std::move(col_res)); | 316 | 46 | } | 317 | 249 | return Status::OK(); | 318 | 249 | } |
_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 | 235 | const ColumnPtr& col_right_ptr) const { | 275 | 235 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 235 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 235 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 235 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 235 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 235 | 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 | 215 | } else if (!left_is_const && right_is_const) { | 295 | 215 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 215 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 215 | vec_res.resize(col_left->size()); | 299 | 215 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 215 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 215 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 215 | col_right->get_element(0), vec_res); | 303 | | | 304 | 215 | block.replace_by_position(result, std::move(col_res)); | 305 | 215 | } 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 | 235 | return Status::OK(); | 318 | 235 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.46k | const ColumnPtr& col_right_ptr) const { | 275 | 2.46k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.46k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.46k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.46k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.46k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.46k | if (!left_is_const && !right_is_const) { | 284 | 29 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 29 | vec_res.resize(col_left->get_data().size()); | 288 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 29 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 29 | vec_res); | 292 | | | 293 | 29 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.43k | } else if (!left_is_const && right_is_const) { | 295 | 2.43k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.43k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.43k | vec_res.resize(col_left->size()); | 299 | 2.43k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.43k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.43k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.43k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.43k | block.replace_by_position(result, std::move(col_res)); | 305 | 2.43k | } 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.46k | return Status::OK(); | 318 | 2.46k | } |
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 | 139 | const ColumnPtr& col_right_ptr) const { | 275 | 139 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 139 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 139 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 139 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 139 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 139 | 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 | 139 | } else if (!left_is_const && right_is_const) { | 295 | 139 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 139 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 139 | vec_res.resize(col_left->size()); | 299 | 139 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 139 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 139 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 139 | col_right->get_element(0), vec_res); | 303 | | | 304 | 139 | block.replace_by_position(result, std::move(col_res)); | 305 | 139 | } 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 | 139 | return Status::OK(); | 318 | 139 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.57k | const ColumnPtr& col_right_ptr) const { | 275 | 1.57k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.57k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.57k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.57k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.57k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.57k | 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.57k | } else if (!left_is_const && right_is_const) { | 295 | 1.57k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.57k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.57k | vec_res.resize(col_left->size()); | 299 | 1.57k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.57k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.57k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.57k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.57k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.57k | } else if (left_is_const && !right_is_const) { | 306 | 6 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 6 | vec_res.resize(col_right->size()); | 310 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 6 | col_right->get_data(), vec_res); | 314 | | | 315 | 6 | block.replace_by_position(result, std::move(col_res)); | 316 | 6 | } | 317 | 1.57k | return Status::OK(); | 318 | 1.57k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 622 | const ColumnPtr& col_right_ptr) const { | 275 | 622 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 622 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 622 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 622 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 622 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 622 | if (!left_is_const && !right_is_const) { | 284 | 8 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 8 | vec_res.resize(col_left->get_data().size()); | 288 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 8 | vec_res); | 292 | | | 293 | 8 | block.replace_by_position(result, std::move(col_res)); | 294 | 614 | } else if (!left_is_const && right_is_const) { | 295 | 614 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 614 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 614 | vec_res.resize(col_left->size()); | 299 | 614 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 614 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 614 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 614 | col_right->get_element(0), vec_res); | 303 | | | 304 | 614 | block.replace_by_position(result, std::move(col_res)); | 305 | 614 | } 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 | 622 | return Status::OK(); | 318 | 622 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 50 | const ColumnPtr& col_right_ptr) const { | 275 | 50 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 50 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 50 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 50 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 50 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 50 | 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 | 50 | } else if (!left_is_const && right_is_const) { | 295 | 50 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 50 | vec_res.resize(col_left->size()); | 299 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 50 | col_right->get_element(0), vec_res); | 303 | | | 304 | 50 | block.replace_by_position(result, std::move(col_res)); | 305 | 50 | } 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 | 50 | return Status::OK(); | 318 | 50 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 97 | const ColumnPtr& col_right_ptr) const { | 275 | 97 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 97 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 97 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 97 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 97 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 98 | 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 | 98 | } else if (!left_is_const && right_is_const) { | 295 | 98 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 98 | vec_res.resize(col_left->size()); | 299 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 98 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 98 | col_right->get_element(0), vec_res); | 303 | | | 304 | 98 | block.replace_by_position(result, std::move(col_res)); | 305 | 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 | 97 | return Status::OK(); | 318 | 97 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 12.5k | const ColumnPtr& col_right_ptr) const { | 275 | 12.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 12.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 12.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 12.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 12.5k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 12.5k | if (!left_is_const && !right_is_const) { | 284 | 3 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 3 | vec_res.resize(col_left->get_data().size()); | 288 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 3 | vec_res); | 292 | | | 293 | 3 | block.replace_by_position(result, std::move(col_res)); | 294 | 12.5k | } else if (!left_is_const && right_is_const) { | 295 | 12.5k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 12.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 12.5k | vec_res.resize(col_left->size()); | 299 | 12.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 12.5k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 12.5k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 12.5k | col_right->get_element(0), vec_res); | 303 | | | 304 | 12.5k | block.replace_by_position(result, std::move(col_res)); | 305 | 12.5k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 12.5k | return Status::OK(); | 318 | 12.5k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 731 | const ColumnPtr& col_right_ptr) const { | 275 | 731 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 731 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 731 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 731 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 731 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 731 | 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 | 722 | } else if (!left_is_const && right_is_const) { | 295 | 722 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 722 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 722 | vec_res.resize(col_left->size()); | 299 | 722 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 722 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 722 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 722 | col_right->get_element(0), vec_res); | 303 | | | 304 | 722 | block.replace_by_position(result, std::move(col_res)); | 305 | 722 | } 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 | 731 | return Status::OK(); | 318 | 731 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 44 | const ColumnPtr& col_right_ptr) const { | 275 | 44 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 44 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 44 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 44 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 44 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 44 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 44 | } else if (!left_is_const && right_is_const) { | 295 | 44 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 44 | vec_res.resize(col_left->size()); | 299 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 44 | col_right->get_element(0), vec_res); | 303 | | | 304 | 44 | block.replace_by_position(result, std::move(col_res)); | 305 | 44 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 44 | return Status::OK(); | 318 | 44 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 11 | const ColumnPtr& col_right_ptr) const { | 275 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 11 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 11 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 10 | } else if (!left_is_const && right_is_const) { | 295 | 10 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 10 | vec_res.resize(col_left->size()); | 299 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 10 | col_right->get_element(0), vec_res); | 303 | | | 304 | 10 | block.replace_by_position(result, std::move(col_res)); | 305 | 10 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 11 | return Status::OK(); | 318 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 128 | const ColumnPtr& col_right_ptr) const { | 275 | 128 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 128 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 128 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 128 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 128 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 128 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 108 | } else if (!left_is_const && right_is_const) { | 295 | 108 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 108 | vec_res.resize(col_left->size()); | 299 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 108 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 108 | col_right->get_element(0), vec_res); | 303 | | | 304 | 108 | block.replace_by_position(result, std::move(col_res)); | 305 | 108 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 128 | return Status::OK(); | 318 | 128 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 149 | const ColumnPtr& col_right_ptr) const { | 275 | 149 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 149 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 149 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 149 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 149 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 149 | if (!left_is_const && !right_is_const) { | 284 | 22 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 22 | vec_res.resize(col_left->get_data().size()); | 288 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 22 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 22 | vec_res); | 292 | | | 293 | 22 | block.replace_by_position(result, std::move(col_res)); | 294 | 127 | } else if (!left_is_const && right_is_const) { | 295 | 127 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 127 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 127 | vec_res.resize(col_left->size()); | 299 | 127 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 127 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 127 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 127 | col_right->get_element(0), vec_res); | 303 | | | 304 | 127 | block.replace_by_position(result, std::move(col_res)); | 305 | 127 | } 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 | 149 | return Status::OK(); | 318 | 149 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 81 | const ColumnPtr& col_right_ptr) const { | 275 | 81 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 81 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 81 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 81 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 81 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 81 | if (!left_is_const && !right_is_const) { | 284 | 81 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 81 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 81 | vec_res.resize(col_left->get_data().size()); | 288 | 81 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 81 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 81 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 81 | vec_res); | 292 | | | 293 | 81 | block.replace_by_position(result, std::move(col_res)); | 294 | 81 | } 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 | 81 | return Status::OK(); | 318 | 81 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.42k | const ColumnPtr& col_right_ptr) const { | 275 | 2.42k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.42k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.42k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.42k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.42k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.42k | if (!left_is_const && !right_is_const) { | 284 | 1.90k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.90k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.90k | vec_res.resize(col_left->get_data().size()); | 288 | 1.90k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.90k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.90k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.90k | vec_res); | 292 | | | 293 | 1.90k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.90k | } else if (!left_is_const && right_is_const) { | 295 | 525 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 525 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 525 | vec_res.resize(col_left->size()); | 299 | 525 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 525 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 525 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 525 | col_right->get_element(0), vec_res); | 303 | | | 304 | 525 | block.replace_by_position(result, std::move(col_res)); | 305 | 525 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2.42k | return Status::OK(); | 318 | 2.42k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 577 | const ColumnPtr& col_right_ptr) const { | 275 | 577 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 577 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 577 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 577 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 577 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 577 | if (!left_is_const && !right_is_const) { | 284 | 239 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 239 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 239 | vec_res.resize(col_left->get_data().size()); | 288 | 239 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 239 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 239 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 239 | vec_res); | 292 | | | 293 | 239 | block.replace_by_position(result, std::move(col_res)); | 294 | 338 | } else if (!left_is_const && right_is_const) { | 295 | 337 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 337 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 337 | vec_res.resize(col_left->size()); | 299 | 337 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 337 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 337 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 337 | col_right->get_element(0), vec_res); | 303 | | | 304 | 337 | block.replace_by_position(result, std::move(col_res)); | 305 | 337 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 577 | return Status::OK(); | 318 | 577 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 1 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1 | vec_res.resize(col_left->size()); | 299 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1 | col_right->get_element(0), vec_res); | 303 | | | 304 | 1 | block.replace_by_position(result, std::move(col_res)); | 305 | 1 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.95k | const ColumnPtr& col_right_ptr) const { | 275 | 1.95k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.95k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.95k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.95k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.95k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.95k | if (!left_is_const && !right_is_const) { | 284 | 140 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 140 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 140 | vec_res.resize(col_left->get_data().size()); | 288 | 140 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 140 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 140 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 140 | vec_res); | 292 | | | 293 | 140 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.81k | } else if (!left_is_const && right_is_const) { | 295 | 1.64k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.64k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.64k | vec_res.resize(col_left->size()); | 299 | 1.64k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.64k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.64k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.64k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.64k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.64k | } else if (left_is_const && !right_is_const) { | 306 | 168 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 168 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 168 | vec_res.resize(col_right->size()); | 310 | 168 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 168 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 168 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 168 | col_right->get_data(), vec_res); | 314 | | | 315 | 168 | block.replace_by_position(result, std::move(col_res)); | 316 | 168 | } | 317 | 1.95k | return Status::OK(); | 318 | 1.95k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 368 | const ColumnPtr& col_right_ptr) const { | 275 | 368 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 368 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 368 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 368 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 368 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 368 | if (!left_is_const && !right_is_const) { | 284 | 100 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 100 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 100 | vec_res.resize(col_left->get_data().size()); | 288 | 100 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 100 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 100 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 100 | vec_res); | 292 | | | 293 | 100 | block.replace_by_position(result, std::move(col_res)); | 294 | 268 | } else if (!left_is_const && right_is_const) { | 295 | 268 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 268 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 268 | vec_res.resize(col_left->size()); | 299 | 268 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 268 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 268 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 268 | col_right->get_element(0), vec_res); | 303 | | | 304 | 268 | block.replace_by_position(result, std::move(col_res)); | 305 | 268 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 368 | return Status::OK(); | 318 | 368 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 6.04k | const ColumnPtr& col_right_ptr) const { | 275 | 6.04k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 6.04k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 6.04k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 6.04k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 6.04k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 6.04k | if (!left_is_const && !right_is_const) { | 284 | 260 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 260 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 260 | vec_res.resize(col_left->get_data().size()); | 288 | 260 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 260 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 260 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 260 | vec_res); | 292 | | | 293 | 260 | block.replace_by_position(result, std::move(col_res)); | 294 | 5.78k | } else if (!left_is_const && right_is_const) { | 295 | 5.75k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 5.75k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 5.75k | vec_res.resize(col_left->size()); | 299 | 5.75k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 5.75k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 5.75k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 5.75k | col_right->get_element(0), vec_res); | 303 | | | 304 | 5.75k | block.replace_by_position(result, std::move(col_res)); | 305 | 5.75k | } else if (left_is_const && !right_is_const) { | 306 | 23 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 23 | vec_res.resize(col_right->size()); | 310 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 23 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 23 | col_right->get_data(), vec_res); | 314 | | | 315 | 23 | block.replace_by_position(result, std::move(col_res)); | 316 | 23 | } | 317 | 6.04k | return Status::OK(); | 318 | 6.04k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.69k | const ColumnPtr& col_right_ptr) const { | 275 | 1.69k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.69k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.69k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.69k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.69k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.69k | if (!left_is_const && !right_is_const) { | 284 | 199 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 199 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 199 | vec_res.resize(col_left->get_data().size()); | 288 | 199 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 199 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 199 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 199 | vec_res); | 292 | | | 293 | 199 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.49k | } else if (!left_is_const && right_is_const) { | 295 | 1.41k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.41k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.41k | vec_res.resize(col_left->size()); | 299 | 1.41k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.41k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.41k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.41k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.41k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.41k | } else if (left_is_const && !right_is_const) { | 306 | 79 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 79 | vec_res.resize(col_right->size()); | 310 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 79 | col_right->get_data(), vec_res); | 314 | | | 315 | 79 | block.replace_by_position(result, std::move(col_res)); | 316 | 79 | } | 317 | 1.69k | return Status::OK(); | 318 | 1.69k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 275 | const ColumnPtr& col_right_ptr) const { | 275 | 275 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 275 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 275 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 275 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 275 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 275 | if (!left_is_const && !right_is_const) { | 284 | 137 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 137 | vec_res.resize(col_left->get_data().size()); | 288 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 137 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 137 | vec_res); | 292 | | | 293 | 137 | block.replace_by_position(result, std::move(col_res)); | 294 | 138 | } else if (!left_is_const && right_is_const) { | 295 | 46 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 46 | vec_res.resize(col_left->size()); | 299 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 46 | col_right->get_element(0), vec_res); | 303 | | | 304 | 46 | block.replace_by_position(result, std::move(col_res)); | 305 | 92 | } else if (left_is_const && !right_is_const) { | 306 | 92 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 92 | vec_res.resize(col_right->size()); | 310 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 92 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 92 | col_right->get_data(), vec_res); | 314 | | | 315 | 92 | block.replace_by_position(result, std::move(col_res)); | 316 | 92 | } | 317 | 275 | return Status::OK(); | 318 | 275 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 15 | const ColumnPtr& col_right_ptr) const { | 275 | 15 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 15 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 15 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 15 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 15 | 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 | 18.4E | } 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 | 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 | 15 | return Status::OK(); | 318 | 15 | } |
_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 | 162 | const ColumnPtr& col_right_ptr) const { | 275 | 162 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 162 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 162 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 162 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 162 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 162 | if (!left_is_const && !right_is_const) { | 284 | 136 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 136 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 136 | vec_res.resize(col_left->get_data().size()); | 288 | 136 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 136 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 136 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 136 | vec_res); | 292 | | | 293 | 136 | block.replace_by_position(result, std::move(col_res)); | 294 | 136 | } else if (!left_is_const && right_is_const) { | 295 | 26 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 26 | vec_res.resize(col_left->size()); | 299 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 26 | col_right->get_element(0), vec_res); | 303 | | | 304 | 26 | block.replace_by_position(result, std::move(col_res)); | 305 | 26 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 162 | return Status::OK(); | 318 | 162 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 350 | const ColumnPtr& col_right_ptr) const { | 275 | 350 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 350 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 350 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 350 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 350 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 350 | if (!left_is_const && !right_is_const) { | 284 | 131 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 131 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 131 | vec_res.resize(col_left->get_data().size()); | 288 | 131 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 131 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 131 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 131 | vec_res); | 292 | | | 293 | 131 | block.replace_by_position(result, std::move(col_res)); | 294 | 219 | } else if (!left_is_const && right_is_const) { | 295 | 219 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 219 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 219 | vec_res.resize(col_left->size()); | 299 | 219 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 219 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 219 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 219 | col_right->get_element(0), vec_res); | 303 | | | 304 | 219 | block.replace_by_position(result, std::move(col_res)); | 305 | 219 | } 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 | 350 | return Status::OK(); | 318 | 350 | } |
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 | 298 | const ColumnPtr& col_right_ptr) const { | 275 | 298 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 298 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 298 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 298 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 298 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 298 | if (!left_is_const && !right_is_const) { | 284 | 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 | 298 | } else if (!left_is_const && right_is_const) { | 295 | 298 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 298 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 298 | vec_res.resize(col_left->size()); | 299 | 298 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 298 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 298 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 298 | col_right->get_element(0), vec_res); | 303 | | | 304 | 298 | block.replace_by_position(result, std::move(col_res)); | 305 | 298 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 298 | return Status::OK(); | 318 | 298 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 7.73k | const ColumnPtr& col_right_ptr) const { | 275 | 7.73k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 7.73k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 7.73k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 7.73k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 7.73k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 7.73k | if (!left_is_const && !right_is_const) { | 284 | 436 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 436 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 436 | vec_res.resize(col_left->get_data().size()); | 288 | 436 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 436 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 436 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 436 | vec_res); | 292 | | | 293 | 436 | block.replace_by_position(result, std::move(col_res)); | 294 | 7.30k | } else if (!left_is_const && right_is_const) { | 295 | 7.29k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 7.29k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 7.29k | vec_res.resize(col_left->size()); | 299 | 7.29k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 7.29k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 7.29k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 7.29k | col_right->get_element(0), vec_res); | 303 | | | 304 | 7.29k | block.replace_by_position(result, std::move(col_res)); | 305 | 7.29k | } else if (left_is_const && !right_is_const) { | 306 | 5 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 5 | vec_res.resize(col_right->size()); | 310 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 5 | col_right->get_data(), vec_res); | 314 | | | 315 | 5 | block.replace_by_position(result, std::move(col_res)); | 316 | 5 | } | 317 | 7.73k | return Status::OK(); | 318 | 7.73k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 500 | const ColumnPtr& col_right_ptr) const { | 275 | 500 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 500 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 500 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 500 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 500 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 500 | 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 | 500 | } else if (!left_is_const && right_is_const) { | 295 | 500 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 500 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 500 | vec_res.resize(col_left->size()); | 299 | 500 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 500 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 500 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 500 | col_right->get_element(0), vec_res); | 303 | | | 304 | 500 | block.replace_by_position(result, std::move(col_res)); | 305 | 500 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 500 | return Status::OK(); | 318 | 500 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 261 | const ColumnPtr& col_right_ptr) const { | 275 | 261 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 261 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 261 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 261 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 261 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 261 | 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 | 260 | } else if (!left_is_const && right_is_const) { | 295 | 260 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 260 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 260 | vec_res.resize(col_left->size()); | 299 | 260 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 260 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 260 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 260 | col_right->get_element(0), vec_res); | 303 | | | 304 | 260 | block.replace_by_position(result, std::move(col_res)); | 305 | 260 | } 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 | 261 | return Status::OK(); | 318 | 261 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 344 | const ColumnPtr& col_right_ptr) const { | 275 | 344 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 344 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 344 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 344 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 344 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 344 | 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 | 344 | } else if (!left_is_const && right_is_const) { | 295 | 344 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 344 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 344 | vec_res.resize(col_left->size()); | 299 | 344 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 344 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 344 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 344 | col_right->get_element(0), vec_res); | 303 | | | 304 | 344 | block.replace_by_position(result, std::move(col_res)); | 305 | 344 | } 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 | 344 | return Status::OK(); | 318 | 344 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 20.3k | const ColumnPtr& col_right_ptr) const { | 275 | 20.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 20.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 20.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 20.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 20.3k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 20.3k | if (!left_is_const && !right_is_const) { | 284 | 23 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 23 | vec_res.resize(col_left->get_data().size()); | 288 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 23 | vec_res); | 292 | | | 293 | 23 | block.replace_by_position(result, std::move(col_res)); | 294 | 20.3k | } else if (!left_is_const && right_is_const) { | 295 | 19.8k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 19.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 19.8k | vec_res.resize(col_left->size()); | 299 | 19.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 19.8k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 19.8k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 19.8k | col_right->get_element(0), vec_res); | 303 | | | 304 | 19.8k | block.replace_by_position(result, std::move(col_res)); | 305 | 19.8k | } else if (left_is_const && !right_is_const) { | 306 | 486 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 486 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 486 | vec_res.resize(col_right->size()); | 310 | 486 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 486 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 486 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 486 | col_right->get_data(), vec_res); | 314 | | | 315 | 486 | block.replace_by_position(result, std::move(col_res)); | 316 | 486 | } | 317 | 20.3k | return Status::OK(); | 318 | 20.3k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 894 | const ColumnPtr& col_right_ptr) const { | 275 | 894 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 894 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 894 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 894 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 894 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 894 | if (!left_is_const && !right_is_const) { | 284 | 30 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 30 | vec_res.resize(col_left->get_data().size()); | 288 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 30 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 30 | vec_res); | 292 | | | 293 | 30 | block.replace_by_position(result, std::move(col_res)); | 294 | 864 | } else if (!left_is_const && right_is_const) { | 295 | 816 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 816 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 816 | vec_res.resize(col_left->size()); | 299 | 816 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 816 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 816 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 816 | col_right->get_element(0), vec_res); | 303 | | | 304 | 816 | block.replace_by_position(result, std::move(col_res)); | 305 | 816 | } else if (left_is_const && !right_is_const) { | 306 | 48 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 48 | vec_res.resize(col_right->size()); | 310 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 48 | col_right->get_data(), vec_res); | 314 | | | 315 | 48 | block.replace_by_position(result, std::move(col_res)); | 316 | 48 | } | 317 | 894 | return Status::OK(); | 318 | 894 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 48 | const ColumnPtr& col_right_ptr) const { | 275 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 48 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 48 | if (!left_is_const && !right_is_const) { | 284 | 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 | 48 | } else if (!left_is_const && right_is_const) { | 295 | 48 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 48 | vec_res.resize(col_left->size()); | 299 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 48 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 48 | col_right->get_element(0), vec_res); | 303 | | | 304 | 48 | block.replace_by_position(result, std::move(col_res)); | 305 | 48 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 48 | return Status::OK(); | 318 | 48 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 10 | const ColumnPtr& col_right_ptr) const { | 275 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 10 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 10 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 10 | } else if (!left_is_const && right_is_const) { | 295 | 10 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 10 | vec_res.resize(col_left->size()); | 299 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 10 | col_right->get_element(0), vec_res); | 303 | | | 304 | 10 | block.replace_by_position(result, std::move(col_res)); | 305 | 10 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 10 | return Status::OK(); | 318 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 124 | const ColumnPtr& col_right_ptr) const { | 275 | 124 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 124 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 124 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 124 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 124 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 124 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 104 | } else if (!left_is_const && right_is_const) { | 295 | 104 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 104 | vec_res.resize(col_left->size()); | 299 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 104 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 104 | col_right->get_element(0), vec_res); | 303 | | | 304 | 104 | block.replace_by_position(result, std::move(col_res)); | 305 | 104 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 124 | return Status::OK(); | 318 | 124 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 139 | const ColumnPtr& col_right_ptr) const { | 275 | 139 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 139 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 139 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 139 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 139 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 139 | 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 | 119 | } 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 | 1 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 1 | vec_res.resize(col_right->size()); | 310 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 1 | col_right->get_data(), vec_res); | 314 | | | 315 | 1 | block.replace_by_position(result, std::move(col_res)); | 316 | 1 | } | 317 | 139 | return Status::OK(); | 318 | 139 | } |
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 | 146k | const ColumnWithTypeAndName& col_right) const { |
322 | 146k | auto call = [&](const auto& type) -> bool { |
323 | 146k | using DispatchType = std::decay_t<decltype(type)>; |
324 | 146k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
325 | 146k | block, result, col_left, col_right); |
326 | 146k | return true; |
327 | 146k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 265 | auto call = [&](const auto& type) -> bool { | 323 | 265 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 265 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 265 | block, result, col_left, col_right); | 326 | 265 | return true; | 327 | 265 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 289 | auto call = [&](const auto& type) -> bool { | 323 | 289 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 289 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 289 | block, result, col_left, col_right); | 326 | 289 | return true; | 327 | 289 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 322 | 1.22k | auto call = [&](const auto& type) -> bool { | 323 | 1.22k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.22k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.22k | block, result, col_left, col_right); | 326 | 1.22k | return true; | 327 | 1.22k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 29 | auto call = [&](const auto& type) -> bool { | 323 | 29 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 29 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 29 | block, result, col_left, col_right); | 326 | 29 | return true; | 327 | 29 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_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 | 58 | auto call = [&](const auto& type) -> bool { | 323 | 58 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 58 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 58 | block, result, col_left, col_right); | 326 | 58 | return true; | 327 | 58 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 322 | 324 | auto call = [&](const auto& type) -> bool { | 323 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 324 | block, result, col_left, col_right); | 326 | 324 | return true; | 327 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 30 | auto call = [&](const auto& type) -> bool { | 323 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 30 | block, result, col_left, col_right); | 326 | 30 | return true; | 327 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 46 | auto call = [&](const auto& type) -> bool { | 323 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 46 | block, result, col_left, col_right); | 326 | 46 | return true; | 327 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 1.60k | auto call = [&](const auto& type) -> bool { | 323 | 1.60k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.60k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.60k | block, result, col_left, col_right); | 326 | 1.60k | return true; | 327 | 1.60k | }; |
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.42k | auto call = [&](const auto& type) -> bool { | 323 | 1.42k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.42k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.42k | block, result, col_left, col_right); | 326 | 1.42k | return true; | 327 | 1.42k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 2 | auto call = [&](const auto& type) -> bool { | 323 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 2 | block, result, col_left, col_right); | 326 | 2 | return true; | 327 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 9 | auto call = [&](const auto& type) -> bool { | 323 | 9 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 9 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 9 | block, result, col_left, col_right); | 326 | 9 | return true; | 327 | 9 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 255 | auto call = [&](const auto& type) -> bool { | 323 | 255 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 255 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 255 | block, result, col_left, col_right); | 326 | 255 | return true; | 327 | 255 | }; |
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 | 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 | }; |
_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 | 218 | auto call = [&](const auto& type) -> bool { | 323 | 218 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 218 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 218 | block, result, col_left, col_right); | 326 | 218 | return true; | 327 | 218 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 259 | auto call = [&](const auto& type) -> bool { | 323 | 259 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 259 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 259 | block, result, col_left, col_right); | 326 | 259 | return true; | 327 | 259 | }; |
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 | 474 | auto call = [&](const auto& type) -> bool { | 323 | 474 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 474 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 474 | block, result, col_left, col_right); | 326 | 474 | return true; | 327 | 474 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 1 | auto call = [&](const auto& type) -> bool { | 323 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1 | block, result, col_left, col_right); | 326 | 1 | return true; | 327 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 4 | auto call = [&](const auto& type) -> bool { | 323 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 4 | block, result, col_left, col_right); | 326 | 4 | return true; | 327 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 139k | auto call = [&](const auto& type) -> bool { | 323 | 139k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 139k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 139k | block, result, col_left, col_right); | 326 | 139k | return true; | 327 | 139k | }; |
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 | 841 | auto call = [&](const auto& type) -> bool { | 323 | 841 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 841 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 841 | block, result, col_left, col_right); | 326 | 841 | return true; | 327 | 841 | }; |
_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 | 146k | 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 | 146k | 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 | 146k | return Status::OK(); |
340 | 146k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 1.80k | const ColumnWithTypeAndName& col_right) const { | 322 | 1.80k | auto call = [&](const auto& type) -> bool { | 323 | 1.80k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.80k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.80k | block, result, col_left, col_right); | 326 | 1.80k | return true; | 327 | 1.80k | }; | 328 | | | 329 | 1.80k | 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.80k | 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.80k | return Status::OK(); | 340 | 1.80k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 412 | const ColumnWithTypeAndName& col_right) const { | 322 | 412 | auto call = [&](const auto& type) -> bool { | 323 | 412 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 412 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 412 | block, result, col_left, col_right); | 326 | 412 | return true; | 327 | 412 | }; | 328 | | | 329 | 412 | 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 | 412 | 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 | 412 | return Status::OK(); | 340 | 412 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 3.07k | const ColumnWithTypeAndName& col_right) const { | 322 | 3.07k | auto call = [&](const auto& type) -> bool { | 323 | 3.07k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 3.07k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 3.07k | block, result, col_left, col_right); | 326 | 3.07k | return true; | 327 | 3.07k | }; | 328 | | | 329 | 3.07k | 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.07k | 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.07k | return Status::OK(); | 340 | 3.07k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 351 | const ColumnWithTypeAndName& col_right) const { | 322 | 351 | auto call = [&](const auto& type) -> bool { | 323 | 351 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 351 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 351 | block, result, col_left, col_right); | 326 | 351 | return true; | 327 | 351 | }; | 328 | | | 329 | 351 | 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 | 351 | 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 | 351 | return Status::OK(); | 340 | 351 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 952 | const ColumnWithTypeAndName& col_right) const { | 322 | 952 | auto call = [&](const auto& type) -> bool { | 323 | 952 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 952 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 952 | block, result, col_left, col_right); | 326 | 952 | return true; | 327 | 952 | }; | 328 | | | 329 | 952 | 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 | 952 | 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 | 952 | return Status::OK(); | 340 | 952 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 140k | const ColumnWithTypeAndName& col_right) const { | 322 | 140k | auto call = [&](const auto& type) -> bool { | 323 | 140k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 140k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 140k | block, result, col_left, col_right); | 326 | 140k | return true; | 327 | 140k | }; | 328 | | | 329 | 140k | 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 | 140k | 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 | 140k | return Status::OK(); | 340 | 140k | } |
|
341 | | |
342 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
343 | 27.3k | const IColumn* c1) const { |
344 | 27.3k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
345 | 27.3k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
346 | 27.3k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
347 | 27.3k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
348 | 27.3k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
350 | 0 | c0->get_name(), c1->get_name(), name); |
351 | 0 | } |
352 | 27.3k | DCHECK(!(c0_const && c1_const)); |
353 | 27.3k | const ColumnString::Chars* c0_const_chars = nullptr; |
354 | 27.3k | const ColumnString::Chars* c1_const_chars = nullptr; |
355 | 27.3k | ColumnString::Offset c0_const_size = 0; |
356 | 27.3k | ColumnString::Offset c1_const_size = 0; |
357 | | |
358 | 27.3k | if (c0_const) { |
359 | 6 | const ColumnString* c0_const_string = |
360 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
361 | | |
362 | 6 | if (c0_const_string) { |
363 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
364 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
365 | 6 | } else { |
366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
367 | 0 | c0->get_name(), name); |
368 | 0 | } |
369 | 6 | } |
370 | | |
371 | 27.3k | if (c1_const) { |
372 | 26.4k | const ColumnString* c1_const_string = |
373 | 26.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
374 | | |
375 | 26.4k | if (c1_const_string) { |
376 | 26.4k | c1_const_chars = &c1_const_string->get_chars(); |
377 | 26.4k | c1_const_size = c1_const_string->get_offsets()[0]; |
378 | 26.4k | } else { |
379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
380 | 0 | c1->get_name(), name); |
381 | 0 | } |
382 | 26.4k | } |
383 | | |
384 | 27.3k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
385 | | |
386 | 27.3k | auto c_res = ColumnUInt8::create(); |
387 | 27.3k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
388 | 27.3k | vec_res.resize(c0->size()); |
389 | | |
390 | 27.3k | if (c0_string && c1_string) { |
391 | 850 | StringImpl::string_vector_string_vector( |
392 | 850 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
393 | 850 | c1_string->get_offsets(), vec_res); |
394 | 26.4k | } else if (c0_string && c1_const) { |
395 | 26.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
396 | 26.4k | *c1_const_chars, c1_const_size, vec_res); |
397 | 18.4E | } else if (c0_const && c1_string) { |
398 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
399 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
400 | 6 | vec_res); |
401 | 18.4E | } else { |
402 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
403 | 18.4E | c0->get_name(), c1->get_name(), name); |
404 | 18.4E | } |
405 | 27.3k | block.replace_by_position(result, std::move(c_res)); |
406 | 27.3k | return Status::OK(); |
407 | 27.3k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 22.4k | const IColumn* c1) const { | 344 | 22.4k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 22.4k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 22.4k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 22.4k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 22.4k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 22.4k | DCHECK(!(c0_const && c1_const)); | 353 | 22.4k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 22.4k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 22.4k | ColumnString::Offset c0_const_size = 0; | 356 | 22.4k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 22.4k | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 22.4k | if (c1_const) { | 372 | 21.9k | const ColumnString* c1_const_string = | 373 | 21.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 21.9k | if (c1_const_string) { | 376 | 21.9k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 21.9k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 21.9k | } else { | 379 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 1 | c1->get_name(), name); | 381 | 1 | } | 382 | 21.9k | } | 383 | | | 384 | 22.4k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 22.4k | auto c_res = ColumnUInt8::create(); | 387 | 22.4k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 22.4k | vec_res.resize(c0->size()); | 389 | | | 390 | 22.4k | if (c0_string && c1_string) { | 391 | 456 | StringImpl::string_vector_string_vector( | 392 | 456 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 456 | c1_string->get_offsets(), vec_res); | 394 | 21.9k | } else if (c0_string && c1_const) { | 395 | 21.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 21.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 | 22.4k | block.replace_by_position(result, std::move(c_res)); | 406 | 22.4k | return Status::OK(); | 407 | 22.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 1.51k | const IColumn* c1) const { | 344 | 1.51k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 1.51k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 1.51k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 1.51k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 1.51k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 1.51k | DCHECK(!(c0_const && c1_const)); | 353 | 1.51k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 1.51k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 1.51k | ColumnString::Offset c0_const_size = 0; | 356 | 1.51k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 1.51k | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 1.51k | if (c1_const) { | 372 | 1.51k | const ColumnString* c1_const_string = | 373 | 1.51k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 1.51k | if (c1_const_string) { | 376 | 1.51k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 1.51k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 1.51k | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 1.51k | } | 383 | | | 384 | 1.51k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 1.51k | auto c_res = ColumnUInt8::create(); | 387 | 1.51k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 1.51k | vec_res.resize(c0->size()); | 389 | | | 390 | 1.51k | if (c0_string && c1_string) { | 391 | 1 | StringImpl::string_vector_string_vector( | 392 | 1 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 1 | c1_string->get_offsets(), vec_res); | 394 | 1.51k | } else if (c0_string && c1_const) { | 395 | 1.51k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 1.51k | *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 | 1.51k | block.replace_by_position(result, std::move(c_res)); | 406 | 1.51k | return Status::OK(); | 407 | 1.51k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 192 | const IColumn* c1) const { | 344 | 192 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 192 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 192 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 192 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 192 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 192 | DCHECK(!(c0_const && c1_const)); | 353 | 192 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 192 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 192 | ColumnString::Offset c0_const_size = 0; | 356 | 192 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 192 | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 192 | if (c1_const) { | 372 | 190 | const ColumnString* c1_const_string = | 373 | 190 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 190 | if (c1_const_string) { | 376 | 190 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 190 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 190 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 190 | } | 383 | | | 384 | 192 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 192 | auto c_res = ColumnUInt8::create(); | 387 | 192 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 192 | vec_res.resize(c0->size()); | 389 | | | 390 | 193 | 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 | 191 | } else if (c0_string && c1_const) { | 395 | 191 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 191 | *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 | 193 | block.replace_by_position(result, std::move(c_res)); | 406 | 193 | return Status::OK(); | 407 | 192 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 715 | const IColumn* c1) const { | 344 | 715 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 715 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 715 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 715 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 716 | 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 | 715 | DCHECK(!(c0_const && c1_const)); | 353 | 715 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 715 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 715 | ColumnString::Offset c0_const_size = 0; | 356 | 715 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 715 | 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 | 715 | if (c1_const) { | 372 | 679 | const ColumnString* c1_const_string = | 373 | 679 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 680 | if (c1_const_string) { | 376 | 680 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 680 | 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 | 679 | } | 383 | | | 384 | 716 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 716 | auto c_res = ColumnUInt8::create(); | 387 | 716 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 716 | vec_res.resize(c0->size()); | 389 | | | 390 | 716 | if (c0_string && c1_string) { | 391 | 36 | StringImpl::string_vector_string_vector( | 392 | 36 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 36 | c1_string->get_offsets(), vec_res); | 394 | 680 | } else if (c0_string && c1_const) { | 395 | 680 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 680 | *c1_const_chars, c1_const_size, vec_res); | 397 | 680 | } 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 | 716 | block.replace_by_position(result, std::move(c_res)); | 406 | 716 | return Status::OK(); | 407 | 716 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 614 | const IColumn* c1) const { | 344 | 614 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 614 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 614 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 614 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 614 | 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 | 614 | DCHECK(!(c0_const && c1_const)); | 353 | 614 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 614 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 614 | ColumnString::Offset c0_const_size = 0; | 356 | 614 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 614 | if (c0_const) { | 359 | 6 | const ColumnString* c0_const_string = | 360 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | | | 362 | 6 | if (c0_const_string) { | 363 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 6 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 6 | } | 370 | | | 371 | 614 | if (c1_const) { | 372 | 253 | const ColumnString* c1_const_string = | 373 | 253 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 253 | if (c1_const_string) { | 376 | 253 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 253 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 253 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 253 | } | 383 | | | 384 | 614 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 614 | auto c_res = ColumnUInt8::create(); | 387 | 614 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 614 | vec_res.resize(c0->size()); | 389 | | | 390 | 614 | if (c0_string && c1_string) { | 391 | 355 | StringImpl::string_vector_string_vector( | 392 | 355 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 355 | c1_string->get_offsets(), vec_res); | 394 | 355 | } else if (c0_string && c1_const) { | 395 | 253 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 253 | *c1_const_chars, c1_const_size, vec_res); | 397 | 253 | } else if (c0_const && c1_string) { | 398 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 6 | vec_res); | 401 | 6 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 614 | block.replace_by_position(result, std::move(c_res)); | 406 | 614 | return Status::OK(); | 407 | 614 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 1.86k | const IColumn* c1) const { | 344 | 1.86k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 1.86k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 1.86k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 1.86k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 1.86k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 1.86k | DCHECK(!(c0_const && c1_const)); | 353 | 1.86k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 1.86k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 1.86k | ColumnString::Offset c0_const_size = 0; | 356 | 1.86k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 1.86k | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 1.86k | if (c1_const) { | 372 | 1.86k | const ColumnString* c1_const_string = | 373 | 1.86k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 1.86k | if (c1_const_string) { | 376 | 1.86k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 1.86k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 1.86k | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 1.86k | } | 383 | | | 384 | 1.86k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 1.86k | auto c_res = ColumnUInt8::create(); | 387 | 1.86k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 1.86k | vec_res.resize(c0->size()); | 389 | | | 390 | 1.86k | if (c0_string && c1_string) { | 391 | 0 | StringImpl::string_vector_string_vector( | 392 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 0 | c1_string->get_offsets(), vec_res); | 394 | 1.86k | } else if (c0_string && c1_const) { | 395 | 1.86k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 1.86k | *c1_const_chars, c1_const_size, vec_res); | 397 | 1.86k | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 0 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 1.86k | block.replace_by_position(result, std::move(c_res)); | 406 | 1.86k | return Status::OK(); | 407 | 1.86k | } |
|
408 | | |
409 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
410 | 149 | const IColumn* c1) const { |
411 | 149 | bool c0_const = is_column_const(*c0); |
412 | 149 | bool c1_const = is_column_const(*c1); |
413 | | |
414 | 149 | DCHECK(!(c0_const && c1_const)); |
415 | | |
416 | 149 | auto c_res = ColumnUInt8::create(); |
417 | 149 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
418 | 149 | vec_res.resize(c0->size()); |
419 | | |
420 | 149 | if (c0_const) { |
421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
422 | 149 | } else if (c1_const) { |
423 | 140 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
424 | 140 | } else { |
425 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
426 | 9 | } |
427 | | |
428 | 149 | block.replace_by_position(result, std::move(c_res)); |
429 | 149 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 17 | const IColumn* c1) const { | 411 | 17 | bool c0_const = is_column_const(*c0); | 412 | 17 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 17 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 17 | auto c_res = ColumnUInt8::create(); | 417 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 17 | vec_res.resize(c0->size()); | 419 | | | 420 | 17 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 17 | } else if (c1_const) { | 423 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 13 | } else { | 425 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 4 | } | 427 | | | 428 | 17 | block.replace_by_position(result, std::move(c_res)); | 429 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 8 | const IColumn* c1) const { | 411 | 8 | bool c0_const = is_column_const(*c0); | 412 | 8 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 8 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 8 | auto c_res = ColumnUInt8::create(); | 417 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 8 | vec_res.resize(c0->size()); | 419 | | | 420 | 8 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 8 | } else if (c1_const) { | 423 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 8 | } else { | 425 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 0 | } | 427 | | | 428 | 8 | block.replace_by_position(result, std::move(c_res)); | 429 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 9 | const IColumn* c1) const { | 411 | 9 | bool c0_const = is_column_const(*c0); | 412 | 9 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 9 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 9 | auto c_res = ColumnUInt8::create(); | 417 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 9 | vec_res.resize(c0->size()); | 419 | | | 420 | 9 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 9 | } else if (c1_const) { | 423 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 8 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 9 | block.replace_by_position(result, std::move(c_res)); | 429 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 58 | const IColumn* c1) const { | 411 | 58 | bool c0_const = is_column_const(*c0); | 412 | 58 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 58 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 58 | auto c_res = ColumnUInt8::create(); | 417 | 58 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 58 | vec_res.resize(c0->size()); | 419 | | | 420 | 58 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 58 | } else if (c1_const) { | 423 | 57 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 57 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 58 | block.replace_by_position(result, std::move(c_res)); | 429 | 58 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 11 | const IColumn* c1) const { | 411 | 11 | bool c0_const = is_column_const(*c0); | 412 | 11 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 11 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 11 | auto c_res = ColumnUInt8::create(); | 417 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 11 | vec_res.resize(c0->size()); | 419 | | | 420 | 11 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 11 | } else if (c1_const) { | 423 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 8 | } else { | 425 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 3 | } | 427 | | | 428 | 11 | block.replace_by_position(result, std::move(c_res)); | 429 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 46 | const IColumn* c1) const { | 411 | 46 | bool c0_const = is_column_const(*c0); | 412 | 46 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 46 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 46 | auto c_res = ColumnUInt8::create(); | 417 | 46 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 46 | vec_res.resize(c0->size()); | 419 | | | 420 | 46 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 46 | } else if (c1_const) { | 423 | 46 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 46 | } else { | 425 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 0 | } | 427 | | | 428 | 46 | block.replace_by_position(result, std::move(c_res)); | 429 | 46 | } |
|
430 | | |
431 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
432 | 149 | const ColumnWithTypeAndName& c1) const { |
433 | 149 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
434 | 149 | return Status::OK(); |
435 | 149 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 17 | const ColumnWithTypeAndName& c1) const { | 433 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 17 | return Status::OK(); | 435 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 8 | const ColumnWithTypeAndName& c1) const { | 433 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 8 | return Status::OK(); | 435 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 9 | const ColumnWithTypeAndName& c1) const { | 433 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 9 | return Status::OK(); | 435 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 58 | const ColumnWithTypeAndName& c1) const { | 433 | 58 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 58 | return Status::OK(); | 435 | 58 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 11 | const ColumnWithTypeAndName& c1) const { | 433 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 11 | return Status::OK(); | 435 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 46 | const ColumnWithTypeAndName& c1) const { | 433 | 46 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 46 | return Status::OK(); | 435 | 46 | } |
|
436 | | |
437 | | public: |
438 | 222 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 1 | String get_name() const override { return name; } |
|
439 | | |
440 | 457k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 425k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 1.35k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 440 | 6.31k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 9.00k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 440 | 3.16k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 12.5k | 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 | 457k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
444 | 457k | return std::make_shared<DataTypeUInt8>(); |
445 | 457k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 425k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 425k | return std::make_shared<DataTypeUInt8>(); | 445 | 425k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 1.35k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 1.35k | return std::make_shared<DataTypeUInt8>(); | 445 | 1.35k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 6.31k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 6.31k | return std::make_shared<DataTypeUInt8>(); | 445 | 6.31k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 9.02k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 9.02k | return std::make_shared<DataTypeUInt8>(); | 445 | 9.02k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 3.16k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 3.16k | return std::make_shared<DataTypeUInt8>(); | 445 | 3.16k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 12.5k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 12.5k | return std::make_shared<DataTypeUInt8>(); | 445 | 12.5k | } |
|
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.77k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
453 | 1.77k | DCHECK(arguments.size() == 1); |
454 | 1.77k | DCHECK(data_type_with_names.size() == 1); |
455 | 1.77k | DCHECK(iterators.size() == 1); |
456 | 1.77k | auto* iter = iterators[0]; |
457 | 1.77k | auto data_type_with_name = data_type_with_names[0]; |
458 | 1.77k | if (iter == nullptr) { |
459 | 0 | return Status::OK(); |
460 | 0 | } |
461 | 1.77k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
462 | 446 | return Status::OK(); |
463 | 446 | } |
464 | 1.32k | segment_v2::InvertedIndexQueryType query_type; |
465 | 1.32k | std::string_view name_view(name); |
466 | 1.32k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
467 | 874 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
468 | 874 | } else if (name_view == NameLess::name) { |
469 | 111 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
470 | 339 | } else if (name_view == NameLessOrEquals::name) { |
471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
472 | 241 | } 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.33k | if (segment_v2::is_range_query(query_type) && |
481 | 1.33k | 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.16k | Field param_value; |
486 | 1.16k | arguments[0].column->get(0, param_value); |
487 | 1.16k | if (param_value.is_null()) { |
488 | 2 | return Status::OK(); |
489 | 2 | } |
490 | 1.15k | segment_v2::InvertedIndexParam param; |
491 | 1.15k | param.column_name = data_type_with_name.first; |
492 | 1.15k | param.column_type = data_type_with_name.second; |
493 | 1.15k | param.query_value = param_value; |
494 | 1.15k | param.query_type = query_type; |
495 | 1.15k | param.num_rows = num_rows; |
496 | 1.15k | param.roaring = std::make_shared<roaring::Roaring>(); |
497 | 1.15k | param.analyzer_ctx = analyzer_ctx; |
498 | 1.15k | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
499 | 1.00k | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
500 | 1.00k | if (iter->has_null()) { |
501 | 1.00k | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
502 | 1.00k | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
503 | 1.00k | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
504 | 1.00k | } |
505 | 1.00k | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
506 | 1.00k | bitmap_result = result; |
507 | 1.00k | bitmap_result.mask_out_null(); |
508 | | |
509 | 1.00k | if (name_view == NameNotEquals::name) { |
510 | 63 | roaring::Roaring full_result; |
511 | 63 | full_result.addRange(0, num_rows); |
512 | 63 | bitmap_result.op_not(&full_result); |
513 | 63 | } |
514 | | |
515 | 1.00k | return Status::OK(); |
516 | 1.00k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 887 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 887 | DCHECK(arguments.size() == 1); | 454 | 887 | DCHECK(data_type_with_names.size() == 1); | 455 | 887 | DCHECK(iterators.size() == 1); | 456 | 887 | auto* iter = iterators[0]; | 457 | 887 | auto data_type_with_name = data_type_with_names[0]; | 458 | 887 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 887 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 88 | return Status::OK(); | 463 | 88 | } | 464 | 799 | segment_v2::InvertedIndexQueryType query_type; | 465 | 799 | std::string_view name_view(name); | 466 | 804 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 804 | 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 | 804 | if (segment_v2::is_range_query(query_type) && | 481 | 804 | 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 | 804 | Field param_value; | 486 | 804 | arguments[0].column->get(0, param_value); | 487 | 804 | if (param_value.is_null()) { | 488 | 2 | return Status::OK(); | 489 | 2 | } | 490 | 802 | segment_v2::InvertedIndexParam param; | 491 | 802 | param.column_name = data_type_with_name.first; | 492 | 802 | param.column_type = data_type_with_name.second; | 493 | 802 | param.query_value = param_value; | 494 | 802 | param.query_type = query_type; | 495 | 802 | param.num_rows = num_rows; | 496 | 802 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 802 | param.analyzer_ctx = analyzer_ctx; | 498 | 802 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 754 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 754 | if (iter->has_null()) { | 501 | 754 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 754 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 754 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 754 | } | 505 | 754 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 754 | bitmap_result = result; | 507 | 754 | bitmap_result.mask_out_null(); | 508 | | | 509 | 754 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 754 | return Status::OK(); | 516 | 754 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 78 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 78 | DCHECK(arguments.size() == 1); | 454 | 78 | DCHECK(data_type_with_names.size() == 1); | 455 | 78 | DCHECK(iterators.size() == 1); | 456 | 78 | auto* iter = iterators[0]; | 457 | 78 | auto data_type_with_name = data_type_with_names[0]; | 458 | 78 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 78 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 8 | return Status::OK(); | 463 | 8 | } | 464 | 70 | segment_v2::InvertedIndexQueryType query_type; | 465 | 70 | std::string_view name_view(name); | 466 | 70 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 70 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 70 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 0 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 0 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 0 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 70 | if (segment_v2::is_range_query(query_type) && | 481 | 70 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 0 | return Status::OK(); | 484 | 0 | } | 485 | 70 | Field param_value; | 486 | 70 | arguments[0].column->get(0, param_value); | 487 | 70 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 70 | segment_v2::InvertedIndexParam param; | 491 | 70 | param.column_name = data_type_with_name.first; | 492 | 70 | param.column_type = data_type_with_name.second; | 493 | 70 | param.query_value = param_value; | 494 | 70 | param.query_type = query_type; | 495 | 70 | param.num_rows = num_rows; | 496 | 70 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 70 | param.analyzer_ctx = analyzer_ctx; | 498 | 70 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 63 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 63 | if (iter->has_null()) { | 501 | 62 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 62 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 62 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 62 | } | 505 | 63 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 63 | bitmap_result = result; | 507 | 63 | bitmap_result.mask_out_null(); | 508 | | | 509 | 63 | if (name_view == NameNotEquals::name) { | 510 | 63 | roaring::Roaring full_result; | 511 | 63 | full_result.addRange(0, num_rows); | 512 | 63 | bitmap_result.op_not(&full_result); | 513 | 63 | } | 514 | | | 515 | 63 | return Status::OK(); | 516 | 63 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 175 | DCHECK(arguments.size() == 1); | 454 | 175 | DCHECK(data_type_with_names.size() == 1); | 455 | 175 | DCHECK(iterators.size() == 1); | 456 | 175 | auto* iter = iterators[0]; | 457 | 175 | auto data_type_with_name = data_type_with_names[0]; | 458 | 175 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 62 | return Status::OK(); | 463 | 62 | } | 464 | 113 | segment_v2::InvertedIndexQueryType query_type; | 465 | 113 | 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 | 113 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 113 | } 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 | 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 | 114 | if (segment_v2::is_range_query(query_type) && | 481 | 114 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 28 | return Status::OK(); | 484 | 28 | } | 485 | 86 | Field param_value; | 486 | 86 | arguments[0].column->get(0, param_value); | 487 | 86 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 86 | segment_v2::InvertedIndexParam param; | 491 | 86 | param.column_name = data_type_with_name.first; | 492 | 86 | param.column_type = data_type_with_name.second; | 493 | 86 | param.query_value = param_value; | 494 | 86 | param.query_type = query_type; | 495 | 86 | param.num_rows = num_rows; | 496 | 86 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 86 | param.analyzer_ctx = analyzer_ctx; | 498 | 86 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 68 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 68 | if (iter->has_null()) { | 501 | 67 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 67 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 67 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 67 | } | 505 | 68 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 68 | bitmap_result = result; | 507 | 68 | bitmap_result.mask_out_null(); | 508 | | | 509 | 68 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 68 | return Status::OK(); | 516 | 68 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 249 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 249 | DCHECK(arguments.size() == 1); | 454 | 249 | DCHECK(data_type_with_names.size() == 1); | 455 | 249 | DCHECK(iterators.size() == 1); | 456 | 249 | auto* iter = iterators[0]; | 457 | 249 | auto data_type_with_name = data_type_with_names[0]; | 458 | 249 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 249 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 114 | return Status::OK(); | 463 | 114 | } | 464 | 135 | segment_v2::InvertedIndexQueryType query_type; | 465 | 135 | std::string_view name_view(name); | 466 | 135 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 135 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 135 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 135 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 135 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 135 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 135 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 135 | if (segment_v2::is_range_query(query_type) && | 481 | 135 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 59 | return Status::OK(); | 484 | 59 | } | 485 | 76 | Field param_value; | 486 | 76 | arguments[0].column->get(0, param_value); | 487 | 76 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 76 | segment_v2::InvertedIndexParam param; | 491 | 76 | param.column_name = data_type_with_name.first; | 492 | 76 | param.column_type = data_type_with_name.second; | 493 | 76 | param.query_value = param_value; | 494 | 76 | param.query_type = query_type; | 495 | 76 | param.num_rows = num_rows; | 496 | 76 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 76 | param.analyzer_ctx = analyzer_ctx; | 498 | 76 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 35 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 35 | if (iter->has_null()) { | 501 | 34 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 34 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 34 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 34 | } | 505 | 35 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 35 | bitmap_result = result; | 507 | 35 | bitmap_result.mask_out_null(); | 508 | | | 509 | 35 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 35 | return Status::OK(); | 516 | 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 | 172 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 172 | DCHECK(arguments.size() == 1); | 454 | 172 | DCHECK(data_type_with_names.size() == 1); | 455 | 172 | DCHECK(iterators.size() == 1); | 456 | 172 | auto* iter = iterators[0]; | 457 | 172 | auto data_type_with_name = data_type_with_names[0]; | 458 | 172 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 172 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 61 | return Status::OK(); | 463 | 61 | } | 464 | 111 | segment_v2::InvertedIndexQueryType query_type; | 465 | 111 | std::string_view name_view(name); | 466 | 111 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 111 | } else if (name_view == NameLess::name) { | 469 | 111 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 111 | } 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 | 111 | if (segment_v2::is_range_query(query_type) && | 481 | 111 | 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 | 85 | Field param_value; | 486 | 85 | arguments[0].column->get(0, param_value); | 487 | 85 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 85 | segment_v2::InvertedIndexParam param; | 491 | 85 | param.column_name = data_type_with_name.first; | 492 | 85 | param.column_type = data_type_with_name.second; | 493 | 85 | param.query_value = param_value; | 494 | 85 | param.query_type = query_type; | 495 | 85 | param.num_rows = num_rows; | 496 | 85 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 85 | param.analyzer_ctx = analyzer_ctx; | 498 | 85 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 66 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 66 | if (iter->has_null()) { | 501 | 66 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 66 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 66 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 66 | } | 505 | 66 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 66 | bitmap_result = result; | 507 | 66 | bitmap_result.mask_out_null(); | 508 | | | 509 | 66 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 66 | return Status::OK(); | 516 | 66 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 209 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 209 | DCHECK(arguments.size() == 1); | 454 | 209 | DCHECK(data_type_with_names.size() == 1); | 455 | 209 | DCHECK(iterators.size() == 1); | 456 | 209 | auto* iter = iterators[0]; | 457 | 209 | auto data_type_with_name = data_type_with_names[0]; | 458 | 209 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 209 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 113 | return Status::OK(); | 463 | 113 | } | 464 | 96 | segment_v2::InvertedIndexQueryType query_type; | 465 | 96 | 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 | 96 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 98 | } else if (name_view == NameLessOrEquals::name) { | 471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 18.4E | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 18.4E | } else { | 477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 18.4E | } | 479 | | | 480 | 98 | if (segment_v2::is_range_query(query_type) && | 481 | 98 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 58 | return Status::OK(); | 484 | 58 | } | 485 | 40 | Field param_value; | 486 | 40 | arguments[0].column->get(0, param_value); | 487 | 40 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 40 | segment_v2::InvertedIndexParam param; | 491 | 40 | param.column_name = data_type_with_name.first; | 492 | 40 | param.column_type = data_type_with_name.second; | 493 | 40 | param.query_value = param_value; | 494 | 40 | param.query_type = query_type; | 495 | 40 | param.num_rows = num_rows; | 496 | 40 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 40 | param.analyzer_ctx = analyzer_ctx; | 498 | 40 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 19 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 19 | if (iter->has_null()) { | 501 | 17 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 17 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 17 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 17 | } | 505 | 19 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 19 | bitmap_result = result; | 507 | 19 | bitmap_result.mask_out_null(); | 508 | | | 509 | 19 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 19 | return Status::OK(); | 516 | 19 | } |
|
517 | | |
518 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
519 | 358k | uint32_t result, size_t input_rows_count) const override { |
520 | 358k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
521 | 358k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
522 | | |
523 | 358k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
524 | 358k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
525 | 358k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
526 | 358k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
527 | | |
528 | 358k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
529 | 358k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
530 | | |
531 | | /// The case when arguments are the same (tautological comparison). Return constant. |
532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
534 | 358k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
535 | 358k | col_left_untyped == col_right_untyped) { |
536 | | /// Always true: =, <=, >= |
537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
541 | 0 | block.get_by_position(result).column = |
542 | 0 | DataTypeUInt8() |
543 | 0 | .create_column_const(input_rows_count, |
544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
545 | 0 | ->convert_to_full_column_if_const(); |
546 | 0 | return Status::OK(); |
547 | 0 | } else { |
548 | 0 | block.get_by_position(result).column = |
549 | 0 | DataTypeUInt8() |
550 | 0 | .create_column_const(input_rows_count, |
551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
552 | 0 | ->convert_to_full_column_if_const(); |
553 | 0 | return Status::OK(); |
554 | 0 | } |
555 | 0 | } |
556 | | |
557 | 542k | auto can_compare = [](PrimitiveType t) -> bool { |
558 | 542k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
559 | 542k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 158k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 158k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 158k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 15.5k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 15.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 15.5k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 102k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 102k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 102k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 33.3k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 33.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 33.3k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 29.5k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 29.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 29.5k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 203k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 203k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 203k | }; |
|
560 | | |
561 | 358k | if (can_compare(left_type->get_primitive_type()) && |
562 | 358k | can_compare(right_type->get_primitive_type())) { |
563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
564 | 184k | if (!left_type->equals_ignore_precision(*right_type)) { |
565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
566 | 0 | get_name(), left_type->get_name(), |
567 | 0 | right_type->get_name()); |
568 | 0 | } |
569 | 184k | } |
570 | | |
571 | 358k | auto compare_type = left_type->get_primitive_type(); |
572 | 358k | switch (compare_type) { |
573 | 2.13k | case TYPE_BOOLEAN: |
574 | 2.13k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
575 | 14.1k | case TYPE_DATEV2: |
576 | 14.1k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
577 | 2.49k | case TYPE_DATETIMEV2: |
578 | 2.49k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
579 | 7 | case TYPE_TIMESTAMPTZ: |
580 | 7 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
581 | 10.1k | case TYPE_TINYINT: |
582 | 10.1k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
583 | 4.16k | case TYPE_SMALLINT: |
584 | 4.16k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
585 | 102k | case TYPE_INT: |
586 | 102k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
587 | 43.3k | case TYPE_BIGINT: |
588 | 43.3k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
589 | 782 | case TYPE_LARGEINT: |
590 | 782 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
591 | 68 | case TYPE_IPV4: |
592 | 68 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
593 | 48 | case TYPE_IPV6: |
594 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
595 | 819 | case TYPE_FLOAT: |
596 | 819 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
597 | 3.58k | case TYPE_DOUBLE: |
598 | 3.58k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
599 | 4 | case TYPE_TIMEV2: |
600 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
601 | 0 | case TYPE_DECIMALV2: |
602 | 542 | case TYPE_DECIMAL32: |
603 | 142k | case TYPE_DECIMAL64: |
604 | 146k | case TYPE_DECIMAL128I: |
605 | 146k | case TYPE_DECIMAL256: |
606 | 146k | return execute_decimal(block, result, col_with_type_and_name_left, |
607 | 146k | col_with_type_and_name_right); |
608 | 1.29k | case TYPE_CHAR: |
609 | 10.9k | case TYPE_VARCHAR: |
610 | 27.3k | case TYPE_STRING: |
611 | 27.3k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
612 | 149 | default: |
613 | 149 | return execute_generic(block, result, col_with_type_and_name_left, |
614 | 149 | col_with_type_and_name_right); |
615 | 358k | } |
616 | 0 | return Status::OK(); |
617 | 358k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 91.4k | uint32_t result, size_t input_rows_count) const override { | 520 | 91.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 91.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 91.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 91.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 91.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 91.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 91.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 91.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 91.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 91.4k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | 0 | block.get_by_position(result).column = | 542 | 0 | DataTypeUInt8() | 543 | 0 | .create_column_const(input_rows_count, | 544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | 0 | ->convert_to_full_column_if_const(); | 546 | 0 | return Status::OK(); | 547 | | } else { | 548 | | block.get_by_position(result).column = | 549 | | DataTypeUInt8() | 550 | | .create_column_const(input_rows_count, | 551 | | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | | ->convert_to_full_column_if_const(); | 553 | | return Status::OK(); | 554 | | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 91.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 91.4k | }; | 560 | | | 561 | 91.4k | if (can_compare(left_type->get_primitive_type()) && | 562 | 91.4k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 67.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 67.2k | } | 570 | | | 571 | 91.4k | auto compare_type = left_type->get_primitive_type(); | 572 | 91.4k | switch (compare_type) { | 573 | 1.61k | case TYPE_BOOLEAN: | 574 | 1.61k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 1.21k | case TYPE_DATEV2: | 576 | 1.21k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 695 | case TYPE_DATETIMEV2: | 578 | 695 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 2 | case TYPE_TIMESTAMPTZ: | 580 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 6.88k | case TYPE_TINYINT: | 582 | 6.88k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 1.46k | case TYPE_SMALLINT: | 584 | 1.46k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 31.2k | case TYPE_INT: | 586 | 31.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 23.3k | case TYPE_BIGINT: | 588 | 23.3k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 166 | case TYPE_LARGEINT: | 590 | 166 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 29 | case TYPE_IPV4: | 592 | 29 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 30 | case TYPE_IPV6: | 594 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 122 | case TYPE_FLOAT: | 596 | 122 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 419 | case TYPE_DOUBLE: | 598 | 419 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 4 | case TYPE_TIMEV2: | 600 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 265 | case TYPE_DECIMAL32: | 603 | 554 | case TYPE_DECIMAL64: | 604 | 1.77k | case TYPE_DECIMAL128I: | 605 | 1.80k | case TYPE_DECIMAL256: | 606 | 1.80k | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 1.80k | col_with_type_and_name_right); | 608 | 765 | case TYPE_CHAR: | 609 | 8.83k | case TYPE_VARCHAR: | 610 | 22.4k | case TYPE_STRING: | 611 | 22.4k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 17 | default: | 613 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 17 | col_with_type_and_name_right); | 615 | 91.4k | } | 616 | 0 | return Status::OK(); | 617 | 91.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 8.76k | uint32_t result, size_t input_rows_count) const override { | 520 | 8.76k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 8.76k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 8.76k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 8.76k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 8.76k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 8.76k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 8.76k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 8.76k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 8.76k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 8.76k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | | block.get_by_position(result).column = | 542 | | DataTypeUInt8() | 543 | | .create_column_const(input_rows_count, | 544 | | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | | ->convert_to_full_column_if_const(); | 546 | | return Status::OK(); | 547 | 0 | } else { | 548 | 0 | block.get_by_position(result).column = | 549 | 0 | DataTypeUInt8() | 550 | 0 | .create_column_const(input_rows_count, | 551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | 0 | ->convert_to_full_column_if_const(); | 553 | 0 | return Status::OK(); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 8.76k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 8.76k | }; | 560 | | | 561 | 8.76k | if (can_compare(left_type->get_primitive_type()) && | 562 | 8.76k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 6.82k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 6.82k | } | 570 | | | 571 | 8.76k | auto compare_type = left_type->get_primitive_type(); | 572 | 8.76k | switch (compare_type) { | 573 | 0 | case TYPE_BOOLEAN: | 574 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 78 | case TYPE_DATEV2: | 576 | 78 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 2 | case TYPE_DATETIMEV2: | 578 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 0 | case TYPE_TIMESTAMPTZ: | 580 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 100 | case TYPE_TINYINT: | 582 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 26 | case TYPE_SMALLINT: | 584 | 26 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 3.40k | case TYPE_INT: | 586 | 3.40k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 3.10k | case TYPE_BIGINT: | 588 | 3.10k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 0 | case TYPE_LARGEINT: | 590 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 0 | case TYPE_IPV4: | 592 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 0 | case TYPE_IPV6: | 594 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 48 | case TYPE_FLOAT: | 596 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 60 | case TYPE_DOUBLE: | 598 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 0 | case TYPE_DECIMAL32: | 603 | 58 | case TYPE_DECIMAL64: | 604 | 382 | case TYPE_DECIMAL128I: | 605 | 412 | case TYPE_DECIMAL256: | 606 | 412 | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 412 | col_with_type_and_name_right); | 608 | 17 | case TYPE_CHAR: | 609 | 343 | case TYPE_VARCHAR: | 610 | 1.51k | case TYPE_STRING: | 611 | 1.51k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 8 | default: | 613 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 8 | col_with_type_and_name_right); | 615 | 8.76k | } | 616 | 0 | return Status::OK(); | 617 | 8.76k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 52.7k | uint32_t result, size_t input_rows_count) const override { | 520 | 52.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 52.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 52.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 52.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 52.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 52.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 52.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 52.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 52.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 52.7k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | | block.get_by_position(result).column = | 542 | | DataTypeUInt8() | 543 | | .create_column_const(input_rows_count, | 544 | | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | | ->convert_to_full_column_if_const(); | 546 | | return Status::OK(); | 547 | 0 | } else { | 548 | 0 | block.get_by_position(result).column = | 549 | 0 | DataTypeUInt8() | 550 | 0 | .create_column_const(input_rows_count, | 551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | 0 | ->convert_to_full_column_if_const(); | 553 | 0 | return Status::OK(); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 52.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 52.7k | }; | 560 | | | 561 | 52.7k | if (can_compare(left_type->get_primitive_type()) && | 562 | 52.7k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 49.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 49.4k | } | 570 | | | 571 | 52.7k | auto compare_type = left_type->get_primitive_type(); | 572 | 52.7k | switch (compare_type) { | 573 | 0 | case TYPE_BOOLEAN: | 574 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 1.14k | case TYPE_DATEV2: | 576 | 1.14k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 94 | case TYPE_DATETIMEV2: | 578 | 94 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 1 | case TYPE_TIMESTAMPTZ: | 580 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 890 | case TYPE_TINYINT: | 582 | 890 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 1.87k | case TYPE_SMALLINT: | 584 | 1.87k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 28.8k | case TYPE_INT: | 586 | 28.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 13.5k | case TYPE_BIGINT: | 588 | 13.5k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 249 | case TYPE_LARGEINT: | 590 | 249 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 2 | case TYPE_IPV4: | 592 | 2 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 1 | case TYPE_IPV6: | 594 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 235 | case TYPE_FLOAT: | 596 | 235 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 2.46k | case TYPE_DOUBLE: | 598 | 2.46k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 46 | case TYPE_DECIMAL32: | 603 | 1.64k | case TYPE_DECIMAL64: | 604 | 3.07k | case TYPE_DECIMAL128I: | 605 | 3.07k | case TYPE_DECIMAL256: | 606 | 3.07k | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 3.07k | col_with_type_and_name_right); | 608 | 21 | case TYPE_CHAR: | 609 | 83 | case TYPE_VARCHAR: | 610 | 193 | case TYPE_STRING: | 611 | 193 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 9 | default: | 613 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 9 | col_with_type_and_name_right); | 615 | 52.7k | } | 616 | 0 | return Status::OK(); | 617 | 52.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 17.2k | uint32_t result, size_t input_rows_count) const override { | 520 | 17.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 17.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 17.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 17.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 17.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 17.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 17.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 17.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 17.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 17.2k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | 0 | block.get_by_position(result).column = | 542 | 0 | DataTypeUInt8() | 543 | 0 | .create_column_const(input_rows_count, | 544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | 0 | ->convert_to_full_column_if_const(); | 546 | 0 | return Status::OK(); | 547 | | } else { | 548 | | block.get_by_position(result).column = | 549 | | DataTypeUInt8() | 550 | | .create_column_const(input_rows_count, | 551 | | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | | ->convert_to_full_column_if_const(); | 553 | | return Status::OK(); | 554 | | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 17.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 17.2k | }; | 560 | | | 561 | 17.2k | if (can_compare(left_type->get_primitive_type()) && | 562 | 17.2k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 16.1k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 16.1k | } | 570 | | | 571 | 17.2k | auto compare_type = left_type->get_primitive_type(); | 572 | 17.2k | switch (compare_type) { | 573 | 139 | case TYPE_BOOLEAN: | 574 | 139 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 1.57k | case TYPE_DATEV2: | 576 | 1.57k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 622 | case TYPE_DATETIMEV2: | 578 | 622 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 1 | case TYPE_TIMESTAMPTZ: | 580 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 50 | case TYPE_TINYINT: | 582 | 50 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 98 | case TYPE_SMALLINT: | 584 | 98 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 12.5k | case TYPE_INT: | 586 | 12.5k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 731 | case TYPE_BIGINT: | 588 | 731 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 44 | case TYPE_LARGEINT: | 590 | 44 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 11 | case TYPE_IPV4: | 592 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 1 | case TYPE_IPV6: | 594 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 128 | case TYPE_FLOAT: | 596 | 128 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 149 | case TYPE_DOUBLE: | 598 | 149 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 9 | case TYPE_DECIMAL32: | 603 | 264 | case TYPE_DECIMAL64: | 604 | 330 | case TYPE_DECIMAL128I: | 605 | 351 | case TYPE_DECIMAL256: | 606 | 351 | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 351 | col_with_type_and_name_right); | 608 | 38 | case TYPE_CHAR: | 609 | 334 | case TYPE_VARCHAR: | 610 | 715 | case TYPE_STRING: | 611 | 715 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 58 | default: | 613 | 58 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 58 | col_with_type_and_name_right); | 615 | 17.2k | } | 616 | 0 | return Status::OK(); | 617 | 17.2k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 15.5k | uint32_t result, size_t input_rows_count) const override { | 520 | 15.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 15.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 15.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 15.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 15.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 15.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 15.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 15.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 15.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 15.5k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | | block.get_by_position(result).column = | 542 | | DataTypeUInt8() | 543 | | .create_column_const(input_rows_count, | 544 | | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | | ->convert_to_full_column_if_const(); | 546 | | return Status::OK(); | 547 | 0 | } else { | 548 | 0 | block.get_by_position(result).column = | 549 | 0 | DataTypeUInt8() | 550 | 0 | .create_column_const(input_rows_count, | 551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | 0 | ->convert_to_full_column_if_const(); | 553 | 0 | return Status::OK(); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 15.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 15.5k | }; | 560 | | | 561 | 15.5k | if (can_compare(left_type->get_primitive_type()) && | 562 | 15.5k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 13.9k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 13.9k | } | 570 | | | 571 | 15.5k | auto compare_type = left_type->get_primitive_type(); | 572 | 15.5k | switch (compare_type) { | 573 | 81 | case TYPE_BOOLEAN: | 574 | 81 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 2.42k | case TYPE_DATEV2: | 576 | 2.42k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 577 | case TYPE_DATETIMEV2: | 578 | 577 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 2 | case TYPE_TIMESTAMPTZ: | 580 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 1.95k | case TYPE_TINYINT: | 582 | 1.95k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 368 | case TYPE_SMALLINT: | 584 | 368 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 6.04k | case TYPE_INT: | 586 | 6.04k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 1.69k | case TYPE_BIGINT: | 588 | 1.69k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 275 | case TYPE_LARGEINT: | 590 | 275 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 16 | case TYPE_IPV4: | 592 | 16 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 16 | case TYPE_IPV6: | 594 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 162 | case TYPE_FLOAT: | 596 | 162 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 350 | case TYPE_DOUBLE: | 598 | 350 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 218 | case TYPE_DECIMAL32: | 603 | 477 | case TYPE_DECIMAL64: | 604 | 951 | case TYPE_DECIMAL128I: | 605 | 952 | case TYPE_DECIMAL256: | 606 | 952 | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 952 | col_with_type_and_name_right); | 608 | 165 | case TYPE_CHAR: | 609 | 311 | case TYPE_VARCHAR: | 610 | 614 | case TYPE_STRING: | 611 | 614 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 11 | default: | 613 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 11 | col_with_type_and_name_right); | 615 | 15.5k | } | 616 | 0 | return Status::OK(); | 617 | 15.5k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 172k | uint32_t result, size_t input_rows_count) const override { | 520 | 172k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 172k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 172k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 172k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 172k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 172k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 172k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 172k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 172k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 172k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | 0 | block.get_by_position(result).column = | 542 | 0 | DataTypeUInt8() | 543 | 0 | .create_column_const(input_rows_count, | 544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | 0 | ->convert_to_full_column_if_const(); | 546 | 0 | return Status::OK(); | 547 | | } else { | 548 | | block.get_by_position(result).column = | 549 | | DataTypeUInt8() | 550 | | .create_column_const(input_rows_count, | 551 | | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | | ->convert_to_full_column_if_const(); | 553 | | return Status::OK(); | 554 | | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 172k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 172k | }; | 560 | | | 561 | 172k | if (can_compare(left_type->get_primitive_type()) && | 562 | 172k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 30.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 30.7k | } | 570 | | | 571 | 172k | auto compare_type = left_type->get_primitive_type(); | 572 | 172k | switch (compare_type) { | 573 | 298 | case TYPE_BOOLEAN: | 574 | 298 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 7.73k | case TYPE_DATEV2: | 576 | 7.73k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 500 | case TYPE_DATETIMEV2: | 578 | 500 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 1 | case TYPE_TIMESTAMPTZ: | 580 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 261 | case TYPE_TINYINT: | 582 | 261 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 344 | case TYPE_SMALLINT: | 584 | 344 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 20.3k | case TYPE_INT: | 586 | 20.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 894 | case TYPE_BIGINT: | 588 | 894 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 48 | case TYPE_LARGEINT: | 590 | 48 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 10 | case TYPE_IPV4: | 592 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 0 | case TYPE_IPV6: | 594 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 124 | case TYPE_FLOAT: | 596 | 124 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 139 | case TYPE_DOUBLE: | 598 | 139 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 4 | case TYPE_DECIMAL32: | 603 | 139k | case TYPE_DECIMAL64: | 604 | 140k | case TYPE_DECIMAL128I: | 605 | 140k | case TYPE_DECIMAL256: | 606 | 140k | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 140k | col_with_type_and_name_right); | 608 | 290 | case TYPE_CHAR: | 609 | 1.04k | case TYPE_VARCHAR: | 610 | 1.86k | case TYPE_STRING: | 611 | 1.86k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 46 | default: | 613 | 46 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 46 | col_with_type_and_name_right); | 615 | 172k | } | 616 | 0 | return Status::OK(); | 617 | 172k | } |
|
618 | | }; |
619 | | |
620 | | } // namespace doris |