be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 8.31k | PaddedPODArray<UInt8>& c) { |
72 | 8.31k | size_t size = a.size(); |
73 | 8.31k | const A* __restrict a_pos = a.data(); |
74 | 8.31k | const B* __restrict b_pos = b.data(); |
75 | 8.31k | UInt8* __restrict c_pos = c.data(); |
76 | 8.31k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 3.72M | while (a_pos < a_end) { |
79 | 3.71M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 3.71M | ++a_pos; |
81 | 3.71M | ++b_pos; |
82 | 3.71M | ++c_pos; |
83 | 3.71M | } |
84 | 8.31k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 76 | PaddedPODArray<UInt8>& c) { | 72 | 76 | size_t size = a.size(); | 73 | 76 | const A* __restrict a_pos = a.data(); | 74 | 76 | const B* __restrict b_pos = b.data(); | 75 | 76 | UInt8* __restrict c_pos = c.data(); | 76 | 76 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 152 | while (a_pos < a_end) { | 79 | 76 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 76 | ++a_pos; | 81 | 76 | ++b_pos; | 82 | 76 | ++c_pos; | 83 | 76 | } | 84 | 76 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 319 | PaddedPODArray<UInt8>& c) { | 72 | 319 | size_t size = a.size(); | 73 | 319 | const A* __restrict a_pos = a.data(); | 74 | 319 | const B* __restrict b_pos = b.data(); | 75 | 319 | UInt8* __restrict c_pos = c.data(); | 76 | 319 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 644 | while (a_pos < a_end) { | 79 | 325 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 325 | ++a_pos; | 81 | 325 | ++b_pos; | 82 | 325 | ++c_pos; | 83 | 325 | } | 84 | 319 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 318 | PaddedPODArray<UInt8>& c) { | 72 | 318 | size_t size = a.size(); | 73 | 318 | const A* __restrict a_pos = a.data(); | 74 | 318 | const B* __restrict b_pos = b.data(); | 75 | 318 | UInt8* __restrict c_pos = c.data(); | 76 | 318 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 654 | while (a_pos < a_end) { | 79 | 336 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 336 | ++a_pos; | 81 | 336 | ++b_pos; | 82 | 336 | ++c_pos; | 83 | 336 | } | 84 | 318 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 172 | PaddedPODArray<UInt8>& c) { | 72 | 172 | size_t size = a.size(); | 73 | 172 | const A* __restrict a_pos = a.data(); | 74 | 172 | const B* __restrict b_pos = b.data(); | 75 | 172 | UInt8* __restrict c_pos = c.data(); | 76 | 172 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 486 | while (a_pos < a_end) { | 79 | 314 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 314 | ++a_pos; | 81 | 314 | ++b_pos; | 82 | 314 | ++c_pos; | 83 | 314 | } | 84 | 172 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 95 | PaddedPODArray<UInt8>& c) { | 72 | 95 | size_t size = a.size(); | 73 | 95 | const A* __restrict a_pos = a.data(); | 74 | 95 | const B* __restrict b_pos = b.data(); | 75 | 95 | UInt8* __restrict c_pos = c.data(); | 76 | 95 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 190 | while (a_pos < a_end) { | 79 | 95 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 95 | ++a_pos; | 81 | 95 | ++b_pos; | 82 | 95 | ++c_pos; | 83 | 95 | } | 84 | 95 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 324 | PaddedPODArray<UInt8>& c) { | 72 | 324 | size_t size = a.size(); | 73 | 324 | const A* __restrict a_pos = a.data(); | 74 | 324 | const B* __restrict b_pos = b.data(); | 75 | 324 | UInt8* __restrict c_pos = c.data(); | 76 | 324 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.89k | while (a_pos < a_end) { | 79 | 1.56k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.56k | ++a_pos; | 81 | 1.56k | ++b_pos; | 82 | 1.56k | ++c_pos; | 83 | 1.56k | } | 84 | 324 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 221 | PaddedPODArray<UInt8>& c) { | 72 | 221 | size_t size = a.size(); | 73 | 221 | const A* __restrict a_pos = a.data(); | 74 | 221 | const B* __restrict b_pos = b.data(); | 75 | 221 | UInt8* __restrict c_pos = c.data(); | 76 | 221 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.68k | while (a_pos < a_end) { | 79 | 1.46k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.46k | ++a_pos; | 81 | 1.46k | ++b_pos; | 82 | 1.46k | ++c_pos; | 83 | 1.46k | } | 84 | 221 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 94 | PaddedPODArray<UInt8>& c) { | 72 | 94 | size_t size = a.size(); | 73 | 94 | const A* __restrict a_pos = a.data(); | 74 | 94 | const B* __restrict b_pos = b.data(); | 75 | 94 | UInt8* __restrict c_pos = c.data(); | 76 | 94 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 188 | while (a_pos < a_end) { | 79 | 94 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 94 | ++a_pos; | 81 | 94 | ++b_pos; | 82 | 94 | ++c_pos; | 83 | 94 | } | 84 | 94 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 24 | PaddedPODArray<UInt8>& c) { | 72 | 24 | size_t size = a.size(); | 73 | 24 | const A* __restrict a_pos = a.data(); | 74 | 24 | const B* __restrict b_pos = b.data(); | 75 | 24 | UInt8* __restrict c_pos = c.data(); | 76 | 24 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 48 | while (a_pos < a_end) { | 79 | 24 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 24 | ++a_pos; | 81 | 24 | ++b_pos; | 82 | 24 | ++c_pos; | 83 | 24 | } | 84 | 24 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 115 | PaddedPODArray<UInt8>& c) { | 72 | 115 | size_t size = a.size(); | 73 | 115 | const A* __restrict a_pos = a.data(); | 74 | 115 | const B* __restrict b_pos = b.data(); | 75 | 115 | UInt8* __restrict c_pos = c.data(); | 76 | 115 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 249 | while (a_pos < a_end) { | 79 | 134 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 134 | ++a_pos; | 81 | 134 | ++b_pos; | 82 | 134 | ++c_pos; | 83 | 134 | } | 84 | 115 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 115 | PaddedPODArray<UInt8>& c) { | 72 | 115 | size_t size = a.size(); | 73 | 115 | const A* __restrict a_pos = a.data(); | 74 | 115 | const B* __restrict b_pos = b.data(); | 75 | 115 | UInt8* __restrict c_pos = c.data(); | 76 | 115 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 251 | while (a_pos < a_end) { | 79 | 136 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 136 | ++a_pos; | 81 | 136 | ++b_pos; | 82 | 136 | ++c_pos; | 83 | 136 | } | 84 | 115 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 41 | PaddedPODArray<UInt8>& c) { | 72 | 41 | size_t size = a.size(); | 73 | 41 | const A* __restrict a_pos = a.data(); | 74 | 41 | const B* __restrict b_pos = b.data(); | 75 | 41 | UInt8* __restrict c_pos = c.data(); | 76 | 41 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 112 | while (a_pos < a_end) { | 79 | 71 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 71 | ++a_pos; | 81 | 71 | ++b_pos; | 82 | 71 | ++c_pos; | 83 | 71 | } | 84 | 41 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 725 | PaddedPODArray<UInt8>& c) { | 72 | 725 | size_t size = a.size(); | 73 | 725 | const A* __restrict a_pos = a.data(); | 74 | 725 | const B* __restrict b_pos = b.data(); | 75 | 725 | UInt8* __restrict c_pos = c.data(); | 76 | 725 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 298k | while (a_pos < a_end) { | 79 | 297k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 297k | ++a_pos; | 81 | 297k | ++b_pos; | 82 | 297k | ++c_pos; | 83 | 297k | } | 84 | 725 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 367 | PaddedPODArray<UInt8>& c) { | 72 | 367 | size_t size = a.size(); | 73 | 367 | const A* __restrict a_pos = a.data(); | 74 | 367 | const B* __restrict b_pos = b.data(); | 75 | 367 | UInt8* __restrict c_pos = c.data(); | 76 | 367 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.66k | while (a_pos < a_end) { | 79 | 6.29k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.29k | ++a_pos; | 81 | 6.29k | ++b_pos; | 82 | 6.29k | ++c_pos; | 83 | 6.29k | } | 84 | 367 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 996 | PaddedPODArray<UInt8>& c) { | 72 | 996 | size_t size = a.size(); | 73 | 996 | const A* __restrict a_pos = a.data(); | 74 | 996 | const B* __restrict b_pos = b.data(); | 75 | 996 | UInt8* __restrict c_pos = c.data(); | 76 | 996 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.59M | while (a_pos < a_end) { | 79 | 1.58M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.58M | ++a_pos; | 81 | 1.58M | ++b_pos; | 82 | 1.58M | ++c_pos; | 83 | 1.58M | } | 84 | 996 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 324 | while (a_pos < a_end) { | 79 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 284 | ++a_pos; | 81 | 284 | ++b_pos; | 82 | 284 | ++c_pos; | 83 | 284 | } | 84 | 40 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 112 | PaddedPODArray<UInt8>& c) { | 72 | 112 | size_t size = a.size(); | 73 | 112 | const A* __restrict a_pos = a.data(); | 74 | 112 | const B* __restrict b_pos = b.data(); | 75 | 112 | UInt8* __restrict c_pos = c.data(); | 76 | 112 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 264 | ++a_pos; | 81 | 264 | ++b_pos; | 82 | 264 | ++c_pos; | 83 | 264 | } | 84 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 285 | while (a_pos < a_end) { | 79 | 229 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 229 | ++a_pos; | 81 | 229 | ++b_pos; | 82 | 229 | ++c_pos; | 83 | 229 | } | 84 | 56 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 64 | PaddedPODArray<UInt8>& c) { | 72 | 64 | size_t size = a.size(); | 73 | 64 | const A* __restrict a_pos = a.data(); | 74 | 64 | const B* __restrict b_pos = b.data(); | 75 | 64 | UInt8* __restrict c_pos = c.data(); | 76 | 64 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 583 | while (a_pos < a_end) { | 79 | 519 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 519 | ++a_pos; | 81 | 519 | ++b_pos; | 82 | 519 | ++c_pos; | 83 | 519 | } | 84 | 64 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 9 | while (a_pos < a_end) { | 79 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6 | ++a_pos; | 81 | 6 | ++b_pos; | 82 | 6 | ++c_pos; | 83 | 6 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 26 | PaddedPODArray<UInt8>& c) { | 72 | 26 | size_t size = a.size(); | 73 | 26 | const A* __restrict a_pos = a.data(); | 74 | 26 | const B* __restrict b_pos = b.data(); | 75 | 26 | UInt8* __restrict c_pos = c.data(); | 76 | 26 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 96 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 26 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 6 | PaddedPODArray<UInt8>& c) { | 72 | 6 | size_t size = a.size(); | 73 | 6 | const A* __restrict a_pos = a.data(); | 74 | 6 | const B* __restrict b_pos = b.data(); | 75 | 6 | UInt8* __restrict c_pos = c.data(); | 76 | 6 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 70 | while (a_pos < a_end) { | 79 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 64 | ++a_pos; | 81 | 64 | ++b_pos; | 82 | 64 | ++c_pos; | 83 | 64 | } | 84 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 11 | while (a_pos < a_end) { | 79 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6 | ++a_pos; | 81 | 6 | ++b_pos; | 82 | 6 | ++c_pos; | 83 | 6 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 9 | PaddedPODArray<UInt8>& c) { | 72 | 9 | size_t size = a.size(); | 73 | 9 | const A* __restrict a_pos = a.data(); | 74 | 9 | const B* __restrict b_pos = b.data(); | 75 | 9 | UInt8* __restrict c_pos = c.data(); | 76 | 9 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 64 | while (a_pos < a_end) { | 79 | 55 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 55 | ++a_pos; | 81 | 55 | ++b_pos; | 82 | 55 | ++c_pos; | 83 | 55 | } | 84 | 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 | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 21 | PaddedPODArray<UInt8>& c) { | 72 | 21 | size_t size = a.size(); | 73 | 21 | const A* __restrict a_pos = a.data(); | 74 | 21 | const B* __restrict b_pos = b.data(); | 75 | 21 | UInt8* __restrict c_pos = c.data(); | 76 | 21 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 64 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 21 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 101 | PaddedPODArray<UInt8>& c) { | 72 | 101 | size_t size = a.size(); | 73 | 101 | const A* __restrict a_pos = a.data(); | 74 | 101 | const B* __restrict b_pos = b.data(); | 75 | 101 | UInt8* __restrict c_pos = c.data(); | 76 | 101 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 101 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.70k | PaddedPODArray<UInt8>& c) { | 72 | 1.70k | size_t size = a.size(); | 73 | 1.70k | const A* __restrict a_pos = a.data(); | 74 | 1.70k | const B* __restrict b_pos = b.data(); | 75 | 1.70k | UInt8* __restrict c_pos = c.data(); | 76 | 1.70k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.80M | while (a_pos < a_end) { | 79 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.80M | ++a_pos; | 81 | 1.80M | ++b_pos; | 82 | 1.80M | ++c_pos; | 83 | 1.80M | } | 84 | 1.70k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 272 | PaddedPODArray<UInt8>& c) { | 72 | 272 | size_t size = a.size(); | 73 | 272 | const A* __restrict a_pos = a.data(); | 74 | 272 | const B* __restrict b_pos = b.data(); | 75 | 272 | UInt8* __restrict c_pos = c.data(); | 76 | 272 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 892 | while (a_pos < a_end) { | 79 | 620 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 620 | ++a_pos; | 81 | 620 | ++b_pos; | 82 | 620 | ++c_pos; | 83 | 620 | } | 84 | 272 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 151 | PaddedPODArray<UInt8>& c) { | 72 | 151 | size_t size = a.size(); | 73 | 151 | const A* __restrict a_pos = a.data(); | 74 | 151 | const B* __restrict b_pos = b.data(); | 75 | 151 | UInt8* __restrict c_pos = c.data(); | 76 | 151 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 476 | while (a_pos < a_end) { | 79 | 325 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 325 | ++a_pos; | 81 | 325 | ++b_pos; | 82 | 325 | ++c_pos; | 83 | 325 | } | 84 | 151 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 135 | PaddedPODArray<UInt8>& c) { | 72 | 135 | size_t size = a.size(); | 73 | 135 | const A* __restrict a_pos = a.data(); | 74 | 135 | const B* __restrict b_pos = b.data(); | 75 | 135 | UInt8* __restrict c_pos = c.data(); | 76 | 135 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 446 | while (a_pos < a_end) { | 79 | 311 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 311 | ++a_pos; | 81 | 311 | ++b_pos; | 82 | 311 | ++c_pos; | 83 | 311 | } | 84 | 135 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 165 | PaddedPODArray<UInt8>& c) { | 72 | 165 | size_t size = a.size(); | 73 | 165 | const A* __restrict a_pos = a.data(); | 74 | 165 | const B* __restrict b_pos = b.data(); | 75 | 165 | UInt8* __restrict c_pos = c.data(); | 76 | 165 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.01k | while (a_pos < a_end) { | 79 | 845 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 845 | ++a_pos; | 81 | 845 | ++b_pos; | 82 | 845 | ++c_pos; | 83 | 845 | } | 84 | 165 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 226 | PaddedPODArray<UInt8>& c) { | 72 | 226 | size_t size = a.size(); | 73 | 226 | const A* __restrict a_pos = a.data(); | 74 | 226 | const B* __restrict b_pos = b.data(); | 75 | 226 | UInt8* __restrict c_pos = c.data(); | 76 | 226 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.43k | while (a_pos < a_end) { | 79 | 5.20k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.20k | ++a_pos; | 81 | 5.20k | ++b_pos; | 82 | 5.20k | ++c_pos; | 83 | 5.20k | } | 84 | 226 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 154 | PaddedPODArray<UInt8>& c) { | 72 | 154 | size_t size = a.size(); | 73 | 154 | const A* __restrict a_pos = a.data(); | 74 | 154 | const B* __restrict b_pos = b.data(); | 75 | 154 | UInt8* __restrict c_pos = c.data(); | 76 | 154 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 482 | while (a_pos < a_end) { | 79 | 328 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 328 | ++a_pos; | 81 | 328 | ++b_pos; | 82 | 328 | ++c_pos; | 83 | 328 | } | 84 | 154 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 151 | PaddedPODArray<UInt8>& c) { | 72 | 151 | size_t size = a.size(); | 73 | 151 | const A* __restrict a_pos = a.data(); | 74 | 151 | const B* __restrict b_pos = b.data(); | 75 | 151 | UInt8* __restrict c_pos = c.data(); | 76 | 151 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 495 | while (a_pos < a_end) { | 79 | 344 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 344 | ++a_pos; | 81 | 344 | ++b_pos; | 82 | 344 | ++c_pos; | 83 | 344 | } | 84 | 151 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 153 | PaddedPODArray<UInt8>& c) { | 72 | 153 | size_t size = a.size(); | 73 | 153 | const A* __restrict a_pos = a.data(); | 74 | 153 | const B* __restrict b_pos = b.data(); | 75 | 153 | UInt8* __restrict c_pos = c.data(); | 76 | 153 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 508 | while (a_pos < a_end) { | 79 | 355 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 355 | ++a_pos; | 81 | 355 | ++b_pos; | 82 | 355 | ++c_pos; | 83 | 355 | } | 84 | 153 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 424 | PaddedPODArray<UInt8>& c) { | 72 | 424 | size_t size = a.size(); | 73 | 424 | const A* __restrict a_pos = a.data(); | 74 | 424 | const B* __restrict b_pos = b.data(); | 75 | 424 | UInt8* __restrict c_pos = c.data(); | 76 | 424 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.67k | while (a_pos < a_end) { | 79 | 6.24k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.24k | ++a_pos; | 81 | 6.24k | ++b_pos; | 82 | 6.24k | ++c_pos; | 83 | 6.24k | } | 84 | 424 | } |
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 | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 23 | PaddedPODArray<UInt8>& c) { | 72 | 23 | size_t size = a.size(); | 73 | 23 | const A* __restrict a_pos = a.data(); | 74 | 23 | const B* __restrict b_pos = b.data(); | 75 | 23 | UInt8* __restrict c_pos = c.data(); | 76 | 23 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 105 | while (a_pos < a_end) { | 79 | 82 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 82 | ++a_pos; | 81 | 82 | ++b_pos; | 82 | 82 | ++c_pos; | 83 | 82 | } | 84 | 23 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 69 | PaddedPODArray<UInt8>& c) { | 72 | 69 | size_t size = a.size(); | 73 | 69 | const A* __restrict a_pos = a.data(); | 74 | 69 | const B* __restrict b_pos = b.data(); | 75 | 69 | UInt8* __restrict c_pos = c.data(); | 76 | 69 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 189 | while (a_pos < a_end) { | 79 | 120 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 120 | ++a_pos; | 81 | 120 | ++b_pos; | 82 | 120 | ++c_pos; | 83 | 120 | } | 84 | 69 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
85 | | |
86 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
87 | 125k | PaddedPODArray<UInt8>& c) { |
88 | 125k | size_t size = a.size(); |
89 | 125k | const A* __restrict a_pos = a.data(); |
90 | 125k | UInt8* __restrict c_pos = c.data(); |
91 | 125k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 96.4M | while (a_pos < a_end) { |
94 | 96.3M | *c_pos = Op::apply(*a_pos, b); |
95 | 96.3M | ++a_pos; |
96 | 96.3M | ++c_pos; |
97 | 96.3M | } |
98 | 125k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 799 | PaddedPODArray<UInt8>& c) { | 88 | 799 | size_t size = a.size(); | 89 | 799 | const A* __restrict a_pos = a.data(); | 90 | 799 | UInt8* __restrict c_pos = c.data(); | 91 | 799 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.63k | while (a_pos < a_end) { | 94 | 1.83k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.83k | ++a_pos; | 96 | 1.83k | ++c_pos; | 97 | 1.83k | } | 98 | 799 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 582 | PaddedPODArray<UInt8>& c) { | 88 | 582 | size_t size = a.size(); | 89 | 582 | const A* __restrict a_pos = a.data(); | 90 | 582 | UInt8* __restrict c_pos = c.data(); | 91 | 582 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 203k | while (a_pos < a_end) { | 94 | 202k | *c_pos = Op::apply(*a_pos, b); | 95 | 202k | ++a_pos; | 96 | 202k | ++c_pos; | 97 | 202k | } | 98 | 582 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 265 | PaddedPODArray<UInt8>& c) { | 88 | 265 | size_t size = a.size(); | 89 | 265 | const A* __restrict a_pos = a.data(); | 90 | 265 | UInt8* __restrict c_pos = c.data(); | 91 | 265 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 265 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 5.73k | PaddedPODArray<UInt8>& c) { | 88 | 5.73k | size_t size = a.size(); | 89 | 5.73k | const A* __restrict a_pos = a.data(); | 90 | 5.73k | UInt8* __restrict c_pos = c.data(); | 91 | 5.73k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.05M | while (a_pos < a_end) { | 94 | 9.05M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.05M | ++a_pos; | 96 | 9.05M | ++c_pos; | 97 | 9.05M | } | 98 | 5.73k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 920 | PaddedPODArray<UInt8>& c) { | 88 | 920 | size_t size = a.size(); | 89 | 920 | const A* __restrict a_pos = a.data(); | 90 | 920 | UInt8* __restrict c_pos = c.data(); | 91 | 920 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 131k | while (a_pos < a_end) { | 94 | 130k | *c_pos = Op::apply(*a_pos, b); | 95 | 130k | ++a_pos; | 96 | 130k | ++c_pos; | 97 | 130k | } | 98 | 920 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 15.0k | PaddedPODArray<UInt8>& c) { | 88 | 15.0k | size_t size = a.size(); | 89 | 15.0k | const A* __restrict a_pos = a.data(); | 90 | 15.0k | UInt8* __restrict c_pos = c.data(); | 91 | 15.0k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.04M | while (a_pos < a_end) { | 94 | 1.02M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.02M | ++a_pos; | 96 | 1.02M | ++c_pos; | 97 | 1.02M | } | 98 | 15.0k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.3k | PaddedPODArray<UInt8>& c) { | 88 | 13.3k | size_t size = a.size(); | 89 | 13.3k | const A* __restrict a_pos = a.data(); | 90 | 13.3k | UInt8* __restrict c_pos = c.data(); | 91 | 13.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.11M | while (a_pos < a_end) { | 94 | 2.09M | *c_pos = Op::apply(*a_pos, b); | 95 | 2.09M | ++a_pos; | 96 | 2.09M | ++c_pos; | 97 | 2.09M | } | 98 | 13.3k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 63 | PaddedPODArray<UInt8>& c) { | 88 | 63 | size_t size = a.size(); | 89 | 63 | const A* __restrict a_pos = a.data(); | 90 | 63 | UInt8* __restrict c_pos = c.data(); | 91 | 63 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 63 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 16 | PaddedPODArray<UInt8>& c) { | 88 | 16 | size_t size = a.size(); | 89 | 16 | const A* __restrict a_pos = a.data(); | 90 | 16 | UInt8* __restrict c_pos = c.data(); | 91 | 16 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130 | while (a_pos < a_end) { | 94 | 114 | *c_pos = Op::apply(*a_pos, b); | 95 | 114 | ++a_pos; | 96 | 114 | ++c_pos; | 97 | 114 | } | 98 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13 | while (a_pos < a_end) { | 94 | 11 | *c_pos = Op::apply(*a_pos, b); | 95 | 11 | ++a_pos; | 96 | 11 | ++c_pos; | 97 | 11 | } | 98 | 2 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 809 | PaddedPODArray<UInt8>& c) { | 88 | 809 | size_t size = a.size(); | 89 | 809 | const A* __restrict a_pos = a.data(); | 90 | 809 | UInt8* __restrict c_pos = c.data(); | 91 | 809 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 719k | while (a_pos < a_end) { | 94 | 718k | *c_pos = Op::apply(*a_pos, b); | 95 | 718k | ++a_pos; | 96 | 718k | ++c_pos; | 97 | 718k | } | 98 | 809 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 33 | PaddedPODArray<UInt8>& c) { | 88 | 33 | size_t size = a.size(); | 89 | 33 | const A* __restrict a_pos = a.data(); | 90 | 33 | UInt8* __restrict c_pos = c.data(); | 91 | 33 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 86 | while (a_pos < a_end) { | 94 | 53 | *c_pos = Op::apply(*a_pos, b); | 95 | 53 | ++a_pos; | 96 | 53 | ++c_pos; | 97 | 53 | } | 98 | 33 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4 | while (a_pos < a_end) { | 94 | 2 | *c_pos = Op::apply(*a_pos, b); | 95 | 2 | ++a_pos; | 96 | 2 | ++c_pos; | 97 | 2 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 36 | PaddedPODArray<UInt8>& c) { | 88 | 36 | size_t size = a.size(); | 89 | 36 | const A* __restrict a_pos = a.data(); | 90 | 36 | UInt8* __restrict c_pos = c.data(); | 91 | 36 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 660 | while (a_pos < a_end) { | 94 | 624 | *c_pos = Op::apply(*a_pos, b); | 95 | 624 | ++a_pos; | 96 | 624 | ++c_pos; | 97 | 624 | } | 98 | 36 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13 | PaddedPODArray<UInt8>& c) { | 88 | 13 | size_t size = a.size(); | 89 | 13 | const A* __restrict a_pos = a.data(); | 90 | 13 | UInt8* __restrict c_pos = c.data(); | 91 | 13 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 401 | while (a_pos < a_end) { | 94 | 388 | *c_pos = Op::apply(*a_pos, b); | 95 | 388 | ++a_pos; | 96 | 388 | ++c_pos; | 97 | 388 | } | 98 | 13 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.56k | PaddedPODArray<UInt8>& c) { | 88 | 1.56k | size_t size = a.size(); | 89 | 1.56k | const A* __restrict a_pos = a.data(); | 90 | 1.56k | UInt8* __restrict c_pos = c.data(); | 91 | 1.56k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 330k | while (a_pos < a_end) { | 94 | 328k | *c_pos = Op::apply(*a_pos, b); | 95 | 328k | ++a_pos; | 96 | 328k | ++c_pos; | 97 | 328k | } | 98 | 1.56k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.73k | PaddedPODArray<UInt8>& c) { | 88 | 1.73k | size_t size = a.size(); | 89 | 1.73k | const A* __restrict a_pos = a.data(); | 90 | 1.73k | UInt8* __restrict c_pos = c.data(); | 91 | 1.73k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 138k | while (a_pos < a_end) { | 94 | 136k | *c_pos = Op::apply(*a_pos, b); | 95 | 136k | ++a_pos; | 96 | 136k | ++c_pos; | 97 | 136k | } | 98 | 1.73k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28 | PaddedPODArray<UInt8>& c) { | 88 | 28 | size_t size = a.size(); | 89 | 28 | const A* __restrict a_pos = a.data(); | 90 | 28 | UInt8* __restrict c_pos = c.data(); | 91 | 28 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 70 | while (a_pos < a_end) { | 94 | 42 | *c_pos = Op::apply(*a_pos, b); | 95 | 42 | ++a_pos; | 96 | 42 | ++c_pos; | 97 | 42 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 40 | PaddedPODArray<UInt8>& c) { | 88 | 40 | size_t size = a.size(); | 89 | 40 | const A* __restrict a_pos = a.data(); | 90 | 40 | UInt8* __restrict c_pos = c.data(); | 91 | 40 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 282 | while (a_pos < a_end) { | 94 | 242 | *c_pos = Op::apply(*a_pos, b); | 95 | 242 | ++a_pos; | 96 | 242 | ++c_pos; | 97 | 242 | } | 98 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 93 | PaddedPODArray<UInt8>& c) { | 88 | 93 | size_t size = a.size(); | 89 | 93 | const A* __restrict a_pos = a.data(); | 90 | 93 | UInt8* __restrict c_pos = c.data(); | 91 | 93 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 349 | while (a_pos < a_end) { | 94 | 256 | *c_pos = Op::apply(*a_pos, b); | 95 | 256 | ++a_pos; | 96 | 256 | ++c_pos; | 97 | 256 | } | 98 | 93 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 459 | PaddedPODArray<UInt8>& c) { | 88 | 459 | size_t size = a.size(); | 89 | 459 | const A* __restrict a_pos = a.data(); | 90 | 459 | UInt8* __restrict c_pos = c.data(); | 91 | 459 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.67M | while (a_pos < a_end) { | 94 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.67M | ++a_pos; | 96 | 1.67M | ++c_pos; | 97 | 1.67M | } | 98 | 459 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 62 | PaddedPODArray<UInt8>& c) { | 88 | 62 | size_t size = a.size(); | 89 | 62 | const A* __restrict a_pos = a.data(); | 90 | 62 | UInt8* __restrict c_pos = c.data(); | 91 | 62 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 146 | while (a_pos < a_end) { | 94 | 84 | *c_pos = Op::apply(*a_pos, b); | 95 | 84 | ++a_pos; | 96 | 84 | ++c_pos; | 97 | 84 | } | 98 | 62 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 229 | PaddedPODArray<UInt8>& c) { | 88 | 229 | size_t size = a.size(); | 89 | 229 | const A* __restrict a_pos = a.data(); | 90 | 229 | UInt8* __restrict c_pos = c.data(); | 91 | 229 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22.9k | while (a_pos < a_end) { | 94 | 22.7k | *c_pos = Op::apply(*a_pos, b); | 95 | 22.7k | ++a_pos; | 96 | 22.7k | ++c_pos; | 97 | 22.7k | } | 98 | 229 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 87 | 1 | PaddedPODArray<UInt8>& c) { | 88 | 1 | size_t size = a.size(); | 89 | 1 | const A* __restrict a_pos = a.data(); | 90 | 1 | UInt8* __restrict c_pos = c.data(); | 91 | 1 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 7 | *c_pos = Op::apply(*a_pos, b); | 95 | 7 | ++a_pos; | 96 | 7 | ++c_pos; | 97 | 7 | } | 98 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.22k | PaddedPODArray<UInt8>& c) { | 88 | 1.22k | size_t size = a.size(); | 89 | 1.22k | const A* __restrict a_pos = a.data(); | 90 | 1.22k | UInt8* __restrict c_pos = c.data(); | 91 | 1.22k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.90k | while (a_pos < a_end) { | 94 | 5.67k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.67k | ++a_pos; | 96 | 5.67k | ++c_pos; | 97 | 5.67k | } | 98 | 1.22k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.95k | PaddedPODArray<UInt8>& c) { | 88 | 1.95k | size_t size = a.size(); | 89 | 1.95k | const A* __restrict a_pos = a.data(); | 90 | 1.95k | UInt8* __restrict c_pos = c.data(); | 91 | 1.95k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.50k | while (a_pos < a_end) { | 94 | 4.55k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.55k | ++a_pos; | 96 | 4.55k | ++c_pos; | 97 | 4.55k | } | 98 | 1.95k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.41k | PaddedPODArray<UInt8>& c) { | 88 | 1.41k | size_t size = a.size(); | 89 | 1.41k | const A* __restrict a_pos = a.data(); | 90 | 1.41k | UInt8* __restrict c_pos = c.data(); | 91 | 1.41k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.27k | while (a_pos < a_end) { | 94 | 4.85k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.85k | ++a_pos; | 96 | 4.85k | ++c_pos; | 97 | 4.85k | } | 98 | 1.41k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 369 | PaddedPODArray<UInt8>& c) { | 88 | 369 | size_t size = a.size(); | 89 | 369 | const A* __restrict a_pos = a.data(); | 90 | 369 | UInt8* __restrict c_pos = c.data(); | 91 | 369 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.53k | while (a_pos < a_end) { | 94 | 7.16k | *c_pos = Op::apply(*a_pos, b); | 95 | 7.16k | ++a_pos; | 96 | 7.16k | ++c_pos; | 97 | 7.16k | } | 98 | 369 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17.4k | PaddedPODArray<UInt8>& c) { | 88 | 17.4k | size_t size = a.size(); | 89 | 17.4k | const A* __restrict a_pos = a.data(); | 90 | 17.4k | UInt8* __restrict c_pos = c.data(); | 91 | 17.4k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.96M | while (a_pos < a_end) { | 94 | 5.94M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.94M | ++a_pos; | 96 | 5.94M | ++c_pos; | 97 | 5.94M | } | 98 | 17.4k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 7.13k | PaddedPODArray<UInt8>& c) { | 88 | 7.13k | size_t size = a.size(); | 89 | 7.13k | const A* __restrict a_pos = a.data(); | 90 | 7.13k | UInt8* __restrict c_pos = c.data(); | 91 | 7.13k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.16M | while (a_pos < a_end) { | 94 | 3.15M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.15M | ++a_pos; | 96 | 3.15M | ++c_pos; | 97 | 3.15M | } | 98 | 7.13k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 7.29k | PaddedPODArray<UInt8>& c) { | 88 | 7.29k | size_t size = a.size(); | 89 | 7.29k | const A* __restrict a_pos = a.data(); | 90 | 7.29k | UInt8* __restrict c_pos = c.data(); | 91 | 7.29k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 135k | while (a_pos < a_end) { | 94 | 128k | *c_pos = Op::apply(*a_pos, b); | 95 | 128k | ++a_pos; | 96 | 128k | ++c_pos; | 97 | 128k | } | 98 | 7.29k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.45k | PaddedPODArray<UInt8>& c) { | 88 | 1.45k | size_t size = a.size(); | 89 | 1.45k | const A* __restrict a_pos = a.data(); | 90 | 1.45k | UInt8* __restrict c_pos = c.data(); | 91 | 1.45k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12.9k | while (a_pos < a_end) { | 94 | 11.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 11.4k | ++a_pos; | 96 | 11.4k | ++c_pos; | 97 | 11.4k | } | 98 | 1.45k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 273 | PaddedPODArray<UInt8>& c) { | 88 | 273 | size_t size = a.size(); | 89 | 273 | const A* __restrict a_pos = a.data(); | 90 | 273 | UInt8* __restrict c_pos = c.data(); | 91 | 273 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.91k | while (a_pos < a_end) { | 94 | 1.64k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.64k | ++a_pos; | 96 | 1.64k | ++c_pos; | 97 | 1.64k | } | 98 | 273 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 98 | PaddedPODArray<UInt8>& c) { | 88 | 98 | size_t size = a.size(); | 89 | 98 | const A* __restrict a_pos = a.data(); | 90 | 98 | UInt8* __restrict c_pos = c.data(); | 91 | 98 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 86.2k | while (a_pos < a_end) { | 94 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 86.1k | ++a_pos; | 96 | 86.1k | ++c_pos; | 97 | 86.1k | } | 98 | 98 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 208 | PaddedPODArray<UInt8>& c) { | 88 | 208 | size_t size = a.size(); | 89 | 208 | const A* __restrict a_pos = a.data(); | 90 | 208 | UInt8* __restrict c_pos = c.data(); | 91 | 208 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.19k | while (a_pos < a_end) { | 94 | 2.98k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.98k | ++a_pos; | 96 | 2.98k | ++c_pos; | 97 | 2.98k | } | 98 | 208 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17 | PaddedPODArray<UInt8>& c) { | 88 | 17 | size_t size = a.size(); | 89 | 17 | const A* __restrict a_pos = a.data(); | 90 | 17 | UInt8* __restrict c_pos = c.data(); | 91 | 17 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 40 | while (a_pos < a_end) { | 94 | 23 | *c_pos = Op::apply(*a_pos, b); | 95 | 23 | ++a_pos; | 96 | 23 | ++c_pos; | 97 | 23 | } | 98 | 17 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.50k | PaddedPODArray<UInt8>& c) { | 88 | 1.50k | size_t size = a.size(); | 89 | 1.50k | const A* __restrict a_pos = a.data(); | 90 | 1.50k | UInt8* __restrict c_pos = c.data(); | 91 | 1.50k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 177k | while (a_pos < a_end) { | 94 | 175k | *c_pos = Op::apply(*a_pos, b); | 95 | 175k | ++a_pos; | 96 | 175k | ++c_pos; | 97 | 175k | } | 98 | 1.50k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 212 | PaddedPODArray<UInt8>& c) { | 88 | 212 | size_t size = a.size(); | 89 | 212 | const A* __restrict a_pos = a.data(); | 90 | 212 | UInt8* __restrict c_pos = c.data(); | 91 | 212 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 624k | while (a_pos < a_end) { | 94 | 624k | *c_pos = Op::apply(*a_pos, b); | 95 | 624k | ++a_pos; | 96 | 624k | ++c_pos; | 97 | 624k | } | 98 | 212 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 73 | PaddedPODArray<UInt8>& c) { | 88 | 73 | size_t size = a.size(); | 89 | 73 | const A* __restrict a_pos = a.data(); | 90 | 73 | UInt8* __restrict c_pos = c.data(); | 91 | 73 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 157k | while (a_pos < a_end) { | 94 | 157k | *c_pos = Op::apply(*a_pos, b); | 95 | 157k | ++a_pos; | 96 | 157k | ++c_pos; | 97 | 157k | } | 98 | 73 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 172 | PaddedPODArray<UInt8>& c) { | 88 | 172 | size_t size = a.size(); | 89 | 172 | const A* __restrict a_pos = a.data(); | 90 | 172 | UInt8* __restrict c_pos = c.data(); | 91 | 172 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 188k | while (a_pos < a_end) { | 94 | 188k | *c_pos = Op::apply(*a_pos, b); | 95 | 188k | ++a_pos; | 96 | 188k | ++c_pos; | 97 | 188k | } | 98 | 172 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 1.04k | PaddedPODArray<UInt8>& c) { | 88 | 1.04k | size_t size = a.size(); | 89 | 1.04k | const A* __restrict a_pos = a.data(); | 90 | 1.04k | UInt8* __restrict c_pos = c.data(); | 91 | 1.04k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.39M | while (a_pos < a_end) { | 94 | 3.39M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.39M | ++a_pos; | 96 | 3.39M | ++c_pos; | 97 | 3.39M | } | 98 | 1.04k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 13.9k | PaddedPODArray<UInt8>& c) { | 88 | 13.9k | size_t size = a.size(); | 89 | 13.9k | const A* __restrict a_pos = a.data(); | 90 | 13.9k | UInt8* __restrict c_pos = c.data(); | 91 | 13.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 38.0M | while (a_pos < a_end) { | 94 | 38.0M | *c_pos = Op::apply(*a_pos, b); | 95 | 38.0M | ++a_pos; | 96 | 38.0M | ++c_pos; | 97 | 38.0M | } | 98 | 13.9k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 450 | PaddedPODArray<UInt8>& c) { | 88 | 450 | size_t size = a.size(); | 89 | 450 | const A* __restrict a_pos = a.data(); | 90 | 450 | UInt8* __restrict c_pos = c.data(); | 91 | 450 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.7k | while (a_pos < a_end) { | 94 | 15.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.2k | ++a_pos; | 96 | 15.2k | ++c_pos; | 97 | 15.2k | } | 98 | 450 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 328 | PaddedPODArray<UInt8>& c) { | 88 | 328 | size_t size = a.size(); | 89 | 328 | const A* __restrict a_pos = a.data(); | 90 | 328 | UInt8* __restrict c_pos = c.data(); | 91 | 328 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 14.6k | while (a_pos < a_end) { | 94 | 14.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 14.3k | ++a_pos; | 96 | 14.3k | ++c_pos; | 97 | 14.3k | } | 98 | 328 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 66 | PaddedPODArray<UInt8>& c) { | 88 | 66 | size_t size = a.size(); | 89 | 66 | const A* __restrict a_pos = a.data(); | 90 | 66 | UInt8* __restrict c_pos = c.data(); | 91 | 66 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 93.4k | while (a_pos < a_end) { | 94 | 93.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 93.3k | ++a_pos; | 96 | 93.3k | ++c_pos; | 97 | 93.3k | } | 98 | 66 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 154 | PaddedPODArray<UInt8>& c) { | 88 | 154 | size_t size = a.size(); | 89 | 154 | const A* __restrict a_pos = a.data(); | 90 | 154 | UInt8* __restrict c_pos = c.data(); | 91 | 154 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 116k | while (a_pos < a_end) { | 94 | 116k | *c_pos = Op::apply(*a_pos, b); | 95 | 116k | ++a_pos; | 96 | 116k | ++c_pos; | 97 | 116k | } | 98 | 154 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 82 | PaddedPODArray<UInt8>& c) { | 88 | 82 | size_t size = a.size(); | 89 | 82 | const A* __restrict a_pos = a.data(); | 90 | 82 | UInt8* __restrict c_pos = c.data(); | 91 | 82 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110k | while (a_pos < a_end) { | 94 | 110k | *c_pos = Op::apply(*a_pos, b); | 95 | 110k | ++a_pos; | 96 | 110k | ++c_pos; | 97 | 110k | } | 98 | 82 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 193 | PaddedPODArray<UInt8>& c) { | 88 | 193 | size_t size = a.size(); | 89 | 193 | const A* __restrict a_pos = a.data(); | 90 | 193 | UInt8* __restrict c_pos = c.data(); | 91 | 193 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 119k | while (a_pos < a_end) { | 94 | 119k | *c_pos = Op::apply(*a_pos, b); | 95 | 119k | ++a_pos; | 96 | 119k | ++c_pos; | 97 | 119k | } | 98 | 193 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 9.05k | PaddedPODArray<UInt8>& c) { | 88 | 9.05k | size_t size = a.size(); | 89 | 9.05k | const A* __restrict a_pos = a.data(); | 90 | 9.05k | UInt8* __restrict c_pos = c.data(); | 91 | 9.05k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 11.3M | while (a_pos < a_end) { | 94 | 11.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 11.3M | ++a_pos; | 96 | 11.3M | ++c_pos; | 97 | 11.3M | } | 98 | 9.05k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 15.7k | PaddedPODArray<UInt8>& c) { | 88 | 15.7k | size_t size = a.size(); | 89 | 15.7k | const A* __restrict a_pos = a.data(); | 90 | 15.7k | UInt8* __restrict c_pos = c.data(); | 91 | 15.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.4M | while (a_pos < a_end) { | 94 | 15.4M | *c_pos = Op::apply(*a_pos, b); | 95 | 15.4M | ++a_pos; | 96 | 15.4M | ++c_pos; | 97 | 15.4M | } | 98 | 15.7k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 531 | PaddedPODArray<UInt8>& c) { | 88 | 531 | size_t size = a.size(); | 89 | 531 | const A* __restrict a_pos = a.data(); | 90 | 531 | UInt8* __restrict c_pos = c.data(); | 91 | 531 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 21.3k | while (a_pos < a_end) { | 94 | 20.8k | *c_pos = Op::apply(*a_pos, b); | 95 | 20.8k | ++a_pos; | 96 | 20.8k | ++c_pos; | 97 | 20.8k | } | 98 | 531 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 537 | PaddedPODArray<UInt8>& c) { | 88 | 537 | size_t size = a.size(); | 89 | 537 | const A* __restrict a_pos = a.data(); | 90 | 537 | UInt8* __restrict c_pos = c.data(); | 91 | 537 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 20.0k | while (a_pos < a_end) { | 94 | 19.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 19.4k | ++a_pos; | 96 | 19.4k | ++c_pos; | 97 | 19.4k | } | 98 | 537 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 44 | PaddedPODArray<UInt8>& c) { | 88 | 44 | size_t size = a.size(); | 89 | 44 | const A* __restrict a_pos = a.data(); | 90 | 44 | UInt8* __restrict c_pos = c.data(); | 91 | 44 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 169k | while (a_pos < a_end) { | 94 | 169k | *c_pos = Op::apply(*a_pos, b); | 95 | 169k | ++a_pos; | 96 | 169k | ++c_pos; | 97 | 169k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 33 | PaddedPODArray<UInt8>& c) { | 88 | 33 | size_t size = a.size(); | 89 | 33 | const A* __restrict a_pos = a.data(); | 90 | 33 | UInt8* __restrict c_pos = c.data(); | 91 | 33 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 63.4k | while (a_pos < a_end) { | 94 | 63.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 63.3k | ++a_pos; | 96 | 63.3k | ++c_pos; | 97 | 63.3k | } | 98 | 33 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 84 | PaddedPODArray<UInt8>& c) { | 88 | 84 | size_t size = a.size(); | 89 | 84 | const A* __restrict a_pos = a.data(); | 90 | 84 | UInt8* __restrict c_pos = c.data(); | 91 | 84 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 170 | while (a_pos < a_end) { | 94 | 86 | *c_pos = Op::apply(*a_pos, b); | 95 | 86 | ++a_pos; | 96 | 86 | ++c_pos; | 97 | 86 | } | 98 | 84 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 80 | PaddedPODArray<UInt8>& c) { | 88 | 80 | size_t size = a.size(); | 89 | 80 | const A* __restrict a_pos = a.data(); | 90 | 80 | UInt8* __restrict c_pos = c.data(); | 91 | 80 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160 | while (a_pos < a_end) { | 94 | 80 | *c_pos = Op::apply(*a_pos, b); | 95 | 80 | ++a_pos; | 96 | 80 | ++c_pos; | 97 | 80 | } | 98 | 80 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 117 | PaddedPODArray<UInt8>& c) { | 88 | 117 | size_t size = a.size(); | 89 | 117 | const A* __restrict a_pos = a.data(); | 90 | 117 | UInt8* __restrict c_pos = c.data(); | 91 | 117 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 601k | while (a_pos < a_end) { | 94 | 601k | *c_pos = Op::apply(*a_pos, b); | 95 | 601k | ++a_pos; | 96 | 601k | ++c_pos; | 97 | 601k | } | 98 | 117 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 103 | PaddedPODArray<UInt8>& c) { | 88 | 103 | size_t size = a.size(); | 89 | 103 | const A* __restrict a_pos = a.data(); | 90 | 103 | UInt8* __restrict c_pos = c.data(); | 91 | 103 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 600k | while (a_pos < a_end) { | 94 | 600k | *c_pos = Op::apply(*a_pos, b); | 95 | 600k | ++a_pos; | 96 | 600k | ++c_pos; | 97 | 600k | } | 98 | 103 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 7.27k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 7.27k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 7.27k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 276 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 276 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 276 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 102 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 102 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 102 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 697 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 697 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 697 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 760 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 760 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 760 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 234 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 234 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 234 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.69k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.69k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.69k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 502 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 502 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 502 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 56 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 56 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 191 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 191 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 191 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 79 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 72 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 72 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 72 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 35 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 35 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 35 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
103 | | }; |
104 | | |
105 | | /// Generic version, implemented for columns of same type. |
106 | | template <typename Op> |
107 | | struct GenericComparisonImpl { |
108 | 9 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 20 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
110 | 11 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
111 | 11 | } |
112 | 9 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 10 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 6 | } | 112 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 3 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 6 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 3 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 3 | } | 112 | 3 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
113 | | |
114 | 166 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 166 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 506k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 506k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 506k | } |
119 | 166 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 13 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 13 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 31 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 18 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 18 | } | 119 | 13 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 49 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 49 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 214k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 214k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 214k | } | 119 | 49 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 80 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 80 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 291k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 291k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 291k | } | 119 | 80 | } |
|
120 | | |
121 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
122 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
123 | 0 | } Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
124 | | }; |
125 | | |
126 | | template <typename Op> |
127 | | struct StringComparisonImpl { |
128 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
129 | | const ColumnString::Offsets& a_offsets, |
130 | | const ColumnString::Chars& b_data, |
131 | | const ColumnString::Offsets& b_offsets, |
132 | 502 | PaddedPODArray<UInt8>& c) { |
133 | 502 | size_t size = a_offsets.size(); |
134 | 502 | ColumnString::Offset prev_a_offset = 0; |
135 | 502 | ColumnString::Offset prev_b_offset = 0; |
136 | 502 | const auto* a_pos = a_data.data(); |
137 | 502 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.72k | for (size_t i = 0; i < size; ++i) { |
140 | 1.22k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.22k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.22k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.22k | 0); |
144 | | |
145 | 1.22k | prev_a_offset = a_offsets[i]; |
146 | 1.22k | prev_b_offset = b_offsets[i]; |
147 | 1.22k | } |
148 | 502 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 44 | PaddedPODArray<UInt8>& c) { | 133 | 44 | size_t size = a_offsets.size(); | 134 | 44 | ColumnString::Offset prev_a_offset = 0; | 135 | 44 | ColumnString::Offset prev_b_offset = 0; | 136 | 44 | const auto* a_pos = a_data.data(); | 137 | 44 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 246 | for (size_t i = 0; i < size; ++i) { | 140 | 202 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 202 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 202 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 202 | 0); | 144 | | | 145 | 202 | prev_a_offset = a_offsets[i]; | 146 | 202 | prev_b_offset = b_offsets[i]; | 147 | 202 | } | 148 | 44 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 448 | PaddedPODArray<UInt8>& c) { | 133 | 448 | size_t size = a_offsets.size(); | 134 | 448 | ColumnString::Offset prev_a_offset = 0; | 135 | 448 | ColumnString::Offset prev_b_offset = 0; | 136 | 448 | const auto* a_pos = a_data.data(); | 137 | 448 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.41k | for (size_t i = 0; i < size; ++i) { | 140 | 970 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 970 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 970 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 970 | 0); | 144 | | | 145 | 970 | prev_a_offset = a_offsets[i]; | 146 | 970 | prev_b_offset = b_offsets[i]; | 147 | 970 | } | 148 | 448 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 8 | PaddedPODArray<UInt8>& c) { | 133 | 8 | size_t size = a_offsets.size(); | 134 | 8 | ColumnString::Offset prev_a_offset = 0; | 135 | 8 | ColumnString::Offset prev_b_offset = 0; | 136 | 8 | const auto* a_pos = a_data.data(); | 137 | 8 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 16 | for (size_t i = 0; i < size; ++i) { | 140 | 8 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 8 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 8 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 8 | 0); | 144 | | | 145 | 8 | prev_a_offset = a_offsets[i]; | 146 | 8 | prev_b_offset = b_offsets[i]; | 147 | 8 | } | 148 | 8 | } |
|
149 | | |
150 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
151 | | const ColumnString::Offsets& a_offsets, |
152 | | const ColumnString::Chars& b_data, |
153 | | ColumnString::Offset b_size, |
154 | 1.66k | PaddedPODArray<UInt8>& c) { |
155 | 1.66k | size_t size = a_offsets.size(); |
156 | 1.66k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.66k | const auto* a_pos = a_data.data(); |
158 | 1.66k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.72M | for (size_t i = 0; i < size; ++i) { |
161 | 1.72M | c[i] = Op::apply( |
162 | 1.72M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.72M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.72M | 0); |
165 | | |
166 | 1.72M | prev_a_offset = a_offsets[i]; |
167 | 1.72M | } |
168 | 1.66k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 196 | PaddedPODArray<UInt8>& c) { | 155 | 196 | size_t size = a_offsets.size(); | 156 | 196 | ColumnString::Offset prev_a_offset = 0; | 157 | 196 | const auto* a_pos = a_data.data(); | 158 | 196 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 599k | for (size_t i = 0; i < size; ++i) { | 161 | 599k | c[i] = Op::apply( | 162 | 599k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 599k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 599k | 0); | 165 | | | 166 | 599k | prev_a_offset = a_offsets[i]; | 167 | 599k | } | 168 | 196 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 178 | PaddedPODArray<UInt8>& c) { | 155 | 178 | size_t size = a_offsets.size(); | 156 | 178 | ColumnString::Offset prev_a_offset = 0; | 157 | 178 | const auto* a_pos = a_data.data(); | 158 | 178 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 149k | for (size_t i = 0; i < size; ++i) { | 161 | 149k | c[i] = Op::apply( | 162 | 149k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 149k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 149k | 0); | 165 | | | 166 | 149k | prev_a_offset = a_offsets[i]; | 167 | 149k | } | 168 | 178 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 396 | PaddedPODArray<UInt8>& c) { | 155 | 396 | size_t size = a_offsets.size(); | 156 | 396 | ColumnString::Offset prev_a_offset = 0; | 157 | 396 | const auto* a_pos = a_data.data(); | 158 | 396 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 484k | for (size_t i = 0; i < size; ++i) { | 161 | 483k | c[i] = Op::apply( | 162 | 483k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 483k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 483k | 0); | 165 | | | 166 | 483k | prev_a_offset = a_offsets[i]; | 167 | 483k | } | 168 | 396 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 896 | PaddedPODArray<UInt8>& c) { | 155 | 896 | size_t size = a_offsets.size(); | 156 | 896 | ColumnString::Offset prev_a_offset = 0; | 157 | 896 | const auto* a_pos = a_data.data(); | 158 | 896 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 493k | for (size_t i = 0; i < size; ++i) { | 161 | 492k | c[i] = Op::apply( | 162 | 492k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 492k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 492k | 0); | 165 | | | 166 | 492k | prev_a_offset = a_offsets[i]; | 167 | 492k | } | 168 | 896 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 682 | PaddedPODArray<UInt8>& c) { |
187 | 682 | size_t size = a_offsets.size(); |
188 | 682 | ColumnString::Offset prev_a_offset = 0; |
189 | 682 | ColumnString::Offset prev_b_offset = 0; |
190 | 682 | const auto* a_pos = a_data.data(); |
191 | 682 | const auto* b_pos = b_data.data(); |
192 | | |
193 | 1.85k | for (size_t i = 0; i < size; ++i) { |
194 | 1.17k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.17k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.17k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.17k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.17k | prev_a_offset = a_offsets[i]; |
201 | 1.17k | prev_b_offset = b_offsets[i]; |
202 | 1.17k | } |
203 | 682 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 668 | PaddedPODArray<UInt8>& c) { | 187 | 668 | size_t size = a_offsets.size(); | 188 | 668 | ColumnString::Offset prev_a_offset = 0; | 189 | 668 | ColumnString::Offset prev_b_offset = 0; | 190 | 668 | const auto* a_pos = a_data.data(); | 191 | 668 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 1.82k | for (size_t i = 0; i < size; ++i) { | 194 | 1.15k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.15k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.15k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.15k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.15k | prev_a_offset = a_offsets[i]; | 201 | 1.15k | prev_b_offset = b_offsets[i]; | 202 | 1.15k | } | 203 | 668 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 14 | PaddedPODArray<UInt8>& c) { | 187 | 14 | size_t size = a_offsets.size(); | 188 | 14 | ColumnString::Offset prev_a_offset = 0; | 189 | 14 | ColumnString::Offset prev_b_offset = 0; | 190 | 14 | const auto* a_pos = a_data.data(); | 191 | 14 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 31 | for (size_t i = 0; i < size; ++i) { | 194 | 17 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 17 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 17 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 17 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 17 | prev_a_offset = a_offsets[i]; | 201 | 17 | prev_b_offset = b_offsets[i]; | 202 | 17 | } | 203 | 14 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 18.4k | PaddedPODArray<UInt8>& c) { |
210 | 18.4k | size_t size = a_offsets.size(); |
211 | 18.4k | if (b_size == 0) { |
212 | 1 | auto* __restrict data = c.data(); |
213 | 1 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 1 | ColumnString::Offset prev_a_offset = 0; |
216 | 4 | for (size_t i = 0; i < size; ++i) { |
217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 3 | prev_a_offset = offsets[i]; |
219 | 3 | } |
220 | 18.4k | } else { |
221 | 18.4k | ColumnString::Offset prev_a_offset = 0; |
222 | 18.4k | const auto* a_pos = a_data.data(); |
223 | 18.4k | const auto* b_pos = b_data.data(); |
224 | 5.33M | for (size_t i = 0; i < size; ++i) { |
225 | 5.31M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 5.31M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 5.31M | b_pos, b_size); |
228 | 5.31M | prev_a_offset = a_offsets[i]; |
229 | 5.31M | } |
230 | 18.4k | } |
231 | 18.4k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 17.7k | PaddedPODArray<UInt8>& c) { | 210 | 17.7k | size_t size = a_offsets.size(); | 211 | 17.7k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 17.7k | } else { | 221 | 17.7k | ColumnString::Offset prev_a_offset = 0; | 222 | 17.7k | const auto* a_pos = a_data.data(); | 223 | 17.7k | const auto* b_pos = b_data.data(); | 224 | 4.82M | for (size_t i = 0; i < size; ++i) { | 225 | 4.81M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 4.81M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 4.81M | b_pos, b_size); | 228 | 4.81M | prev_a_offset = a_offsets[i]; | 229 | 4.81M | } | 230 | 17.7k | } | 231 | 17.7k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 761 | PaddedPODArray<UInt8>& c) { | 210 | 761 | size_t size = a_offsets.size(); | 211 | 761 | if (b_size == 0) { | 212 | 1 | auto* __restrict data = c.data(); | 213 | 1 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 1 | ColumnString::Offset prev_a_offset = 0; | 216 | 4 | for (size_t i = 0; i < size; ++i) { | 217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 3 | prev_a_offset = offsets[i]; | 219 | 3 | } | 220 | 760 | } else { | 221 | 760 | ColumnString::Offset prev_a_offset = 0; | 222 | 760 | const auto* a_pos = a_data.data(); | 223 | 760 | const auto* b_pos = b_data.data(); | 224 | 507k | for (size_t i = 0; i < size; ++i) { | 225 | 506k | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 506k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 506k | b_pos, b_size); | 228 | 506k | prev_a_offset = a_offsets[i]; | 229 | 506k | } | 230 | 760 | } | 231 | 761 | } |
|
232 | | |
233 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
234 | | ColumnString::Offset a_size, |
235 | | const ColumnString::Chars& b_data, |
236 | | const ColumnString::Offsets& b_offsets, |
237 | 0 | PaddedPODArray<UInt8>& c) { |
238 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
240 | | }; |
241 | | |
242 | | template <PrimitiveType PT> |
243 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
244 | | |
245 | | template <PrimitiveType PT> |
246 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
247 | | |
248 | | struct NameEquals { |
249 | | static constexpr auto name = "eq"; |
250 | | }; |
251 | | struct NameNotEquals { |
252 | | static constexpr auto name = "ne"; |
253 | | }; |
254 | | struct NameLess { |
255 | | static constexpr auto name = "lt"; |
256 | | }; |
257 | | struct NameGreater { |
258 | | static constexpr auto name = "gt"; |
259 | | }; |
260 | | struct NameLessOrEquals { |
261 | | static constexpr auto name = "le"; |
262 | | }; |
263 | | struct NameGreaterOrEquals { |
264 | | static constexpr auto name = "ge"; |
265 | | }; |
266 | | |
267 | | namespace comparison_zonemap_detail { |
268 | | enum class Op { |
269 | | EQ, |
270 | | NE, |
271 | | LT, |
272 | | LE, |
273 | | GT, |
274 | | GE, |
275 | | }; |
276 | | |
277 | 4 | inline Op symmetric_op(Op op) { |
278 | 4 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 2 | case Op::LT: |
283 | 2 | return Op::GT; |
284 | 0 | case Op::LE: |
285 | 0 | return Op::GE; |
286 | 0 | case Op::GT: |
287 | 0 | return Op::LT; |
288 | 2 | case Op::GE: |
289 | 2 | return Op::LE; |
290 | 4 | } |
291 | 0 | __builtin_unreachable(); |
292 | 4 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 17.9k | Op op) { |
296 | 17.9k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 17.9k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 17.9k | slot_literal->slot_type); |
300 | 17.9k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 17.9k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 17.9k | if (zone_map_ptr == nullptr) { |
305 | 44 | return unsupported_zonemap_filter(ctx); |
306 | 44 | } |
307 | 17.8k | const auto& zone_map = *zone_map_ptr; |
308 | 17.8k | if (!zone_map.has_not_null) { |
309 | 136 | return ZoneMapFilterResult::kNoMatch; |
310 | 136 | } |
311 | 17.7k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 97 | return unsupported_zonemap_filter(ctx); |
313 | 97 | } |
314 | | |
315 | 17.6k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 17.6k | const auto& literal = slot_literal->literal; |
317 | 17.6k | switch (effective_op) { |
318 | 5.25k | case Op::EQ: |
319 | 5.25k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 5.25k | ? ZoneMapFilterResult::kNoMatch |
321 | 5.25k | : ZoneMapFilterResult::kMayMatch; |
322 | 605 | case Op::NE: |
323 | 605 | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 605 | ? ZoneMapFilterResult::kNoMatch |
325 | 605 | : ZoneMapFilterResult::kMayMatch; |
326 | 1.25k | case Op::LT: |
327 | 1.25k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 1.25k | : ZoneMapFilterResult::kMayMatch; |
329 | 4.79k | case Op::LE: |
330 | 4.79k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 4.79k | : ZoneMapFilterResult::kMayMatch; |
332 | 2.32k | case Op::GT: |
333 | 2.32k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 2.32k | : ZoneMapFilterResult::kMayMatch; |
335 | 3.41k | case Op::GE: |
336 | 3.41k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 3.41k | : ZoneMapFilterResult::kMayMatch; |
338 | 17.6k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 17.6k | } |
343 | | |
344 | 68.7k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 68.7k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 68.7k | if (!slot_literal.has_value()) { |
347 | 25.2k | return false; |
348 | 25.2k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 43.5k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 43.5k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 43.5k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 43.5k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 5 | return false; |
364 | 5 | } |
365 | | |
366 | 43.5k | return true; |
367 | 43.5k | } |
368 | | |
369 | 8.49k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 8.49k | return op == Op::EQ && can_evaluate(arguments); |
371 | 8.49k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 300 | const VExprSPtrs& arguments, Op op) { |
375 | 300 | DORIS_CHECK(op == Op::EQ); |
376 | 300 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 300 | DORIS_CHECK(slot_literal.has_value()); |
378 | 300 | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 300 | } |
380 | | |
381 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
382 | 9 | const VExprSPtrs& arguments, Op op) { |
383 | 9 | DORIS_CHECK(op == Op::EQ); |
384 | 9 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 9 | DORIS_CHECK(slot_literal.has_value()); |
386 | 9 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
387 | 9 | } |
388 | | |
389 | 90.6k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 90.6k | if (name == NameEquals::name) { |
391 | 36.2k | return Op::EQ; |
392 | 36.2k | } |
393 | 54.3k | if (name == NameNotEquals::name) { |
394 | 3.97k | return Op::NE; |
395 | 3.97k | } |
396 | 50.3k | if (name == NameLess::name) { |
397 | 7.50k | return Op::LT; |
398 | 7.50k | } |
399 | 42.8k | if (name == NameLessOrEquals::name) { |
400 | 15.5k | return Op::LE; |
401 | 15.5k | } |
402 | 27.3k | if (name == NameGreater::name) { |
403 | 13.9k | return Op::GT; |
404 | 13.9k | } |
405 | 13.4k | if (name == NameGreaterOrEquals::name) { |
406 | 13.4k | return Op::GE; |
407 | 13.4k | } |
408 | 18.4E | return std::nullopt; |
409 | 13.3k | } |
410 | | } // namespace comparison_zonemap_detail |
411 | | |
412 | | template <template <PrimitiveType> class Op, typename Name> |
413 | | class FunctionComparison : public IFunction { |
414 | | public: |
415 | | static constexpr auto name = Name::name; |
416 | 378k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 343k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 1.57k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 6.41k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 9.85k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 3.56k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 13.2k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 378k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 343k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 1.57k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 6.41k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 9.85k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 3.56k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 13.2k | FunctionComparison() = default; |
|
419 | | |
420 | 932k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 916k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 630 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 2.08k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 7.24k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 420 | 1.44k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 420 | 4.70k | double execute_cost() const override { return 0.5; } |
|
421 | | |
422 | | private: |
423 | | template <PrimitiveType PT> |
424 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
425 | 133k | const ColumnPtr& col_right_ptr) const { |
426 | 133k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 133k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 133k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 133k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 133k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 133k | if (!left_is_const && !right_is_const) { |
435 | 8.31k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 8.31k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 8.31k | vec_res.resize(col_left->get_data().size()); |
439 | 8.31k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 8.31k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 8.31k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 8.31k | vec_res); |
443 | | |
444 | 8.31k | block.replace_by_position(result, std::move(col_res)); |
445 | 125k | } else if (!left_is_const && right_is_const) { |
446 | 118k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 118k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 118k | vec_res.resize(col_left->size()); |
450 | 118k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 118k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 118k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 118k | col_right->get_element(0), vec_res); |
454 | | |
455 | 118k | block.replace_by_position(result, std::move(col_res)); |
456 | 118k | } else if (left_is_const && !right_is_const) { |
457 | 7.27k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 7.27k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 7.27k | vec_res.resize(col_right->size()); |
461 | 7.27k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 7.27k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 7.27k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 7.27k | col_right->get_data(), vec_res); |
465 | | |
466 | 7.27k | block.replace_by_position(result, std::move(col_res)); |
467 | 7.27k | } |
468 | 133k | return Status::OK(); |
469 | 133k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 875 | const ColumnPtr& col_right_ptr) const { | 426 | 875 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 875 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 875 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 875 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 875 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 875 | if (!left_is_const && !right_is_const) { | 435 | 76 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 76 | vec_res.resize(col_left->get_data().size()); | 439 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 76 | vec_res); | 443 | | | 444 | 76 | block.replace_by_position(result, std::move(col_res)); | 445 | 799 | } else if (!left_is_const && right_is_const) { | 446 | 799 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 799 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 799 | vec_res.resize(col_left->size()); | 450 | 799 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 799 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 799 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 799 | col_right->get_element(0), vec_res); | 454 | | | 455 | 799 | block.replace_by_position(result, std::move(col_res)); | 456 | 799 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 875 | return Status::OK(); | 469 | 875 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 900 | const ColumnPtr& col_right_ptr) const { | 426 | 900 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 900 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 900 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 900 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 900 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 901 | if (!left_is_const && !right_is_const) { | 435 | 319 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 319 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 319 | vec_res.resize(col_left->get_data().size()); | 439 | 319 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 319 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 319 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 319 | vec_res); | 443 | | | 444 | 319 | block.replace_by_position(result, std::move(col_res)); | 445 | 582 | } else if (!left_is_const && right_is_const) { | 446 | 582 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 582 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 582 | vec_res.resize(col_left->size()); | 450 | 582 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 582 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 582 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 582 | col_right->get_element(0), vec_res); | 454 | | | 455 | 582 | block.replace_by_position(result, std::move(col_res)); | 456 | 18.4E | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 900 | return Status::OK(); | 469 | 900 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 583 | const ColumnPtr& col_right_ptr) const { | 426 | 583 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 583 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 583 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 583 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 583 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 583 | if (!left_is_const && !right_is_const) { | 435 | 318 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 318 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 318 | vec_res.resize(col_left->get_data().size()); | 439 | 318 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 318 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 318 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 318 | vec_res); | 443 | | | 444 | 318 | block.replace_by_position(result, std::move(col_res)); | 445 | 318 | } else if (!left_is_const && right_is_const) { | 446 | 265 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 265 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 265 | vec_res.resize(col_left->size()); | 450 | 265 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 265 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 265 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 265 | col_right->get_element(0), vec_res); | 454 | | | 455 | 265 | block.replace_by_position(result, std::move(col_res)); | 456 | 265 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 583 | return Status::OK(); | 469 | 583 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 5.90k | const ColumnPtr& col_right_ptr) const { | 426 | 5.90k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 5.90k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 5.90k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 5.90k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 5.90k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 5.90k | if (!left_is_const && !right_is_const) { | 435 | 172 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 172 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 172 | vec_res.resize(col_left->get_data().size()); | 439 | 172 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 172 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 172 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 172 | vec_res); | 443 | | | 444 | 172 | block.replace_by_position(result, std::move(col_res)); | 445 | 5.73k | } else if (!left_is_const && right_is_const) { | 446 | 5.46k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 5.46k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 5.46k | vec_res.resize(col_left->size()); | 450 | 5.46k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 5.46k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 5.46k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 5.46k | col_right->get_element(0), vec_res); | 454 | | | 455 | 5.46k | block.replace_by_position(result, std::move(col_res)); | 456 | 5.46k | } else if (left_is_const && !right_is_const) { | 457 | 276 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 276 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 276 | vec_res.resize(col_right->size()); | 461 | 276 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 276 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 276 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 276 | col_right->get_data(), vec_res); | 465 | | | 466 | 276 | block.replace_by_position(result, std::move(col_res)); | 467 | 276 | } | 468 | 5.90k | return Status::OK(); | 469 | 5.90k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.01k | const ColumnPtr& col_right_ptr) const { | 426 | 1.01k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.01k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.01k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.01k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.01k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.01k | if (!left_is_const && !right_is_const) { | 435 | 95 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 95 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 95 | vec_res.resize(col_left->get_data().size()); | 439 | 95 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 95 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 95 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 95 | vec_res); | 443 | | | 444 | 95 | block.replace_by_position(result, std::move(col_res)); | 445 | 920 | } else if (!left_is_const && right_is_const) { | 446 | 884 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 884 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 884 | vec_res.resize(col_left->size()); | 450 | 884 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 884 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 884 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 884 | col_right->get_element(0), vec_res); | 454 | | | 455 | 884 | block.replace_by_position(result, std::move(col_res)); | 456 | 884 | } else if (left_is_const && !right_is_const) { | 457 | 36 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 36 | vec_res.resize(col_right->size()); | 461 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 36 | col_right->get_data(), vec_res); | 465 | | | 466 | 36 | block.replace_by_position(result, std::move(col_res)); | 467 | 36 | } | 468 | 1.01k | return Status::OK(); | 469 | 1.01k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 15.3k | const ColumnPtr& col_right_ptr) const { | 426 | 15.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 15.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 15.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 15.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 15.3k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 15.3k | if (!left_is_const && !right_is_const) { | 435 | 324 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 324 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 324 | vec_res.resize(col_left->get_data().size()); | 439 | 324 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 324 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 324 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 324 | vec_res); | 443 | | | 444 | 324 | block.replace_by_position(result, std::move(col_res)); | 445 | 15.0k | } else if (!left_is_const && right_is_const) { | 446 | 14.9k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 14.9k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 14.9k | vec_res.resize(col_left->size()); | 450 | 14.9k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 14.9k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 14.9k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 14.9k | col_right->get_element(0), vec_res); | 454 | | | 455 | 14.9k | block.replace_by_position(result, std::move(col_res)); | 456 | 14.9k | } else if (left_is_const && !right_is_const) { | 457 | 102 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 102 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 102 | vec_res.resize(col_right->size()); | 461 | 102 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 102 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 102 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 102 | col_right->get_data(), vec_res); | 465 | | | 466 | 102 | block.replace_by_position(result, std::move(col_res)); | 467 | 102 | } | 468 | 15.3k | return Status::OK(); | 469 | 15.3k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13.5k | const ColumnPtr& col_right_ptr) const { | 426 | 13.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13.5k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13.5k | if (!left_is_const && !right_is_const) { | 435 | 221 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 221 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 221 | vec_res.resize(col_left->get_data().size()); | 439 | 221 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 221 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 221 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 221 | vec_res); | 443 | | | 444 | 221 | block.replace_by_position(result, std::move(col_res)); | 445 | 13.3k | } else if (!left_is_const && right_is_const) { | 446 | 12.6k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 12.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 12.6k | vec_res.resize(col_left->size()); | 450 | 12.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 12.6k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 12.6k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 12.6k | col_right->get_element(0), vec_res); | 454 | | | 455 | 12.6k | block.replace_by_position(result, std::move(col_res)); | 456 | 12.6k | } else if (left_is_const && !right_is_const) { | 457 | 697 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 697 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 697 | vec_res.resize(col_right->size()); | 461 | 697 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 697 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 697 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 697 | col_right->get_data(), vec_res); | 465 | | | 466 | 697 | block.replace_by_position(result, std::move(col_res)); | 467 | 697 | } | 468 | 13.5k | return Status::OK(); | 469 | 13.5k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 157 | const ColumnPtr& col_right_ptr) const { | 426 | 157 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 157 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 157 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 157 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 157 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 157 | if (!left_is_const && !right_is_const) { | 435 | 94 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 94 | vec_res.resize(col_left->get_data().size()); | 439 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 94 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 94 | vec_res); | 443 | | | 444 | 94 | block.replace_by_position(result, std::move(col_res)); | 445 | 94 | } else if (!left_is_const && right_is_const) { | 446 | 47 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 47 | vec_res.resize(col_left->size()); | 450 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 47 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 47 | col_right->get_element(0), vec_res); | 454 | | | 455 | 47 | block.replace_by_position(result, std::move(col_res)); | 456 | 47 | } else if (left_is_const && !right_is_const) { | 457 | 16 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 16 | vec_res.resize(col_right->size()); | 461 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 16 | col_right->get_data(), vec_res); | 465 | | | 466 | 16 | block.replace_by_position(result, std::move(col_res)); | 467 | 16 | } | 468 | 157 | return Status::OK(); | 469 | 157 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 31 | const ColumnPtr& col_right_ptr) const { | 426 | 31 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 31 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 31 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 31 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 31 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 32 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 16 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 16 | vec_res.resize(col_left->size()); | 450 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 16 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 16 | col_right->get_element(0), vec_res); | 454 | | | 455 | 16 | block.replace_by_position(result, std::move(col_res)); | 456 | 18.4E | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 31 | return Status::OK(); | 469 | 31 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 30 | const ColumnPtr& col_right_ptr) const { | 426 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 30 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 30 | if (!left_is_const && !right_is_const) { | 435 | 24 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 24 | vec_res.resize(col_left->get_data().size()); | 439 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 24 | vec_res); | 443 | | | 444 | 24 | block.replace_by_position(result, std::move(col_res)); | 445 | 24 | } else if (!left_is_const && right_is_const) { | 446 | 6 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6 | vec_res.resize(col_left->size()); | 450 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6 | col_right->get_element(0), vec_res); | 454 | | | 455 | 6 | block.replace_by_position(result, std::move(col_res)); | 456 | 6 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 30 | return Status::OK(); | 469 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 117 | const ColumnPtr& col_right_ptr) const { | 426 | 117 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 117 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 117 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 117 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 117 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 117 | if (!left_is_const && !right_is_const) { | 435 | 115 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 115 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 115 | vec_res.resize(col_left->get_data().size()); | 439 | 115 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 115 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 115 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 115 | vec_res); | 443 | | | 444 | 115 | block.replace_by_position(result, std::move(col_res)); | 445 | 115 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 117 | return Status::OK(); | 469 | 117 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 924 | const ColumnPtr& col_right_ptr) const { | 426 | 924 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 924 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 924 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 924 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 924 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 924 | if (!left_is_const && !right_is_const) { | 435 | 115 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 115 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 115 | vec_res.resize(col_left->get_data().size()); | 439 | 115 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 115 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 115 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 115 | vec_res); | 443 | | | 444 | 115 | block.replace_by_position(result, std::move(col_res)); | 445 | 809 | } else if (!left_is_const && right_is_const) { | 446 | 809 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 809 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 809 | vec_res.resize(col_left->size()); | 450 | 809 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 809 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 809 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 809 | col_right->get_element(0), vec_res); | 454 | | | 455 | 809 | block.replace_by_position(result, std::move(col_res)); | 456 | 809 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 924 | return Status::OK(); | 469 | 924 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 74 | const ColumnPtr& col_right_ptr) const { | 426 | 74 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 74 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 74 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 74 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 74 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 74 | if (!left_is_const && !right_is_const) { | 435 | 41 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 41 | vec_res.resize(col_left->get_data().size()); | 439 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 41 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 41 | vec_res); | 443 | | | 444 | 41 | block.replace_by_position(result, std::move(col_res)); | 445 | 41 | } else if (!left_is_const && right_is_const) { | 446 | 33 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 33 | vec_res.resize(col_left->size()); | 450 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 33 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 33 | col_right->get_element(0), vec_res); | 454 | | | 455 | 33 | block.replace_by_position(result, std::move(col_res)); | 456 | 33 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 74 | return Status::OK(); | 469 | 74 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 92 | const ColumnPtr& col_right_ptr) const { | 426 | 92 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 92 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 92 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 92 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 92 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 92 | if (!left_is_const && !right_is_const) { | 435 | 56 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 56 | vec_res.resize(col_left->get_data().size()); | 439 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 56 | vec_res); | 443 | | | 444 | 56 | block.replace_by_position(result, std::move(col_res)); | 445 | 56 | } else if (!left_is_const && right_is_const) { | 446 | 36 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 36 | vec_res.resize(col_left->size()); | 450 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 36 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 36 | col_right->get_element(0), vec_res); | 454 | | | 455 | 36 | block.replace_by_position(result, std::move(col_res)); | 456 | 36 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 92 | return Status::OK(); | 469 | 92 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13 | const ColumnPtr& col_right_ptr) const { | 426 | 13 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 13 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13 | vec_res.resize(col_left->size()); | 450 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13 | col_right->get_element(0), vec_res); | 454 | | | 455 | 13 | block.replace_by_position(result, std::move(col_res)); | 456 | 13 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 13 | return Status::OK(); | 469 | 13 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.28k | const ColumnPtr& col_right_ptr) const { | 426 | 2.28k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.28k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.28k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.28k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.28k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.28k | if (!left_is_const && !right_is_const) { | 435 | 725 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 725 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 725 | vec_res.resize(col_left->get_data().size()); | 439 | 725 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 725 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 725 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 725 | vec_res); | 443 | | | 444 | 725 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.56k | } else if (!left_is_const && right_is_const) { | 446 | 1.56k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.56k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.56k | vec_res.resize(col_left->size()); | 450 | 1.56k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.56k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.56k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.56k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.56k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.56k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.28k | return Status::OK(); | 469 | 2.28k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.10k | const ColumnPtr& col_right_ptr) const { | 426 | 2.10k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.10k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.10k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.10k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.10k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.10k | if (!left_is_const && !right_is_const) { | 435 | 367 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 367 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 367 | vec_res.resize(col_left->get_data().size()); | 439 | 367 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 367 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 367 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 367 | vec_res); | 443 | | | 444 | 367 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.73k | } else if (!left_is_const && right_is_const) { | 446 | 973 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 973 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 973 | vec_res.resize(col_left->size()); | 450 | 973 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 973 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 973 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 973 | col_right->get_element(0), vec_res); | 454 | | | 455 | 973 | block.replace_by_position(result, std::move(col_res)); | 456 | 973 | } else if (left_is_const && !right_is_const) { | 457 | 760 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 760 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 760 | vec_res.resize(col_right->size()); | 461 | 760 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 760 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 760 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 760 | col_right->get_data(), vec_res); | 465 | | | 466 | 760 | block.replace_by_position(result, std::move(col_res)); | 467 | 760 | } | 468 | 2.10k | return Status::OK(); | 469 | 2.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 | 425 | 48 | const ColumnPtr& col_right_ptr) const { | 426 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 48 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 48 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 28 | } else if (!left_is_const && right_is_const) { | 446 | 28 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28 | vec_res.resize(col_left->size()); | 450 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28 | col_right->get_element(0), vec_res); | 454 | | | 455 | 28 | block.replace_by_position(result, std::move(col_res)); | 456 | 28 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 48 | return Status::OK(); | 469 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60 | const ColumnPtr& col_right_ptr) const { | 426 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 40 | } else if (!left_is_const && right_is_const) { | 446 | 40 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 40 | vec_res.resize(col_left->size()); | 450 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 40 | col_right->get_element(0), vec_res); | 454 | | | 455 | 40 | block.replace_by_position(result, std::move(col_res)); | 456 | 40 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 60 | return Status::OK(); | 469 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.08k | const ColumnPtr& col_right_ptr) const { | 426 | 1.08k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.08k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.08k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.08k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.08k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.08k | if (!left_is_const && !right_is_const) { | 435 | 996 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 996 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 996 | vec_res.resize(col_left->get_data().size()); | 439 | 996 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 996 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 996 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 996 | vec_res); | 443 | | | 444 | 996 | block.replace_by_position(result, std::move(col_res)); | 445 | 996 | } else if (!left_is_const && right_is_const) { | 446 | 93 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 93 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 93 | vec_res.resize(col_left->size()); | 450 | 93 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 93 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 93 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 93 | col_right->get_element(0), vec_res); | 454 | | | 455 | 93 | block.replace_by_position(result, std::move(col_res)); | 456 | 93 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.08k | return Status::OK(); | 469 | 1.08k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 62 | const ColumnPtr& col_right_ptr) const { | 426 | 62 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 62 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 62 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 62 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 62 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 62 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 62 | } else if (!left_is_const && right_is_const) { | 446 | 62 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 62 | vec_res.resize(col_left->size()); | 450 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 62 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 62 | col_right->get_element(0), vec_res); | 454 | | | 455 | 62 | block.replace_by_position(result, std::move(col_res)); | 456 | 62 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 62 | return Status::OK(); | 469 | 62 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.25k | const ColumnPtr& col_right_ptr) const { | 426 | 1.25k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.25k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.25k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.25k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.25k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.25k | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.21k | } else if (!left_is_const && right_is_const) { | 446 | 982 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 982 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 982 | vec_res.resize(col_left->size()); | 450 | 982 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 982 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 982 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 982 | col_right->get_element(0), vec_res); | 454 | | | 455 | 982 | block.replace_by_position(result, std::move(col_res)); | 456 | 982 | } else if (left_is_const && !right_is_const) { | 457 | 234 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 234 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 234 | vec_res.resize(col_right->size()); | 461 | 234 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 234 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 234 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 234 | col_right->get_data(), vec_res); | 465 | | | 466 | 234 | block.replace_by_position(result, std::move(col_res)); | 467 | 234 | } | 468 | 1.25k | return Status::OK(); | 469 | 1.25k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.75k | const ColumnPtr& col_right_ptr) const { | 426 | 1.75k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.75k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.75k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.75k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.75k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.75k | if (!left_is_const && !right_is_const) { | 435 | 112 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 112 | vec_res.resize(col_left->get_data().size()); | 439 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 112 | vec_res); | 443 | | | 444 | 112 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.64k | } else if (!left_is_const && right_is_const) { | 446 | 1.41k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.41k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.41k | vec_res.resize(col_left->size()); | 450 | 1.41k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.41k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.41k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.41k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.41k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.41k | } else if (left_is_const && !right_is_const) { | 457 | 227 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 227 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 227 | vec_res.resize(col_right->size()); | 461 | 227 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 227 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 227 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 227 | col_right->get_data(), vec_res); | 465 | | | 466 | 227 | block.replace_by_position(result, std::move(col_res)); | 467 | 227 | } | 468 | 1.75k | return Status::OK(); | 469 | 1.75k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 20.9k | const ColumnPtr& col_right_ptr) const { | 426 | 20.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 20.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 20.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 20.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 20.9k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 20.9k | if (!left_is_const && !right_is_const) { | 435 | 56 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 56 | vec_res.resize(col_left->get_data().size()); | 439 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 56 | vec_res); | 443 | | | 444 | 56 | block.replace_by_position(result, std::move(col_res)); | 445 | 20.9k | } else if (!left_is_const && right_is_const) { | 446 | 17.2k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 17.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 17.2k | vec_res.resize(col_left->size()); | 450 | 17.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 17.2k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 17.2k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 17.2k | col_right->get_element(0), vec_res); | 454 | | | 455 | 17.2k | block.replace_by_position(result, std::move(col_res)); | 456 | 17.2k | } else if (left_is_const && !right_is_const) { | 457 | 3.69k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 3.69k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 3.69k | vec_res.resize(col_right->size()); | 461 | 3.69k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 3.69k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 3.69k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 3.69k | col_right->get_data(), vec_res); | 465 | | | 466 | 3.69k | block.replace_by_position(result, std::move(col_res)); | 467 | 3.69k | } | 468 | 20.9k | return Status::OK(); | 469 | 20.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 7.78k | const ColumnPtr& col_right_ptr) const { | 426 | 7.78k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 7.78k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 7.78k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 7.78k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 7.78k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 7.78k | if (!left_is_const && !right_is_const) { | 435 | 64 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 64 | vec_res.resize(col_left->get_data().size()); | 439 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 64 | vec_res); | 443 | | | 444 | 64 | block.replace_by_position(result, std::move(col_res)); | 445 | 7.71k | } else if (!left_is_const && right_is_const) { | 446 | 7.21k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 7.21k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 7.21k | vec_res.resize(col_left->size()); | 450 | 7.21k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 7.21k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 7.21k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 7.21k | col_right->get_element(0), vec_res); | 454 | | | 455 | 7.21k | block.replace_by_position(result, std::move(col_res)); | 456 | 7.21k | } else if (left_is_const && !right_is_const) { | 457 | 502 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 502 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 502 | vec_res.resize(col_right->size()); | 461 | 502 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 502 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 502 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 502 | col_right->get_data(), vec_res); | 465 | | | 466 | 502 | block.replace_by_position(result, std::move(col_res)); | 467 | 502 | } | 468 | 7.78k | return Status::OK(); | 469 | 7.78k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 260 | const ColumnPtr& col_right_ptr) const { | 426 | 260 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 260 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 260 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 260 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 260 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 260 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 257 | } else if (!left_is_const && right_is_const) { | 446 | 201 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 201 | vec_res.resize(col_left->size()); | 450 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 201 | col_right->get_element(0), vec_res); | 454 | | | 455 | 201 | block.replace_by_position(result, std::move(col_res)); | 456 | 201 | } else if (left_is_const && !right_is_const) { | 457 | 56 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 56 | vec_res.resize(col_right->size()); | 461 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 56 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 56 | col_right->get_data(), vec_res); | 465 | | | 466 | 56 | block.replace_by_position(result, std::move(col_res)); | 467 | 56 | } | 468 | 260 | return Status::OK(); | 469 | 260 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 3 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3 | vec_res.resize(col_left->size()); | 450 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3 | col_right->get_element(0), vec_res); | 454 | | | 455 | 3 | block.replace_by_position(result, std::move(col_res)); | 456 | 3 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 228 | const ColumnPtr& col_right_ptr) const { | 426 | 228 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 228 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 228 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 228 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 228 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 228 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 208 | } else if (!left_is_const && right_is_const) { | 446 | 208 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 208 | vec_res.resize(col_left->size()); | 450 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 208 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 208 | col_right->get_element(0), vec_res); | 454 | | | 455 | 208 | block.replace_by_position(result, std::move(col_res)); | 456 | 208 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 228 | return Status::OK(); | 469 | 228 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.52k | const ColumnPtr& col_right_ptr) const { | 426 | 1.52k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.52k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.52k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.52k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.52k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.52k | if (!left_is_const && !right_is_const) { | 435 | 26 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 26 | vec_res.resize(col_left->get_data().size()); | 439 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 26 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 26 | vec_res); | 443 | | | 444 | 26 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.50k | } else if (!left_is_const && right_is_const) { | 446 | 1.50k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.50k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.50k | vec_res.resize(col_left->size()); | 450 | 1.50k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.50k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.50k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.50k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.50k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.50k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.52k | return Status::OK(); | 469 | 1.52k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 73 | const ColumnPtr& col_right_ptr) const { | 426 | 73 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 73 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 73 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 73 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 73 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 73 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 73 | } else if (!left_is_const && right_is_const) { | 446 | 73 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 73 | vec_res.resize(col_left->size()); | 450 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 73 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 73 | col_right->get_element(0), vec_res); | 454 | | | 455 | 73 | block.replace_by_position(result, std::move(col_res)); | 456 | 73 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 73 | return Status::OK(); | 469 | 73 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.04k | const ColumnPtr& col_right_ptr) const { | 426 | 1.04k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.04k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.04k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.04k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.04k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.04k | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.04k | } else if (!left_is_const && right_is_const) { | 446 | 1.03k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.03k | vec_res.resize(col_left->size()); | 450 | 1.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.03k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.03k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.03k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.03k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.03k | } else if (left_is_const && !right_is_const) { | 457 | 6 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 6 | vec_res.resize(col_right->size()); | 461 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 6 | col_right->get_data(), vec_res); | 465 | | | 466 | 6 | block.replace_by_position(result, std::move(col_res)); | 467 | 6 | } | 468 | 1.04k | return Status::OK(); | 469 | 1.04k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 456 | const ColumnPtr& col_right_ptr) const { | 426 | 456 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 456 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 456 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 456 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 456 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 456 | if (!left_is_const && !right_is_const) { | 435 | 6 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 6 | vec_res.resize(col_left->get_data().size()); | 439 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 6 | vec_res); | 443 | | | 444 | 6 | block.replace_by_position(result, std::move(col_res)); | 445 | 450 | } else if (!left_is_const && right_is_const) { | 446 | 450 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 450 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 450 | vec_res.resize(col_left->size()); | 450 | 450 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 450 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 450 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 450 | col_right->get_element(0), vec_res); | 454 | | | 455 | 450 | block.replace_by_position(result, std::move(col_res)); | 456 | 450 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 456 | return Status::OK(); | 469 | 456 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 66 | const ColumnPtr& col_right_ptr) const { | 426 | 66 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 66 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 66 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 66 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 66 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 66 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 66 | } else if (!left_is_const && right_is_const) { | 446 | 66 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 66 | vec_res.resize(col_left->size()); | 450 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 66 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 66 | col_right->get_element(0), vec_res); | 454 | | | 455 | 66 | block.replace_by_position(result, std::move(col_res)); | 456 | 66 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 66 | return Status::OK(); | 469 | 66 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 82 | const ColumnPtr& col_right_ptr) const { | 426 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 82 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 82 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 82 | } else if (!left_is_const && right_is_const) { | 446 | 82 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 82 | vec_res.resize(col_left->size()); | 450 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 82 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 82 | col_right->get_element(0), vec_res); | 454 | | | 455 | 82 | block.replace_by_position(result, std::move(col_res)); | 456 | 82 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 82 | return Status::OK(); | 469 | 82 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 9.02k | const ColumnPtr& col_right_ptr) const { | 426 | 9.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 9.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 9.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 9.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 9.02k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 9.02k | if (!left_is_const && !right_is_const) { | 435 | 5 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 5 | vec_res.resize(col_left->get_data().size()); | 439 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 5 | vec_res); | 443 | | | 444 | 5 | block.replace_by_position(result, std::move(col_res)); | 445 | 9.01k | } else if (!left_is_const && right_is_const) { | 446 | 9.01k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 9.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 9.01k | vec_res.resize(col_left->size()); | 450 | 9.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 9.01k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 9.01k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 9.01k | col_right->get_element(0), vec_res); | 454 | | | 455 | 9.01k | block.replace_by_position(result, std::move(col_res)); | 456 | 9.01k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 9.02k | return Status::OK(); | 469 | 9.02k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 492 | const ColumnPtr& col_right_ptr) const { | 426 | 492 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 492 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 492 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 492 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 492 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 492 | if (!left_is_const && !right_is_const) { | 435 | 9 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 9 | vec_res.resize(col_left->get_data().size()); | 439 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 9 | vec_res); | 443 | | | 444 | 9 | block.replace_by_position(result, std::move(col_res)); | 445 | 483 | } else if (!left_is_const && right_is_const) { | 446 | 483 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 483 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 483 | vec_res.resize(col_left->size()); | 450 | 483 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 483 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 483 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 483 | col_right->get_element(0), vec_res); | 454 | | | 455 | 483 | block.replace_by_position(result, std::move(col_res)); | 456 | 483 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 492 | return Status::OK(); | 469 | 492 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 44 | const ColumnPtr& col_right_ptr) const { | 426 | 44 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 44 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 44 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 44 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 44 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 44 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 44 | } else if (!left_is_const && right_is_const) { | 446 | 44 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 44 | vec_res.resize(col_left->size()); | 450 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 44 | col_right->get_element(0), vec_res); | 454 | | | 455 | 44 | block.replace_by_position(result, std::move(col_res)); | 456 | 44 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 44 | return Status::OK(); | 469 | 44 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 11 | const ColumnPtr& col_right_ptr) const { | 426 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 11 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 11 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 11 | return Status::OK(); | 469 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 104 | const ColumnPtr& col_right_ptr) const { | 426 | 104 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 104 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 104 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 104 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 104 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 104 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 84 | } else if (!left_is_const && right_is_const) { | 446 | 84 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 84 | vec_res.resize(col_left->size()); | 450 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 84 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 84 | col_right->get_element(0), vec_res); | 454 | | | 455 | 84 | block.replace_by_position(result, std::move(col_res)); | 456 | 84 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 104 | return Status::OK(); | 469 | 104 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 137 | const ColumnPtr& col_right_ptr) const { | 426 | 137 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 137 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 137 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 137 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 137 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 137 | if (!left_is_const && !right_is_const) { | 435 | 21 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 21 | vec_res.resize(col_left->get_data().size()); | 439 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 21 | vec_res); | 443 | | | 444 | 21 | block.replace_by_position(result, std::move(col_res)); | 445 | 116 | } else if (!left_is_const && right_is_const) { | 446 | 116 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 116 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 116 | vec_res.resize(col_left->size()); | 450 | 116 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 116 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 116 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 116 | col_right->get_element(0), vec_res); | 454 | | | 455 | 116 | block.replace_by_position(result, std::move(col_res)); | 456 | 116 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 137 | return Status::OK(); | 469 | 137 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 101 | const ColumnPtr& col_right_ptr) const { | 426 | 101 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 101 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 101 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 101 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 101 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 101 | if (!left_is_const && !right_is_const) { | 435 | 101 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 101 | vec_res.resize(col_left->get_data().size()); | 439 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 101 | vec_res); | 443 | | | 444 | 101 | block.replace_by_position(result, std::move(col_res)); | 445 | 101 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 101 | return Status::OK(); | 469 | 101 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.16k | const ColumnPtr& col_right_ptr) const { | 426 | 2.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.16k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.16k | if (!left_is_const && !right_is_const) { | 435 | 1.70k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.70k | vec_res.resize(col_left->get_data().size()); | 439 | 1.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.70k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.70k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.70k | vec_res); | 443 | | | 444 | 1.70k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.70k | } else if (!left_is_const && right_is_const) { | 446 | 459 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 459 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 459 | vec_res.resize(col_left->size()); | 450 | 459 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 459 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 459 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 459 | col_right->get_element(0), vec_res); | 454 | | | 455 | 459 | block.replace_by_position(result, std::move(col_res)); | 456 | 459 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.16k | return Status::OK(); | 469 | 2.16k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 501 | const ColumnPtr& col_right_ptr) const { | 426 | 501 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 501 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 501 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 501 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 501 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 501 | if (!left_is_const && !right_is_const) { | 435 | 272 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 272 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 272 | vec_res.resize(col_left->get_data().size()); | 439 | 272 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 272 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 272 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 272 | vec_res); | 443 | | | 444 | 272 | block.replace_by_position(result, std::move(col_res)); | 445 | 272 | } else if (!left_is_const && right_is_const) { | 446 | 229 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 229 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 229 | vec_res.resize(col_left->size()); | 450 | 229 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 229 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 229 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 229 | col_right->get_element(0), vec_res); | 454 | | | 455 | 229 | block.replace_by_position(result, std::move(col_res)); | 456 | 229 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 501 | return Status::OK(); | 469 | 501 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 1 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1 | vec_res.resize(col_left->size()); | 450 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1 | col_right->get_element(0), vec_res); | 454 | | | 455 | 1 | block.replace_by_position(result, std::move(col_res)); | 456 | 1 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.10k | const ColumnPtr& col_right_ptr) const { | 426 | 2.10k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.10k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.10k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.10k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.10k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.10k | if (!left_is_const && !right_is_const) { | 435 | 151 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 151 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 151 | vec_res.resize(col_left->get_data().size()); | 439 | 151 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 151 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 151 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 151 | vec_res); | 443 | | | 444 | 151 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.95k | } else if (!left_is_const && right_is_const) { | 446 | 1.71k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.71k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.71k | vec_res.resize(col_left->size()); | 450 | 1.71k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.71k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.71k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.71k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.71k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.71k | } else if (left_is_const && !right_is_const) { | 457 | 240 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 240 | vec_res.resize(col_right->size()); | 461 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 240 | col_right->get_data(), vec_res); | 465 | | | 466 | 240 | block.replace_by_position(result, std::move(col_res)); | 467 | 240 | } | 468 | 2.10k | return Status::OK(); | 469 | 2.10k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 276 | const ColumnPtr& col_right_ptr) const { | 426 | 276 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 276 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 276 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 276 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 276 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 276 | if (!left_is_const && !right_is_const) { | 435 | 135 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 135 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 135 | vec_res.resize(col_left->get_data().size()); | 439 | 135 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 135 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 135 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 135 | vec_res); | 443 | | | 444 | 135 | block.replace_by_position(result, std::move(col_res)); | 445 | 141 | } else if (!left_is_const && right_is_const) { | 446 | 141 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 141 | vec_res.resize(col_left->size()); | 450 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 141 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 141 | col_right->get_element(0), vec_res); | 454 | | | 455 | 141 | block.replace_by_position(result, std::move(col_res)); | 456 | 141 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 276 | return Status::OK(); | 469 | 276 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3.79k | const ColumnPtr& col_right_ptr) const { | 426 | 3.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3.79k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3.79k | if (!left_is_const && !right_is_const) { | 435 | 165 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 165 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 165 | vec_res.resize(col_left->get_data().size()); | 439 | 165 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 165 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 165 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 165 | vec_res); | 443 | | | 444 | 165 | block.replace_by_position(result, std::move(col_res)); | 445 | 3.63k | } else if (!left_is_const && right_is_const) { | 446 | 3.44k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3.44k | vec_res.resize(col_left->size()); | 450 | 3.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3.44k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3.44k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3.44k | col_right->get_element(0), vec_res); | 454 | | | 455 | 3.44k | block.replace_by_position(result, std::move(col_res)); | 456 | 3.44k | } else if (left_is_const && !right_is_const) { | 457 | 191 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 191 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 191 | vec_res.resize(col_right->size()); | 461 | 191 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 191 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 191 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 191 | col_right->get_data(), vec_res); | 465 | | | 466 | 191 | block.replace_by_position(result, std::move(col_res)); | 467 | 191 | } | 468 | 3.79k | return Status::OK(); | 469 | 3.79k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.26k | const ColumnPtr& col_right_ptr) const { | 426 | 1.26k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.26k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.26k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.26k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.26k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.26k | if (!left_is_const && !right_is_const) { | 435 | 226 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 226 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 226 | vec_res.resize(col_left->get_data().size()); | 439 | 226 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 226 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 226 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 226 | vec_res); | 443 | | | 444 | 226 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.03k | } else if (!left_is_const && right_is_const) { | 446 | 955 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 955 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 955 | vec_res.resize(col_left->size()); | 450 | 955 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 955 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 955 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 955 | col_right->get_element(0), vec_res); | 454 | | | 455 | 955 | block.replace_by_position(result, std::move(col_res)); | 456 | 955 | } else if (left_is_const && !right_is_const) { | 457 | 79 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 79 | vec_res.resize(col_right->size()); | 461 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 79 | col_right->get_data(), vec_res); | 465 | | | 466 | 79 | block.replace_by_position(result, std::move(col_res)); | 467 | 79 | } | 468 | 1.26k | return Status::OK(); | 469 | 1.26k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 268 | const ColumnPtr& col_right_ptr) const { | 426 | 268 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 268 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 268 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 268 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 268 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 268 | if (!left_is_const && !right_is_const) { | 435 | 154 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 154 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 154 | vec_res.resize(col_left->get_data().size()); | 439 | 154 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 154 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 154 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 154 | vec_res); | 443 | | | 444 | 154 | block.replace_by_position(result, std::move(col_res)); | 445 | 154 | } else if (!left_is_const && right_is_const) { | 446 | 42 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 42 | vec_res.resize(col_left->size()); | 450 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 42 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 42 | col_right->get_element(0), vec_res); | 454 | | | 455 | 42 | block.replace_by_position(result, std::move(col_res)); | 456 | 72 | } else if (left_is_const && !right_is_const) { | 457 | 72 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 72 | vec_res.resize(col_right->size()); | 461 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 72 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 72 | col_right->get_data(), vec_res); | 465 | | | 466 | 72 | block.replace_by_position(result, std::move(col_res)); | 467 | 72 | } | 468 | 268 | return Status::OK(); | 469 | 268 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16 | const ColumnPtr& col_right_ptr) const { | 426 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16 | return Status::OK(); | 469 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 168 | const ColumnPtr& col_right_ptr) const { | 426 | 168 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 168 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 168 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 168 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 168 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 168 | if (!left_is_const && !right_is_const) { | 435 | 151 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 151 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 151 | vec_res.resize(col_left->get_data().size()); | 439 | 151 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 151 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 151 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 151 | vec_res); | 443 | | | 444 | 151 | block.replace_by_position(result, std::move(col_res)); | 445 | 151 | } else if (!left_is_const && right_is_const) { | 446 | 17 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 17 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 17 | vec_res.resize(col_left->size()); | 450 | 17 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 17 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 17 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 17 | col_right->get_element(0), vec_res); | 454 | | | 455 | 17 | block.replace_by_position(result, std::move(col_res)); | 456 | 17 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 168 | return Status::OK(); | 469 | 168 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 365 | const ColumnPtr& col_right_ptr) const { | 426 | 365 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 365 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 365 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 365 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 365 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 365 | if (!left_is_const && !right_is_const) { | 435 | 153 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 153 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 153 | vec_res.resize(col_left->get_data().size()); | 439 | 153 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 153 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 153 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 153 | vec_res); | 443 | | | 444 | 153 | block.replace_by_position(result, std::move(col_res)); | 445 | 212 | } else if (!left_is_const && right_is_const) { | 446 | 212 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 212 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 212 | vec_res.resize(col_left->size()); | 450 | 212 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 212 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 212 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 212 | col_right->get_element(0), vec_res); | 454 | | | 455 | 212 | block.replace_by_position(result, std::move(col_res)); | 456 | 212 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 365 | return Status::OK(); | 469 | 365 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 172 | const ColumnPtr& col_right_ptr) const { | 426 | 172 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 172 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 172 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 172 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 172 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 172 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 172 | } else if (!left_is_const && right_is_const) { | 446 | 172 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 172 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 172 | vec_res.resize(col_left->size()); | 450 | 172 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 172 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 172 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 172 | col_right->get_element(0), vec_res); | 454 | | | 455 | 172 | block.replace_by_position(result, std::move(col_res)); | 456 | 172 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 172 | return Status::OK(); | 469 | 172 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 14.4k | const ColumnPtr& col_right_ptr) const { | 426 | 14.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 14.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 14.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 14.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 14.4k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 14.4k | if (!left_is_const && !right_is_const) { | 435 | 422 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 422 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 422 | vec_res.resize(col_left->get_data().size()); | 439 | 422 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 422 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 422 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 422 | vec_res); | 443 | | | 444 | 422 | block.replace_by_position(result, std::move(col_res)); | 445 | 13.9k | } else if (!left_is_const && right_is_const) { | 446 | 13.9k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13.9k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13.9k | vec_res.resize(col_left->size()); | 450 | 13.9k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13.9k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13.9k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13.9k | col_right->get_element(0), vec_res); | 454 | | | 455 | 13.9k | block.replace_by_position(result, std::move(col_res)); | 456 | 13.9k | } else if (left_is_const && !right_is_const) { | 457 | 5 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 5 | vec_res.resize(col_right->size()); | 461 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 5 | col_right->get_data(), vec_res); | 465 | | | 466 | 5 | block.replace_by_position(result, std::move(col_res)); | 467 | 5 | } | 468 | 14.4k | return Status::OK(); | 469 | 14.4k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 328 | const ColumnPtr& col_right_ptr) const { | 426 | 328 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 328 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 328 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 328 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 328 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 328 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 328 | } else if (!left_is_const && right_is_const) { | 446 | 328 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 328 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 328 | vec_res.resize(col_left->size()); | 450 | 328 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 328 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 328 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 328 | col_right->get_element(0), vec_res); | 454 | | | 455 | 328 | block.replace_by_position(result, std::move(col_res)); | 456 | 328 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 328 | return Status::OK(); | 469 | 328 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 155 | const ColumnPtr& col_right_ptr) const { | 426 | 155 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 155 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 155 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 155 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 155 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 155 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 154 | } else if (!left_is_const && right_is_const) { | 446 | 154 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 154 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 154 | vec_res.resize(col_left->size()); | 450 | 154 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 154 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 154 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 154 | col_right->get_element(0), vec_res); | 454 | | | 455 | 154 | block.replace_by_position(result, std::move(col_res)); | 456 | 154 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 155 | return Status::OK(); | 469 | 155 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 193 | const ColumnPtr& col_right_ptr) const { | 426 | 193 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 193 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 193 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 193 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 193 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 193 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 193 | } else if (!left_is_const && right_is_const) { | 446 | 193 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 193 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 193 | vec_res.resize(col_left->size()); | 450 | 193 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 193 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 193 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 193 | col_right->get_element(0), vec_res); | 454 | | | 455 | 193 | block.replace_by_position(result, std::move(col_res)); | 456 | 193 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 193 | return Status::OK(); | 469 | 193 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 15.8k | const ColumnPtr& col_right_ptr) const { | 426 | 15.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 15.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 15.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 15.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 15.8k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 15.8k | if (!left_is_const && !right_is_const) { | 435 | 23 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 23 | vec_res.resize(col_left->get_data().size()); | 439 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 23 | vec_res); | 443 | | | 444 | 23 | block.replace_by_position(result, std::move(col_res)); | 445 | 15.8k | } else if (!left_is_const && right_is_const) { | 446 | 15.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 15.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 15.7k | vec_res.resize(col_left->size()); | 450 | 15.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 15.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 15.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 15.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 15.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 15.7k | } else if (left_is_const && !right_is_const) { | 457 | 35 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 35 | vec_res.resize(col_right->size()); | 461 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 35 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 35 | col_right->get_data(), vec_res); | 465 | | | 466 | 35 | block.replace_by_position(result, std::move(col_res)); | 467 | 35 | } | 468 | 15.8k | return Status::OK(); | 469 | 15.8k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 654 | const ColumnPtr& col_right_ptr) const { | 426 | 654 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 654 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 654 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 654 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 654 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 654 | if (!left_is_const && !right_is_const) { | 435 | 69 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 69 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 69 | vec_res.resize(col_left->get_data().size()); | 439 | 69 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 69 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 69 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 69 | vec_res); | 443 | | | 444 | 69 | block.replace_by_position(result, std::move(col_res)); | 445 | 585 | } else if (!left_is_const && right_is_const) { | 446 | 537 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 537 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 537 | vec_res.resize(col_left->size()); | 450 | 537 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 537 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 537 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 537 | col_right->get_element(0), vec_res); | 454 | | | 455 | 537 | block.replace_by_position(result, std::move(col_res)); | 456 | 537 | } else if (left_is_const && !right_is_const) { | 457 | 48 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 48 | vec_res.resize(col_right->size()); | 461 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 48 | col_right->get_data(), vec_res); | 465 | | | 466 | 48 | block.replace_by_position(result, std::move(col_res)); | 467 | 48 | } | 468 | 654 | return Status::OK(); | 469 | 654 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 33 | const ColumnPtr& col_right_ptr) const { | 426 | 33 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 33 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 33 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 33 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 33 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 33 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 33 | } else if (!left_is_const && right_is_const) { | 446 | 33 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 33 | vec_res.resize(col_left->size()); | 450 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 33 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 33 | col_right->get_element(0), vec_res); | 454 | | | 455 | 33 | block.replace_by_position(result, std::move(col_res)); | 456 | 33 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 33 | return Status::OK(); | 469 | 33 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 10 | const ColumnPtr& col_right_ptr) const { | 426 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 10 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 10 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 10 | return Status::OK(); | 469 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 100 | const ColumnPtr& col_right_ptr) const { | 426 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 100 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 100 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 80 | } else if (!left_is_const && right_is_const) { | 446 | 80 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 80 | vec_res.resize(col_left->size()); | 450 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 80 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 80 | col_right->get_element(0), vec_res); | 454 | | | 455 | 80 | block.replace_by_position(result, std::move(col_res)); | 456 | 80 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 100 | return Status::OK(); | 469 | 100 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 124 | const ColumnPtr& col_right_ptr) const { | 426 | 124 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 124 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 124 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 124 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 124 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 124 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 104 | } else if (!left_is_const && right_is_const) { | 446 | 103 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 103 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 103 | vec_res.resize(col_left->size()); | 450 | 103 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 103 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 103 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 103 | col_right->get_element(0), vec_res); | 454 | | | 455 | 103 | block.replace_by_position(result, std::move(col_res)); | 456 | 103 | } else if (left_is_const && !right_is_const) { | 457 | 1 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1 | vec_res.resize(col_right->size()); | 461 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1 | col_right->get_data(), vec_res); | 465 | | | 466 | 1 | block.replace_by_position(result, std::move(col_res)); | 467 | 1 | } | 468 | 124 | return Status::OK(); | 469 | 124 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
470 | | |
471 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
472 | 85.0k | const ColumnWithTypeAndName& col_right) const { |
473 | 85.0k | auto call = [&](const auto& type) -> bool { |
474 | 85.0k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 85.0k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 85.0k | block, result, col_left, col_right); |
477 | 85.0k | return true; |
478 | 85.0k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 208 | auto call = [&](const auto& type) -> bool { | 474 | 208 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 208 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 208 | block, result, col_left, col_right); | 477 | 208 | return true; | 478 | 208 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 249 | auto call = [&](const auto& type) -> bool { | 474 | 249 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 249 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 249 | block, result, col_left, col_right); | 477 | 249 | return true; | 478 | 249 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 998 | auto call = [&](const auto& type) -> bool { | 474 | 998 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 998 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 998 | block, result, col_left, col_right); | 477 | 998 | return true; | 478 | 998 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 66 | auto call = [&](const auto& type) -> bool { | 474 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 66 | block, result, col_left, col_right); | 477 | 66 | return true; | 478 | 66 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 176 | auto call = [&](const auto& type) -> bool { | 474 | 176 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 176 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 176 | block, result, col_left, col_right); | 477 | 176 | return true; | 478 | 176 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 27 | auto call = [&](const auto& type) -> bool { | 474 | 27 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 27 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 27 | block, result, col_left, col_right); | 477 | 27 | return true; | 478 | 27 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 8.16k | auto call = [&](const auto& type) -> bool { | 474 | 8.16k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 8.16k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 8.16k | block, result, col_left, col_right); | 477 | 8.16k | return true; | 478 | 8.16k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.00k | auto call = [&](const auto& type) -> bool { | 474 | 1.00k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.00k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.00k | block, result, col_left, col_right); | 477 | 1.00k | return true; | 478 | 1.00k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 2 | auto call = [&](const auto& type) -> bool { | 474 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2 | block, result, col_left, col_right); | 477 | 2 | return true; | 478 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 8 | auto call = [&](const auto& type) -> bool { | 474 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 8 | block, result, col_left, col_right); | 477 | 8 | return true; | 478 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 159 | auto call = [&](const auto& type) -> bool { | 474 | 159 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 159 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 159 | block, result, col_left, col_right); | 477 | 159 | return true; | 478 | 159 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 58 | auto call = [&](const auto& type) -> bool { | 474 | 58 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 58 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 58 | block, result, col_left, col_right); | 477 | 58 | return true; | 478 | 58 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 21 | auto call = [&](const auto& type) -> bool { | 474 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 21 | block, result, col_left, col_right); | 477 | 21 | return true; | 478 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 200 | auto call = [&](const auto& type) -> bool { | 474 | 200 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 200 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 200 | block, result, col_left, col_right); | 477 | 200 | return true; | 478 | 200 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 237 | auto call = [&](const auto& type) -> bool { | 474 | 237 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 237 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 237 | block, result, col_left, col_right); | 477 | 237 | return true; | 478 | 237 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 375 | auto call = [&](const auto& type) -> bool { | 474 | 375 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 375 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 375 | block, result, col_left, col_right); | 477 | 375 | return true; | 478 | 375 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 1 | auto call = [&](const auto& type) -> bool { | 474 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1 | block, result, col_left, col_right); | 477 | 1 | return true; | 478 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 7 | auto call = [&](const auto& type) -> bool { | 474 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 7 | block, result, col_left, col_right); | 477 | 7 | return true; | 478 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 72.5k | auto call = [&](const auto& type) -> bool { | 474 | 72.5k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 72.5k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 72.5k | block, result, col_left, col_right); | 477 | 72.5k | return true; | 478 | 72.5k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 497 | auto call = [&](const auto& type) -> bool { | 474 | 497 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 497 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 497 | block, result, col_left, col_right); | 477 | 497 | return true; | 478 | 497 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 16 | auto call = [&](const auto& type) -> bool { | 474 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16 | block, result, col_left, col_right); | 477 | 16 | return true; | 478 | 16 | }; |
|
479 | | |
480 | 85.0k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
481 | 0 | return Status::RuntimeError( |
482 | 0 | "type of left column {} is not equal to type of right column {}", |
483 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
484 | 0 | } |
485 | | |
486 | 85.0k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
488 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
489 | 0 | } |
490 | 85.0k | return Status::OK(); |
491 | 85.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.48k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.48k | auto call = [&](const auto& type) -> bool { | 474 | 1.48k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.48k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.48k | block, result, col_left, col_right); | 477 | 1.48k | return true; | 478 | 1.48k | }; | 479 | | | 480 | 1.48k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.48k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.48k | return Status::OK(); | 491 | 1.48k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 272 | const ColumnWithTypeAndName& col_right) const { | 473 | 272 | auto call = [&](const auto& type) -> bool { | 474 | 272 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 272 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 272 | block, result, col_left, col_right); | 477 | 272 | return true; | 478 | 272 | }; | 479 | | | 480 | 272 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 272 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 272 | return Status::OK(); | 491 | 272 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 9.20k | const ColumnWithTypeAndName& col_right) const { | 473 | 9.20k | auto call = [&](const auto& type) -> bool { | 474 | 9.20k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 9.20k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 9.20k | block, result, col_left, col_right); | 477 | 9.20k | return true; | 478 | 9.20k | }; | 479 | | | 480 | 9.20k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 9.20k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 9.20k | return Status::OK(); | 491 | 9.20k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 246 | const ColumnWithTypeAndName& col_right) const { | 473 | 246 | auto call = [&](const auto& type) -> bool { | 474 | 246 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 246 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 246 | block, result, col_left, col_right); | 477 | 246 | return true; | 478 | 246 | }; | 479 | | | 480 | 246 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 246 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 246 | return Status::OK(); | 491 | 246 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 813 | const ColumnWithTypeAndName& col_right) const { | 473 | 813 | auto call = [&](const auto& type) -> bool { | 474 | 813 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 813 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 813 | block, result, col_left, col_right); | 477 | 813 | return true; | 478 | 813 | }; | 479 | | | 480 | 813 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 813 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 813 | return Status::OK(); | 491 | 813 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 73.0k | const ColumnWithTypeAndName& col_right) const { | 473 | 73.0k | auto call = [&](const auto& type) -> bool { | 474 | 73.0k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 73.0k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 73.0k | block, result, col_left, col_right); | 477 | 73.0k | return true; | 478 | 73.0k | }; | 479 | | | 480 | 73.0k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 73.0k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 73.0k | return Status::OK(); | 491 | 73.0k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
494 | 21.3k | const IColumn* c1) const { |
495 | 21.3k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
496 | 21.3k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
497 | 21.3k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
498 | 21.3k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
499 | 21.3k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
501 | 0 | c0->get_name(), c1->get_name(), name); |
502 | 0 | } |
503 | 21.3k | DCHECK(!(c0_const && c1_const)); |
504 | 21.3k | const ColumnString::Chars* c0_const_chars = nullptr; |
505 | 21.3k | const ColumnString::Chars* c1_const_chars = nullptr; |
506 | 21.3k | ColumnString::Offset c0_const_size = 0; |
507 | 21.3k | ColumnString::Offset c1_const_size = 0; |
508 | | |
509 | 21.3k | if (c0_const) { |
510 | 6 | const ColumnString* c0_const_string = |
511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
512 | | |
513 | 6 | if (c0_const_string) { |
514 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
516 | 6 | } else { |
517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
518 | 0 | c0->get_name(), name); |
519 | 0 | } |
520 | 6 | } |
521 | | |
522 | 21.3k | if (c1_const) { |
523 | 20.1k | const ColumnString* c1_const_string = |
524 | 20.1k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 20.1k | if (c1_const_string) { |
527 | 20.1k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 20.1k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 20.1k | } else { |
530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 0 | c1->get_name(), name); |
532 | 0 | } |
533 | 20.1k | } |
534 | | |
535 | 21.3k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
536 | | |
537 | 21.3k | auto c_res = ColumnUInt8::create(); |
538 | 21.3k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
539 | 21.3k | vec_res.resize(c0->size()); |
540 | | |
541 | 21.3k | if (c0_string && c1_string) { |
542 | 1.18k | StringImpl::string_vector_string_vector( |
543 | 1.18k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 1.18k | c1_string->get_offsets(), vec_res); |
545 | 20.1k | } else if (c0_string && c1_const) { |
546 | 20.1k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 20.1k | *c1_const_chars, c1_const_size, vec_res); |
548 | 20.1k | } else if (c0_const && c1_string) { |
549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
551 | 6 | vec_res); |
552 | 6 | } else { |
553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
554 | 0 | c0->get_name(), c1->get_name(), name); |
555 | 0 | } |
556 | 21.3k | block.replace_by_position(result, std::move(c_res)); |
557 | 21.3k | return Status::OK(); |
558 | 21.3k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 18.3k | const IColumn* c1) const { | 495 | 18.3k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 18.3k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 18.3k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 18.3k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 18.3k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 18.3k | DCHECK(!(c0_const && c1_const)); | 504 | 18.3k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 18.3k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 18.3k | ColumnString::Offset c0_const_size = 0; | 507 | 18.3k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 18.3k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 18.3k | if (c1_const) { | 523 | 17.7k | const ColumnString* c1_const_string = | 524 | 17.7k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 17.7k | if (c1_const_string) { | 527 | 17.7k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 17.7k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 17.7k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 17.7k | } | 534 | | | 535 | 18.3k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 18.3k | auto c_res = ColumnUInt8::create(); | 538 | 18.3k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 18.3k | vec_res.resize(c0->size()); | 540 | | | 541 | 18.3k | if (c0_string && c1_string) { | 542 | 668 | StringImpl::string_vector_string_vector( | 543 | 668 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 668 | c1_string->get_offsets(), vec_res); | 545 | 17.7k | } else if (c0_string && c1_const) { | 546 | 17.7k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 17.7k | *c1_const_chars, c1_const_size, vec_res); | 548 | 17.7k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 18.3k | block.replace_by_position(result, std::move(c_res)); | 557 | 18.3k | return Status::OK(); | 558 | 18.3k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 775 | const IColumn* c1) const { | 495 | 775 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 775 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 775 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 775 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 775 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 775 | DCHECK(!(c0_const && c1_const)); | 504 | 775 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 775 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 775 | ColumnString::Offset c0_const_size = 0; | 507 | 775 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 775 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 775 | if (c1_const) { | 523 | 761 | const ColumnString* c1_const_string = | 524 | 761 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 761 | if (c1_const_string) { | 527 | 761 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 761 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 761 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 761 | } | 534 | | | 535 | 775 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 775 | auto c_res = ColumnUInt8::create(); | 538 | 775 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 775 | vec_res.resize(c0->size()); | 540 | | | 541 | 775 | if (c0_string && c1_string) { | 542 | 14 | StringImpl::string_vector_string_vector( | 543 | 14 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 14 | c1_string->get_offsets(), vec_res); | 545 | 761 | } else if (c0_string && c1_const) { | 546 | 761 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 761 | *c1_const_chars, c1_const_size, vec_res); | 548 | 761 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 775 | block.replace_by_position(result, std::move(c_res)); | 557 | 775 | return Status::OK(); | 558 | 775 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 192 | const IColumn* c1) const { | 495 | 192 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 192 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 192 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 192 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 192 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 192 | DCHECK(!(c0_const && c1_const)); | 504 | 192 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 192 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 192 | ColumnString::Offset c0_const_size = 0; | 507 | 192 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 192 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 192 | if (c1_const) { | 523 | 190 | const ColumnString* c1_const_string = | 524 | 190 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 190 | if (c1_const_string) { | 527 | 190 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 190 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 190 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 190 | } | 534 | | | 535 | 192 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 192 | auto c_res = ColumnUInt8::create(); | 538 | 192 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 192 | vec_res.resize(c0->size()); | 540 | | | 541 | 192 | if (c0_string && c1_string) { | 542 | 2 | StringImpl::string_vector_string_vector( | 543 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 2 | c1_string->get_offsets(), vec_res); | 545 | 190 | } else if (c0_string && c1_const) { | 546 | 190 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 190 | *c1_const_chars, c1_const_size, vec_res); | 548 | 190 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 192 | block.replace_by_position(result, std::move(c_res)); | 557 | 192 | return Status::OK(); | 558 | 192 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 440 | const IColumn* c1) const { | 495 | 440 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 440 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 440 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 440 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 440 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 440 | DCHECK(!(c0_const && c1_const)); | 504 | 440 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 440 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 440 | ColumnString::Offset c0_const_size = 0; | 507 | 440 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 440 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 440 | if (c1_const) { | 523 | 396 | const ColumnString* c1_const_string = | 524 | 396 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 396 | if (c1_const_string) { | 527 | 396 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 396 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 396 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 396 | } | 534 | | | 535 | 440 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 440 | auto c_res = ColumnUInt8::create(); | 538 | 440 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 440 | vec_res.resize(c0->size()); | 540 | | | 541 | 440 | if (c0_string && c1_string) { | 542 | 44 | StringImpl::string_vector_string_vector( | 543 | 44 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 44 | c1_string->get_offsets(), vec_res); | 545 | 396 | } else if (c0_string && c1_const) { | 546 | 396 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 396 | *c1_const_chars, c1_const_size, vec_res); | 548 | 396 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 440 | block.replace_by_position(result, std::move(c_res)); | 557 | 440 | return Status::OK(); | 558 | 440 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 632 | const IColumn* c1) const { | 495 | 632 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 632 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 632 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 632 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 632 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 632 | DCHECK(!(c0_const && c1_const)); | 504 | 632 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 632 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 632 | ColumnString::Offset c0_const_size = 0; | 507 | 632 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 632 | if (c0_const) { | 510 | 6 | const ColumnString* c0_const_string = | 511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | | | 513 | 6 | if (c0_const_string) { | 514 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 6 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 6 | } | 521 | | | 522 | 632 | if (c1_const) { | 523 | 178 | const ColumnString* c1_const_string = | 524 | 178 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 178 | if (c1_const_string) { | 527 | 178 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 178 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 178 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 178 | } | 534 | | | 535 | 632 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 632 | auto c_res = ColumnUInt8::create(); | 538 | 632 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 632 | vec_res.resize(c0->size()); | 540 | | | 541 | 632 | if (c0_string && c1_string) { | 542 | 448 | StringImpl::string_vector_string_vector( | 543 | 448 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 448 | c1_string->get_offsets(), vec_res); | 545 | 448 | } else if (c0_string && c1_const) { | 546 | 178 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 178 | *c1_const_chars, c1_const_size, vec_res); | 548 | 178 | } else if (c0_const && c1_string) { | 549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 6 | vec_res); | 552 | 6 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 632 | block.replace_by_position(result, std::move(c_res)); | 557 | 632 | return Status::OK(); | 558 | 632 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 904 | const IColumn* c1) const { | 495 | 904 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 904 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 904 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 904 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 904 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 904 | DCHECK(!(c0_const && c1_const)); | 504 | 904 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 904 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 904 | ColumnString::Offset c0_const_size = 0; | 507 | 904 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 904 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 904 | if (c1_const) { | 523 | 896 | const ColumnString* c1_const_string = | 524 | 896 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 896 | if (c1_const_string) { | 527 | 896 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 896 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 896 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 896 | } | 534 | | | 535 | 904 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 904 | auto c_res = ColumnUInt8::create(); | 538 | 904 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 904 | vec_res.resize(c0->size()); | 540 | | | 541 | 904 | if (c0_string && c1_string) { | 542 | 8 | StringImpl::string_vector_string_vector( | 543 | 8 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 8 | c1_string->get_offsets(), vec_res); | 545 | 896 | } else if (c0_string && c1_const) { | 546 | 896 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 896 | *c1_const_chars, c1_const_size, vec_res); | 548 | 896 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 904 | block.replace_by_position(result, std::move(c_res)); | 557 | 904 | return Status::OK(); | 558 | 904 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 175 | const IColumn* c1) const { |
562 | 175 | bool c0_const = is_column_const(*c0); |
563 | 175 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 175 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 175 | auto c_res = ColumnUInt8::create(); |
568 | 175 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 175 | vec_res.resize(c0->size()); |
570 | | |
571 | 175 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 175 | } else if (c1_const) { |
574 | 166 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 166 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 175 | block.replace_by_position(result, std::move(c_res)); |
580 | 175 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 17 | const IColumn* c1) const { | 562 | 17 | bool c0_const = is_column_const(*c0); | 563 | 17 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 17 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 17 | auto c_res = ColumnUInt8::create(); | 568 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 17 | vec_res.resize(c0->size()); | 570 | | | 571 | 17 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 17 | } else if (c1_const) { | 574 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 13 | } else { | 576 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 4 | } | 578 | | | 579 | 17 | block.replace_by_position(result, std::move(c_res)); | 580 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 8 | const IColumn* c1) const { | 562 | 8 | bool c0_const = is_column_const(*c0); | 563 | 8 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 8 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 8 | auto c_res = ColumnUInt8::create(); | 568 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 8 | vec_res.resize(c0->size()); | 570 | | | 571 | 8 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 8 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 8 | block.replace_by_position(result, std::move(c_res)); | 580 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 9 | const IColumn* c1) const { | 562 | 9 | bool c0_const = is_column_const(*c0); | 563 | 9 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 9 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 9 | auto c_res = ColumnUInt8::create(); | 568 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 9 | vec_res.resize(c0->size()); | 570 | | | 571 | 9 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 9 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 9 | block.replace_by_position(result, std::move(c_res)); | 580 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 81 | const IColumn* c1) const { | 562 | 81 | bool c0_const = is_column_const(*c0); | 563 | 81 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 81 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 81 | auto c_res = ColumnUInt8::create(); | 568 | 81 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 81 | vec_res.resize(c0->size()); | 570 | | | 571 | 81 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 81 | } else if (c1_const) { | 574 | 80 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 80 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 81 | block.replace_by_position(result, std::move(c_res)); | 580 | 81 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 11 | const IColumn* c1) const { | 562 | 11 | bool c0_const = is_column_const(*c0); | 563 | 11 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 11 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 11 | auto c_res = ColumnUInt8::create(); | 568 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 11 | vec_res.resize(c0->size()); | 570 | | | 571 | 11 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 11 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 3 | } | 578 | | | 579 | 11 | block.replace_by_position(result, std::move(c_res)); | 580 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 49 | const IColumn* c1) const { | 562 | 49 | bool c0_const = is_column_const(*c0); | 563 | 49 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 49 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 49 | auto c_res = ColumnUInt8::create(); | 568 | 49 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 49 | vec_res.resize(c0->size()); | 570 | | | 571 | 49 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 49 | } else if (c1_const) { | 574 | 49 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 49 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 49 | block.replace_by_position(result, std::move(c_res)); | 580 | 49 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 175 | const ColumnWithTypeAndName& c1) const { |
584 | 175 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 175 | return Status::OK(); |
586 | 175 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 17 | const ColumnWithTypeAndName& c1) const { | 584 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 17 | return Status::OK(); | 586 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 8 | const ColumnWithTypeAndName& c1) const { | 584 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 8 | return Status::OK(); | 586 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 9 | const ColumnWithTypeAndName& c1) const { | 584 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 9 | return Status::OK(); | 586 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 81 | const ColumnWithTypeAndName& c1) const { | 584 | 81 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 81 | return Status::OK(); | 586 | 81 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 11 | const ColumnWithTypeAndName& c1) const { | 584 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 11 | return Status::OK(); | 586 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 49 | const ColumnWithTypeAndName& c1) const { | 584 | 49 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 49 | return Status::OK(); | 586 | 49 | } |
|
587 | | |
588 | | public: |
589 | 218 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 35 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
|
590 | | |
591 | 378k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 343k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 1.56k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 6.40k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 9.83k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 3.55k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 13.1k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 17.9k | const VExprSPtrs& arguments) const override { |
595 | 17.9k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 17.9k | DORIS_CHECK(op.has_value()); |
597 | 17.9k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 17.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.31k | const VExprSPtrs& arguments) const override { | 595 | 5.31k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.31k | DORIS_CHECK(op.has_value()); | 597 | 5.31k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.31k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 653 | const VExprSPtrs& arguments) const override { | 595 | 653 | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 653 | DORIS_CHECK(op.has_value()); | 597 | 653 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 653 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 2.32k | const VExprSPtrs& arguments) const override { | 595 | 2.32k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 2.32k | DORIS_CHECK(op.has_value()); | 597 | 2.32k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 2.32k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 3.43k | const VExprSPtrs& arguments) const override { | 595 | 3.43k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 3.43k | DORIS_CHECK(op.has_value()); | 597 | 3.43k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 3.43k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.32k | const VExprSPtrs& arguments) const override { | 595 | 1.32k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.32k | DORIS_CHECK(op.has_value()); | 597 | 1.32k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.32k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 4.86k | const VExprSPtrs& arguments) const override { | 595 | 4.86k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 4.86k | DORIS_CHECK(op.has_value()); | 597 | 4.86k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 4.86k | } |
|
599 | | |
600 | 63.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 63.9k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 63.9k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 63.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 25.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 25.7k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 25.7k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 25.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 2.62k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 2.62k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 2.62k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 2.62k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 9.88k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 9.88k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 9.92k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 9.88k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 9.63k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 9.63k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 9.63k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 9.63k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 5.59k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 5.59k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 5.59k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 5.59k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 10.4k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 10.4k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 10.4k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 10.4k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 300 | const VExprSPtrs& arguments) const override { |
607 | 300 | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 300 | DORIS_CHECK(op.has_value()); |
609 | 300 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 300 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 300 | const VExprSPtrs& arguments) const override { | 607 | 300 | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 300 | DORIS_CHECK(op.has_value()); | 609 | 300 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 300 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
611 | | |
612 | 4.68k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 4.68k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 4.68k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 4.68k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 2.83k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 2.83k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 2.83k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 2.83k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 348 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 348 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 348 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 348 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 864 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 864 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 864 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 864 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 205 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 205 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 206 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 205 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 319 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 319 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 320 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 319 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 112 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 112 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 112 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 112 | } |
|
616 | | |
617 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
618 | 9 | const VExprSPtrs& arguments) const override { |
619 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); |
620 | 9 | DORIS_CHECK(op.has_value()); |
621 | 9 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
622 | 9 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 618 | 9 | const VExprSPtrs& arguments) const override { | 619 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 620 | 9 | DORIS_CHECK(op.has_value()); | 621 | 9 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 622 | 9 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
623 | | |
624 | 3.80k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 3.80k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 3.80k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 3.80k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 2.03k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 2.03k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 2.03k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 2.03k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 348 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 348 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 348 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 348 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 843 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 843 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 843 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 843 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 205 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 205 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 206 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 205 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 259 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 259 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 259 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 259 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 112 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 112 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 112 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 112 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 377k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 377k | return std::make_shared<DataTypeUInt8>(); |
632 | 377k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 343k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 343k | return std::make_shared<DataTypeUInt8>(); | 632 | 343k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 1.56k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 1.56k | return std::make_shared<DataTypeUInt8>(); | 632 | 1.56k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 6.40k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 6.40k | return std::make_shared<DataTypeUInt8>(); | 632 | 6.40k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 9.83k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 9.83k | return std::make_shared<DataTypeUInt8>(); | 632 | 9.83k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 3.55k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 3.55k | return std::make_shared<DataTypeUInt8>(); | 632 | 3.55k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 13.2k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 13.2k | return std::make_shared<DataTypeUInt8>(); | 632 | 13.2k | } |
|
633 | | |
634 | | Status evaluate_inverted_index( |
635 | | const ColumnsWithTypeAndName& arguments, |
636 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
637 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
638 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
639 | 1.34k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.34k | DCHECK(arguments.size() == 1); |
641 | 1.34k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.34k | DCHECK(iterators.size() == 1); |
643 | 1.34k | auto* iter = iterators[0]; |
644 | 1.34k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.34k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.34k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 304 | return Status::OK(); |
650 | 304 | } |
651 | 1.04k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.04k | std::string_view name_view(name); |
653 | 1.04k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 723 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 723 | } else if (name_view == NameLess::name) { |
656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 245 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 164 | } else if (name_view == NameGreater::name) { |
660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 18.4E | } else { |
664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 18.4E | } |
666 | | |
667 | 1.04k | if (segment_v2::is_range_query(query_type) && |
668 | 1.04k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 913 | Field param_value; |
673 | 913 | arguments[0].column->get(0, param_value); |
674 | 913 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 911 | segment_v2::InvertedIndexParam param; |
678 | 911 | param.column_name = data_type_with_name.first; |
679 | 911 | param.column_type = data_type_with_name.second; |
680 | 911 | param.query_value = param_value; |
681 | 911 | param.query_type = query_type; |
682 | 911 | param.num_rows = num_rows; |
683 | 911 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 911 | param.analyzer_ctx = analyzer_ctx; |
685 | 911 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 754 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 754 | if (iter->has_null()) { |
688 | 752 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 752 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 752 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 752 | } |
692 | 754 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 754 | bitmap_result = result; |
694 | 754 | bitmap_result.mask_out_null(); |
695 | | |
696 | 754 | if (name_view == NameNotEquals::name) { |
697 | 58 | roaring::Roaring full_result; |
698 | 58 | full_result.addRange(0, num_rows); |
699 | 58 | bitmap_result.op_not(&full_result); |
700 | 58 | } |
701 | | |
702 | 754 | return Status::OK(); |
703 | 754 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 692 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 692 | DCHECK(arguments.size() == 1); | 641 | 692 | DCHECK(data_type_with_names.size() == 1); | 642 | 692 | DCHECK(iterators.size() == 1); | 643 | 692 | auto* iter = iterators[0]; | 644 | 692 | auto data_type_with_name = data_type_with_names[0]; | 645 | 692 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 692 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 36 | return Status::OK(); | 650 | 36 | } | 651 | 656 | segment_v2::InvertedIndexQueryType query_type; | 652 | 656 | std::string_view name_view(name); | 653 | 657 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 657 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 18.4E | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 18.4E | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 657 | if (segment_v2::is_range_query(query_type) && | 668 | 657 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 657 | Field param_value; | 673 | 657 | arguments[0].column->get(0, param_value); | 674 | 657 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 655 | segment_v2::InvertedIndexParam param; | 678 | 655 | param.column_name = data_type_with_name.first; | 679 | 655 | param.column_type = data_type_with_name.second; | 680 | 655 | param.query_value = param_value; | 681 | 655 | param.query_type = query_type; | 682 | 655 | param.num_rows = num_rows; | 683 | 655 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 655 | param.analyzer_ctx = analyzer_ctx; | 685 | 655 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 605 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 605 | if (iter->has_null()) { | 688 | 605 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 605 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 605 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 605 | } | 692 | 605 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 605 | bitmap_result = result; | 694 | 605 | bitmap_result.mask_out_null(); | 695 | | | 696 | 605 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 605 | return Status::OK(); | 703 | 605 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 72 | DCHECK(arguments.size() == 1); | 641 | 72 | DCHECK(data_type_with_names.size() == 1); | 642 | 72 | DCHECK(iterators.size() == 1); | 643 | 72 | auto* iter = iterators[0]; | 644 | 72 | auto data_type_with_name = data_type_with_names[0]; | 645 | 72 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 6 | return Status::OK(); | 650 | 6 | } | 651 | 66 | segment_v2::InvertedIndexQueryType query_type; | 652 | 66 | std::string_view name_view(name); | 653 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 66 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 0 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 66 | if (segment_v2::is_range_query(query_type) && | 668 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 66 | Field param_value; | 673 | 66 | arguments[0].column->get(0, param_value); | 674 | 66 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 66 | segment_v2::InvertedIndexParam param; | 678 | 66 | param.column_name = data_type_with_name.first; | 679 | 66 | param.column_type = data_type_with_name.second; | 680 | 66 | param.query_value = param_value; | 681 | 66 | param.query_type = query_type; | 682 | 66 | param.num_rows = num_rows; | 683 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 66 | param.analyzer_ctx = analyzer_ctx; | 685 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 59 | if (iter->has_null()) { | 688 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 58 | } | 692 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 59 | bitmap_result = result; | 694 | 59 | bitmap_result.mask_out_null(); | 695 | | | 696 | 59 | if (name_view == NameNotEquals::name) { | 697 | 58 | roaring::Roaring full_result; | 698 | 58 | full_result.addRange(0, num_rows); | 699 | 58 | bitmap_result.op_not(&full_result); | 700 | 58 | } | 701 | | | 702 | 59 | return Status::OK(); | 703 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 112 | DCHECK(arguments.size() == 1); | 641 | 112 | DCHECK(data_type_with_names.size() == 1); | 642 | 112 | DCHECK(iterators.size() == 1); | 643 | 112 | auto* iter = iterators[0]; | 644 | 112 | auto data_type_with_name = data_type_with_names[0]; | 645 | 112 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 39 | return Status::OK(); | 650 | 39 | } | 651 | 73 | segment_v2::InvertedIndexQueryType query_type; | 652 | 73 | std::string_view name_view(name); | 653 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 73 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 73 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 73 | } else if (name_view == NameGreater::name) { | 660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 73 | if (segment_v2::is_range_query(query_type) && | 668 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 17 | return Status::OK(); | 671 | 17 | } | 672 | 56 | Field param_value; | 673 | 56 | arguments[0].column->get(0, param_value); | 674 | 56 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 56 | segment_v2::InvertedIndexParam param; | 678 | 56 | param.column_name = data_type_with_name.first; | 679 | 56 | param.column_type = data_type_with_name.second; | 680 | 56 | param.query_value = param_value; | 681 | 56 | param.query_type = query_type; | 682 | 56 | param.num_rows = num_rows; | 683 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 56 | param.analyzer_ctx = analyzer_ctx; | 685 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 37 | if (iter->has_null()) { | 688 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 37 | } | 692 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 37 | bitmap_result = result; | 694 | 37 | bitmap_result.mask_out_null(); | 695 | | | 696 | 37 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 37 | return Status::OK(); | 703 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 179 | DCHECK(arguments.size() == 1); | 641 | 179 | DCHECK(data_type_with_names.size() == 1); | 642 | 179 | DCHECK(iterators.size() == 1); | 643 | 179 | auto* iter = iterators[0]; | 644 | 179 | auto data_type_with_name = data_type_with_names[0]; | 645 | 179 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 86 | return Status::OK(); | 650 | 86 | } | 651 | 93 | segment_v2::InvertedIndexQueryType query_type; | 652 | 93 | std::string_view name_view(name); | 653 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 93 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 93 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 93 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 93 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 93 | if (segment_v2::is_range_query(query_type) && | 668 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 47 | return Status::OK(); | 671 | 47 | } | 672 | 46 | Field param_value; | 673 | 46 | arguments[0].column->get(0, param_value); | 674 | 46 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 46 | segment_v2::InvertedIndexParam param; | 678 | 46 | param.column_name = data_type_with_name.first; | 679 | 46 | param.column_type = data_type_with_name.second; | 680 | 46 | param.query_value = param_value; | 681 | 46 | param.query_type = query_type; | 682 | 46 | param.num_rows = num_rows; | 683 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 46 | param.analyzer_ctx = analyzer_ctx; | 685 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 5 | if (iter->has_null()) { | 688 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 5 | } | 692 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 5 | bitmap_result = result; | 694 | 5 | bitmap_result.mask_out_null(); | 695 | | | 696 | 5 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 5 | return Status::OK(); | 703 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 119 | DCHECK(arguments.size() == 1); | 641 | 119 | DCHECK(data_type_with_names.size() == 1); | 642 | 119 | DCHECK(iterators.size() == 1); | 643 | 119 | auto* iter = iterators[0]; | 644 | 119 | auto data_type_with_name = data_type_with_names[0]; | 645 | 119 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 43 | return Status::OK(); | 650 | 43 | } | 651 | 76 | segment_v2::InvertedIndexQueryType query_type; | 652 | 76 | std::string_view name_view(name); | 653 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 76 | } else if (name_view == NameLess::name) { | 656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 76 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 76 | if (segment_v2::is_range_query(query_type) && | 668 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 18 | return Status::OK(); | 671 | 18 | } | 672 | 58 | Field param_value; | 673 | 58 | arguments[0].column->get(0, param_value); | 674 | 58 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 58 | segment_v2::InvertedIndexParam param; | 678 | 58 | param.column_name = data_type_with_name.first; | 679 | 58 | param.column_type = data_type_with_name.second; | 680 | 58 | param.query_value = param_value; | 681 | 58 | param.query_type = query_type; | 682 | 58 | param.num_rows = num_rows; | 683 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 58 | param.analyzer_ctx = analyzer_ctx; | 685 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 39 | if (iter->has_null()) { | 688 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 39 | } | 692 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 39 | bitmap_result = result; | 694 | 39 | bitmap_result.mask_out_null(); | 695 | | | 696 | 39 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 39 | return Status::OK(); | 703 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 174 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 174 | DCHECK(arguments.size() == 1); | 641 | 174 | DCHECK(data_type_with_names.size() == 1); | 642 | 174 | DCHECK(iterators.size() == 1); | 643 | 174 | auto* iter = iterators[0]; | 644 | 174 | auto data_type_with_name = data_type_with_names[0]; | 645 | 174 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 174 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 94 | return Status::OK(); | 650 | 94 | } | 651 | 80 | segment_v2::InvertedIndexQueryType query_type; | 652 | 80 | std::string_view name_view(name); | 653 | 80 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 80 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 81 | } else if (name_view == NameLessOrEquals::name) { | 658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 18.4E | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 81 | if (segment_v2::is_range_query(query_type) && | 668 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 51 | return Status::OK(); | 671 | 51 | } | 672 | 30 | Field param_value; | 673 | 30 | arguments[0].column->get(0, param_value); | 674 | 30 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 30 | segment_v2::InvertedIndexParam param; | 678 | 30 | param.column_name = data_type_with_name.first; | 679 | 30 | param.column_type = data_type_with_name.second; | 680 | 30 | param.query_value = param_value; | 681 | 30 | param.query_type = query_type; | 682 | 30 | param.num_rows = num_rows; | 683 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 30 | param.analyzer_ctx = analyzer_ctx; | 685 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 9 | if (iter->has_null()) { | 688 | 8 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 8 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 8 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 8 | } | 692 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 9 | bitmap_result = result; | 694 | 9 | bitmap_result.mask_out_null(); | 695 | | | 696 | 9 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 9 | return Status::OK(); | 703 | 9 | } |
|
704 | | |
705 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
706 | 240k | uint32_t result, size_t input_rows_count) const override { |
707 | 240k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 240k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 240k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 240k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 240k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 240k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 240k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 240k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
717 | | |
718 | | /// The case when arguments are the same (tautological comparison). Return constant. |
719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
721 | 240k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 240k | col_left_untyped == col_right_untyped) { |
723 | | /// Always true: =, <=, >= |
724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
728 | 0 | block.get_by_position(result).column = |
729 | 0 | DataTypeUInt8() |
730 | 0 | .create_column_const(input_rows_count, |
731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
732 | 0 | ->convert_to_full_column_if_const(); |
733 | 0 | return Status::OK(); |
734 | 0 | } else { |
735 | 0 | block.get_by_position(result).column = |
736 | 0 | DataTypeUInt8() |
737 | 0 | .create_column_const(input_rows_count, |
738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
739 | 0 | ->convert_to_full_column_if_const(); |
740 | 0 | return Status::OK(); |
741 | 0 | } |
742 | 0 | } |
743 | | |
744 | 374k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 374k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 374k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 98.8k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 98.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 98.8k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 10.4k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 10.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 10.4k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 79.3k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 79.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 79.3k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 23.8k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 23.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 23.8k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 23.5k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 23.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 23.5k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 138k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 138k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 138k | }; |
|
747 | | |
748 | 240k | if (can_compare(left_type->get_primitive_type()) && |
749 | 240k | can_compare(right_type->get_primitive_type())) { |
750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
751 | 133k | if (!left_type->equals_ignore_precision(*right_type)) { |
752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
753 | 0 | get_name(), left_type->get_name(), |
754 | 0 | right_type->get_name()); |
755 | 0 | } |
756 | 133k | } |
757 | | |
758 | 240k | auto compare_type = left_type->get_primitive_type(); |
759 | 240k | switch (compare_type) { |
760 | 1.22k | case TYPE_BOOLEAN: |
761 | 1.22k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 19.6k | case TYPE_DATEV2: |
763 | 19.6k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 1.93k | case TYPE_DATETIMEV2: |
765 | 1.93k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 7 | case TYPE_TIMESTAMPTZ: |
767 | 7 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 9.58k | case TYPE_TINYINT: |
769 | 9.58k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 3.33k | case TYPE_SMALLINT: |
771 | 3.33k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 67.2k | case TYPE_INT: |
773 | 67.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 25.8k | case TYPE_BIGINT: |
775 | 25.8k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 762 | case TYPE_LARGEINT: |
777 | 762 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 74 | case TYPE_IPV4: |
779 | 74 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
780 | 48 | case TYPE_IPV6: |
781 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
782 | 765 | case TYPE_FLOAT: |
783 | 765 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 3.13k | case TYPE_DOUBLE: |
785 | 3.13k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
786 | 4 | case TYPE_TIMEV2: |
787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
788 | 0 | case TYPE_DECIMALV2: |
789 | 450 | case TYPE_DECIMAL32: |
790 | 81.8k | case TYPE_DECIMAL64: |
791 | 84.9k | case TYPE_DECIMAL128I: |
792 | 85.0k | case TYPE_DECIMAL256: |
793 | 85.0k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 85.0k | col_with_type_and_name_right); |
795 | 1.01k | case TYPE_CHAR: |
796 | 8.66k | case TYPE_VARCHAR: |
797 | 21.3k | case TYPE_STRING: |
798 | 21.3k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 175 | default: |
800 | 175 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 175 | col_with_type_and_name_right); |
802 | 240k | } |
803 | 0 | return Status::OK(); |
804 | 240k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 59.3k | uint32_t result, size_t input_rows_count) const override { | 707 | 59.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 59.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 59.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 59.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 59.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 59.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 59.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 59.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 59.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 59.3k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 59.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 59.3k | }; | 747 | | | 748 | 59.3k | if (can_compare(left_type->get_primitive_type()) && | 749 | 59.3k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 39.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 39.4k | } | 757 | | | 758 | 59.3k | auto compare_type = left_type->get_primitive_type(); | 759 | 59.3k | switch (compare_type) { | 760 | 875 | case TYPE_BOOLEAN: | 761 | 875 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 900 | case TYPE_DATEV2: | 763 | 900 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 583 | case TYPE_DATETIMEV2: | 765 | 583 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 5.90k | case TYPE_TINYINT: | 769 | 5.90k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.01k | case TYPE_SMALLINT: | 771 | 1.01k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 15.3k | case TYPE_INT: | 773 | 15.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 13.5k | case TYPE_BIGINT: | 775 | 13.5k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 157 | case TYPE_LARGEINT: | 777 | 157 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 31 | case TYPE_IPV4: | 779 | 31 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 30 | case TYPE_IPV6: | 781 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 117 | case TYPE_FLOAT: | 783 | 117 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 924 | case TYPE_DOUBLE: | 785 | 924 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 4 | case TYPE_TIMEV2: | 787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 208 | case TYPE_DECIMAL32: | 790 | 457 | case TYPE_DECIMAL64: | 791 | 1.45k | case TYPE_DECIMAL128I: | 792 | 1.48k | case TYPE_DECIMAL256: | 793 | 1.48k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.48k | col_with_type_and_name_right); | 795 | 632 | case TYPE_CHAR: | 796 | 7.26k | case TYPE_VARCHAR: | 797 | 18.3k | case TYPE_STRING: | 798 | 18.3k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 17 | default: | 800 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 17 | col_with_type_and_name_right); | 802 | 59.3k | } | 803 | 0 | return Status::OK(); | 804 | 59.3k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 5.73k | uint32_t result, size_t input_rows_count) const override { | 707 | 5.73k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 5.73k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 5.73k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 5.73k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 5.73k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 5.73k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 5.73k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 5.73k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 5.73k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 5.73k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 5.73k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 5.73k | }; | 747 | | | 748 | 5.73k | if (can_compare(left_type->get_primitive_type()) && | 749 | 5.73k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 4.67k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 4.67k | } | 757 | | | 758 | 5.73k | auto compare_type = left_type->get_primitive_type(); | 759 | 5.73k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 74 | case TYPE_DATEV2: | 763 | 74 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 2 | case TYPE_DATETIMEV2: | 765 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 0 | case TYPE_TIMESTAMPTZ: | 767 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 92 | case TYPE_TINYINT: | 769 | 92 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 13 | case TYPE_SMALLINT: | 771 | 13 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.28k | case TYPE_INT: | 773 | 2.28k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 2.10k | case TYPE_BIGINT: | 775 | 2.10k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 0 | case TYPE_LARGEINT: | 777 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 0 | case TYPE_IPV4: | 779 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 48 | case TYPE_FLOAT: | 783 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 60 | case TYPE_DOUBLE: | 785 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 0 | case TYPE_DECIMAL32: | 790 | 65 | case TYPE_DECIMAL64: | 791 | 241 | case TYPE_DECIMAL128I: | 792 | 271 | case TYPE_DECIMAL256: | 793 | 271 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 271 | col_with_type_and_name_right); | 795 | 5 | case TYPE_CHAR: | 796 | 155 | case TYPE_VARCHAR: | 797 | 775 | case TYPE_STRING: | 798 | 775 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 8 | default: | 800 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 8 | col_with_type_and_name_right); | 802 | 5.73k | } | 803 | 0 | return Status::OK(); | 804 | 5.73k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 44.3k | uint32_t result, size_t input_rows_count) const override { | 707 | 44.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 44.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 44.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 44.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 44.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 44.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 44.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 44.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 44.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 44.3k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 44.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 44.3k | }; | 747 | | | 748 | 44.3k | if (can_compare(left_type->get_primitive_type()) && | 749 | 44.3k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 34.9k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 34.9k | } | 757 | | | 758 | 44.3k | auto compare_type = left_type->get_primitive_type(); | 759 | 44.3k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.08k | case TYPE_DATEV2: | 763 | 1.08k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 62 | case TYPE_DATETIMEV2: | 765 | 62 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 1 | case TYPE_TIMESTAMPTZ: | 767 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 1.25k | case TYPE_TINYINT: | 769 | 1.25k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.75k | case TYPE_SMALLINT: | 771 | 1.75k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 20.9k | case TYPE_INT: | 773 | 20.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 7.78k | case TYPE_BIGINT: | 775 | 7.78k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 260 | case TYPE_LARGEINT: | 777 | 260 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 4 | case TYPE_IPV4: | 779 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 228 | case TYPE_FLOAT: | 783 | 228 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 1.52k | case TYPE_DOUBLE: | 785 | 1.52k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 27 | case TYPE_DECIMAL32: | 790 | 8.19k | case TYPE_DECIMAL64: | 791 | 9.19k | case TYPE_DECIMAL128I: | 792 | 9.20k | case TYPE_DECIMAL256: | 793 | 9.20k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 9.20k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 192 | case TYPE_STRING: | 798 | 192 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 9 | default: | 800 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 9 | col_with_type_and_name_right); | 802 | 44.3k | } | 803 | 0 | return Status::OK(); | 804 | 44.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 12.3k | uint32_t result, size_t input_rows_count) const override { | 707 | 12.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 12.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 12.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 12.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 12.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 12.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 12.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 12.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 12.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 12.3k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 12.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 12.3k | }; | 747 | | | 748 | 12.3k | if (can_compare(left_type->get_primitive_type()) && | 749 | 12.3k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 11.5k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 11.5k | } | 757 | | | 758 | 12.3k | auto compare_type = left_type->get_primitive_type(); | 759 | 12.3k | switch (compare_type) { | 760 | 73 | case TYPE_BOOLEAN: | 761 | 73 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.04k | case TYPE_DATEV2: | 763 | 1.04k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 456 | case TYPE_DATETIMEV2: | 765 | 456 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 1 | case TYPE_TIMESTAMPTZ: | 767 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 66 | case TYPE_TINYINT: | 769 | 66 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 82 | case TYPE_SMALLINT: | 771 | 82 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 9.02k | case TYPE_INT: | 773 | 9.02k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 492 | case TYPE_BIGINT: | 775 | 492 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 44 | case TYPE_LARGEINT: | 777 | 44 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 11 | case TYPE_IPV4: | 779 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 104 | case TYPE_FLOAT: | 783 | 104 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 137 | case TYPE_DOUBLE: | 785 | 137 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 8 | case TYPE_DECIMAL32: | 790 | 167 | case TYPE_DECIMAL64: | 791 | 225 | case TYPE_DECIMAL128I: | 792 | 246 | case TYPE_DECIMAL256: | 793 | 246 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 246 | col_with_type_and_name_right); | 795 | 18 | case TYPE_CHAR: | 796 | 251 | case TYPE_VARCHAR: | 797 | 440 | case TYPE_STRING: | 798 | 440 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 81 | default: | 800 | 81 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 81 | col_with_type_and_name_right); | 802 | 12.3k | } | 803 | 0 | return Status::OK(); | 804 | 12.3k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 12.5k | uint32_t result, size_t input_rows_count) const override { | 707 | 12.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 12.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 12.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 12.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 12.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 12.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 12.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 12.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 12.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 12.5k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 12.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 12.5k | }; | 747 | | | 748 | 12.5k | if (can_compare(left_type->get_primitive_type()) && | 749 | 12.5k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 11.0k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 11.0k | } | 757 | | | 758 | 12.5k | auto compare_type = left_type->get_primitive_type(); | 759 | 12.5k | switch (compare_type) { | 760 | 101 | case TYPE_BOOLEAN: | 761 | 101 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.16k | case TYPE_DATEV2: | 763 | 2.16k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 501 | case TYPE_DATETIMEV2: | 765 | 501 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.10k | case TYPE_TINYINT: | 769 | 2.10k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 276 | case TYPE_SMALLINT: | 771 | 276 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 3.79k | case TYPE_INT: | 773 | 3.79k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.26k | case TYPE_BIGINT: | 775 | 1.26k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 268 | case TYPE_LARGEINT: | 777 | 268 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 16 | case TYPE_IPV6: | 781 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 168 | case TYPE_FLOAT: | 783 | 168 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 365 | case TYPE_DOUBLE: | 785 | 365 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 200 | case TYPE_DECIMAL32: | 790 | 437 | case TYPE_DECIMAL64: | 791 | 812 | case TYPE_DECIMAL128I: | 792 | 813 | case TYPE_DECIMAL256: | 793 | 813 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 813 | col_with_type_and_name_right); | 795 | 194 | case TYPE_CHAR: | 796 | 387 | case TYPE_VARCHAR: | 797 | 632 | case TYPE_STRING: | 798 | 632 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 11 | default: | 800 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 11 | col_with_type_and_name_right); | 802 | 12.5k | } | 803 | 0 | return Status::OK(); | 804 | 12.5k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 105k | uint32_t result, size_t input_rows_count) const override { | 707 | 105k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 105k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 105k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 105k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 105k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 105k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 105k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 105k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 105k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 105k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 105k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 105k | }; | 747 | | | 748 | 105k | if (can_compare(left_type->get_primitive_type()) && | 749 | 105k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 32.0k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 32.0k | } | 757 | | | 758 | 105k | auto compare_type = left_type->get_primitive_type(); | 759 | 105k | switch (compare_type) { | 760 | 172 | case TYPE_BOOLEAN: | 761 | 172 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 14.4k | case TYPE_DATEV2: | 763 | 14.4k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 328 | case TYPE_DATETIMEV2: | 765 | 328 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 1 | case TYPE_TIMESTAMPTZ: | 767 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 155 | case TYPE_TINYINT: | 769 | 155 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 193 | case TYPE_SMALLINT: | 771 | 193 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 15.8k | case TYPE_INT: | 773 | 15.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 654 | case TYPE_BIGINT: | 775 | 654 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 33 | case TYPE_LARGEINT: | 777 | 33 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 10 | case TYPE_IPV4: | 779 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 100 | case TYPE_FLOAT: | 783 | 100 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 124 | case TYPE_DOUBLE: | 785 | 124 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 7 | case TYPE_DECIMAL32: | 790 | 72.5k | case TYPE_DECIMAL64: | 791 | 73.0k | case TYPE_DECIMAL128I: | 792 | 73.0k | case TYPE_DECIMAL256: | 793 | 73.0k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 73.0k | col_with_type_and_name_right); | 795 | 152 | case TYPE_CHAR: | 796 | 525 | case TYPE_VARCHAR: | 797 | 904 | case TYPE_STRING: | 798 | 904 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 49 | default: | 800 | 49 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 49 | col_with_type_and_name_right); | 802 | 105k | } | 803 | 0 | return Status::OK(); | 804 | 105k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |