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.62k | PaddedPODArray<UInt8>& c) { |
72 | 8.62k | size_t size = a.size(); |
73 | 8.62k | const A* __restrict a_pos = a.data(); |
74 | 8.62k | const B* __restrict b_pos = b.data(); |
75 | 8.62k | UInt8* __restrict c_pos = c.data(); |
76 | 8.62k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 5.38M | while (a_pos < a_end) { |
79 | 5.38M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 5.38M | ++a_pos; |
81 | 5.38M | ++b_pos; |
82 | 5.38M | ++c_pos; |
83 | 5.38M | } |
84 | 8.62k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 65 | PaddedPODArray<UInt8>& c) { | 72 | 65 | size_t size = a.size(); | 73 | 65 | const A* __restrict a_pos = a.data(); | 74 | 65 | const B* __restrict b_pos = b.data(); | 75 | 65 | UInt8* __restrict c_pos = c.data(); | 76 | 65 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 130 | while (a_pos < a_end) { | 79 | 65 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 65 | ++a_pos; | 81 | 65 | ++b_pos; | 82 | 65 | ++c_pos; | 83 | 65 | } | 84 | 65 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 358 | PaddedPODArray<UInt8>& c) { | 72 | 358 | size_t size = a.size(); | 73 | 358 | const A* __restrict a_pos = a.data(); | 74 | 358 | const B* __restrict b_pos = b.data(); | 75 | 358 | UInt8* __restrict c_pos = c.data(); | 76 | 358 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.57k | while (a_pos < a_end) { | 79 | 1.21k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.21k | ++a_pos; | 81 | 1.21k | ++b_pos; | 82 | 1.21k | ++c_pos; | 83 | 1.21k | } | 84 | 358 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 299 | PaddedPODArray<UInt8>& c) { | 72 | 299 | size_t size = a.size(); | 73 | 299 | const A* __restrict a_pos = a.data(); | 74 | 299 | const B* __restrict b_pos = b.data(); | 75 | 299 | UInt8* __restrict c_pos = c.data(); | 76 | 299 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 616 | while (a_pos < a_end) { | 79 | 317 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 317 | ++a_pos; | 81 | 317 | ++b_pos; | 82 | 317 | ++c_pos; | 83 | 317 | } | 84 | 299 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 13 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 176 | PaddedPODArray<UInt8>& c) { | 72 | 176 | size_t size = a.size(); | 73 | 176 | const A* __restrict a_pos = a.data(); | 74 | 176 | const B* __restrict b_pos = b.data(); | 75 | 176 | UInt8* __restrict c_pos = c.data(); | 76 | 176 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 489 | while (a_pos < a_end) { | 79 | 313 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 313 | ++a_pos; | 81 | 313 | ++b_pos; | 82 | 313 | ++c_pos; | 83 | 313 | } | 84 | 176 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_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 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 265 | PaddedPODArray<UInt8>& c) { | 72 | 265 | size_t size = a.size(); | 73 | 265 | const A* __restrict a_pos = a.data(); | 74 | 265 | const B* __restrict b_pos = b.data(); | 75 | 265 | UInt8* __restrict c_pos = c.data(); | 76 | 265 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.71k | while (a_pos < a_end) { | 79 | 1.45k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.45k | ++a_pos; | 81 | 1.45k | ++b_pos; | 82 | 1.45k | ++c_pos; | 83 | 1.45k | } | 84 | 265 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 284 | PaddedPODArray<UInt8>& c) { | 72 | 284 | size_t size = a.size(); | 73 | 284 | const A* __restrict a_pos = a.data(); | 74 | 284 | const B* __restrict b_pos = b.data(); | 75 | 284 | UInt8* __restrict c_pos = c.data(); | 76 | 284 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.82k | while (a_pos < a_end) { | 79 | 1.54k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.54k | ++a_pos; | 81 | 1.54k | ++b_pos; | 82 | 1.54k | ++c_pos; | 83 | 1.54k | } | 84 | 284 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 83 | PaddedPODArray<UInt8>& c) { | 72 | 83 | size_t size = a.size(); | 73 | 83 | const A* __restrict a_pos = a.data(); | 74 | 83 | const B* __restrict b_pos = b.data(); | 75 | 83 | UInt8* __restrict c_pos = c.data(); | 76 | 83 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 166 | while (a_pos < a_end) { | 79 | 83 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 83 | ++a_pos; | 81 | 83 | ++b_pos; | 82 | 83 | ++c_pos; | 83 | 83 | } | 84 | 83 | } |
_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 | 117 | PaddedPODArray<UInt8>& c) { | 72 | 117 | size_t size = a.size(); | 73 | 117 | const A* __restrict a_pos = a.data(); | 74 | 117 | const B* __restrict b_pos = b.data(); | 75 | 117 | UInt8* __restrict c_pos = c.data(); | 76 | 117 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 253 | 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 | 117 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 117 | PaddedPODArray<UInt8>& c) { | 72 | 117 | size_t size = a.size(); | 73 | 117 | const A* __restrict a_pos = a.data(); | 74 | 117 | const B* __restrict b_pos = b.data(); | 75 | 117 | UInt8* __restrict c_pos = c.data(); | 76 | 117 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 255 | while (a_pos < a_end) { | 79 | 138 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 138 | ++a_pos; | 81 | 138 | ++b_pos; | 82 | 138 | ++c_pos; | 83 | 138 | } | 84 | 117 | } |
_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 | 39 | PaddedPODArray<UInt8>& c) { | 72 | 39 | size_t size = a.size(); | 73 | 39 | const A* __restrict a_pos = a.data(); | 74 | 39 | const B* __restrict b_pos = b.data(); | 75 | 39 | UInt8* __restrict c_pos = c.data(); | 76 | 39 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 108 | while (a_pos < a_end) { | 79 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 69 | ++a_pos; | 81 | 69 | ++b_pos; | 82 | 69 | ++c_pos; | 83 | 69 | } | 84 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 54 | PaddedPODArray<UInt8>& c) { | 72 | 54 | size_t size = a.size(); | 73 | 54 | const A* __restrict a_pos = a.data(); | 74 | 54 | const B* __restrict b_pos = b.data(); | 75 | 54 | UInt8* __restrict c_pos = c.data(); | 76 | 54 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 243 | while (a_pos < a_end) { | 79 | 189 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 189 | ++a_pos; | 81 | 189 | ++b_pos; | 82 | 189 | ++c_pos; | 83 | 189 | } | 84 | 54 | } |
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 | 790 | PaddedPODArray<UInt8>& c) { | 72 | 790 | size_t size = a.size(); | 73 | 790 | const A* __restrict a_pos = a.data(); | 74 | 790 | const B* __restrict b_pos = b.data(); | 75 | 790 | UInt8* __restrict c_pos = c.data(); | 76 | 790 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 294k | while (a_pos < a_end) { | 79 | 294k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 294k | ++a_pos; | 81 | 294k | ++b_pos; | 82 | 294k | ++c_pos; | 83 | 294k | } | 84 | 790 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 362 | PaddedPODArray<UInt8>& c) { | 72 | 362 | size_t size = a.size(); | 73 | 362 | const A* __restrict a_pos = a.data(); | 74 | 362 | const B* __restrict b_pos = b.data(); | 75 | 362 | UInt8* __restrict c_pos = c.data(); | 76 | 362 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.56k | while (a_pos < a_end) { | 79 | 6.20k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.20k | ++a_pos; | 81 | 6.20k | ++b_pos; | 82 | 6.20k | ++c_pos; | 83 | 6.20k | } | 84 | 362 | } |
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 | 1.24k | PaddedPODArray<UInt8>& c) { | 72 | 1.24k | size_t size = a.size(); | 73 | 1.24k | const A* __restrict a_pos = a.data(); | 74 | 1.24k | const B* __restrict b_pos = b.data(); | 75 | 1.24k | UInt8* __restrict c_pos = c.data(); | 76 | 1.24k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.68M | while (a_pos < a_end) { | 79 | 2.67M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.67M | ++a_pos; | 81 | 2.67M | ++b_pos; | 82 | 2.67M | ++c_pos; | 83 | 2.67M | } | 84 | 1.24k | } |
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 | 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 | 11 | 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 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 38 | PaddedPODArray<UInt8>& c) { | 72 | 38 | size_t size = a.size(); | 73 | 38 | const A* __restrict a_pos = a.data(); | 74 | 38 | const B* __restrict b_pos = b.data(); | 75 | 38 | UInt8* __restrict c_pos = c.data(); | 76 | 38 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 322 | 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 | 38 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 110 | PaddedPODArray<UInt8>& c) { | 72 | 110 | size_t size = a.size(); | 73 | 110 | const A* __restrict a_pos = a.data(); | 74 | 110 | const B* __restrict b_pos = b.data(); | 75 | 110 | UInt8* __restrict c_pos = c.data(); | 76 | 110 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 371 | while (a_pos < a_end) { | 79 | 261 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 261 | ++a_pos; | 81 | 261 | ++b_pos; | 82 | 261 | ++c_pos; | 83 | 261 | } | 84 | 110 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 47 | PaddedPODArray<UInt8>& c) { | 72 | 47 | size_t size = a.size(); | 73 | 47 | const A* __restrict a_pos = a.data(); | 74 | 47 | const B* __restrict b_pos = b.data(); | 75 | 47 | UInt8* __restrict c_pos = c.data(); | 76 | 47 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 267 | while (a_pos < a_end) { | 79 | 220 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 220 | ++a_pos; | 81 | 220 | ++b_pos; | 82 | 220 | ++c_pos; | 83 | 220 | } | 84 | 47 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 63 | PaddedPODArray<UInt8>& c) { | 72 | 63 | size_t size = a.size(); | 73 | 63 | const A* __restrict a_pos = a.data(); | 74 | 63 | const B* __restrict b_pos = b.data(); | 75 | 63 | UInt8* __restrict c_pos = c.data(); | 76 | 63 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 563 | while (a_pos < a_end) { | 79 | 500 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 500 | ++a_pos; | 81 | 500 | ++b_pos; | 82 | 500 | ++c_pos; | 83 | 500 | } | 84 | 63 | } |
_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 | 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 | 11 | 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 | 2 | } |
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 | 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 | 7 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 8 | PaddedPODArray<UInt8>& c) { | 72 | 8 | size_t size = a.size(); | 73 | 8 | const A* __restrict a_pos = a.data(); | 74 | 8 | const B* __restrict b_pos = b.data(); | 75 | 8 | UInt8* __restrict c_pos = c.data(); | 76 | 8 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 62 | while (a_pos < a_end) { | 79 | 54 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 54 | ++a_pos; | 81 | 54 | ++b_pos; | 82 | 54 | ++c_pos; | 83 | 54 | } | 84 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 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 | 22 | PaddedPODArray<UInt8>& c) { | 72 | 22 | size_t size = a.size(); | 73 | 22 | const A* __restrict a_pos = a.data(); | 74 | 22 | const B* __restrict b_pos = b.data(); | 75 | 22 | UInt8* __restrict c_pos = c.data(); | 76 | 22 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 65 | 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 | 22 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 91 | PaddedPODArray<UInt8>& c) { | 72 | 91 | size_t size = a.size(); | 73 | 91 | const A* __restrict a_pos = a.data(); | 74 | 91 | const B* __restrict b_pos = b.data(); | 75 | 91 | UInt8* __restrict c_pos = c.data(); | 76 | 91 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 356 | while (a_pos < a_end) { | 79 | 265 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 265 | ++a_pos; | 81 | 265 | ++b_pos; | 82 | 265 | ++c_pos; | 83 | 265 | } | 84 | 91 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.77k | PaddedPODArray<UInt8>& c) { | 72 | 1.77k | size_t size = a.size(); | 73 | 1.77k | const A* __restrict a_pos = a.data(); | 74 | 1.77k | const B* __restrict b_pos = b.data(); | 75 | 1.77k | UInt8* __restrict c_pos = c.data(); | 76 | 1.77k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.37M | while (a_pos < a_end) { | 79 | 2.37M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.37M | ++a_pos; | 81 | 2.37M | ++b_pos; | 82 | 2.37M | ++c_pos; | 83 | 2.37M | } | 84 | 1.77k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 285 | PaddedPODArray<UInt8>& c) { | 72 | 285 | size_t size = a.size(); | 73 | 285 | const A* __restrict a_pos = a.data(); | 74 | 285 | const B* __restrict b_pos = b.data(); | 75 | 285 | UInt8* __restrict c_pos = c.data(); | 76 | 285 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 918 | while (a_pos < a_end) { | 79 | 633 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 633 | ++a_pos; | 81 | 633 | ++b_pos; | 82 | 633 | ++c_pos; | 83 | 633 | } | 84 | 285 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_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 | 11 | 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 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 159 | PaddedPODArray<UInt8>& c) { | 72 | 159 | size_t size = a.size(); | 73 | 159 | const A* __restrict a_pos = a.data(); | 74 | 159 | const B* __restrict b_pos = b.data(); | 75 | 159 | UInt8* __restrict c_pos = c.data(); | 76 | 159 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 492 | while (a_pos < a_end) { | 79 | 333 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 333 | ++a_pos; | 81 | 333 | ++b_pos; | 82 | 333 | ++c_pos; | 83 | 333 | } | 84 | 159 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 136 | PaddedPODArray<UInt8>& c) { | 72 | 136 | size_t size = a.size(); | 73 | 136 | const A* __restrict a_pos = a.data(); | 74 | 136 | const B* __restrict b_pos = b.data(); | 75 | 136 | UInt8* __restrict c_pos = c.data(); | 76 | 136 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 448 | while (a_pos < a_end) { | 79 | 312 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 312 | ++a_pos; | 81 | 312 | ++b_pos; | 82 | 312 | ++c_pos; | 83 | 312 | } | 84 | 136 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 159 | PaddedPODArray<UInt8>& c) { | 72 | 159 | size_t size = a.size(); | 73 | 159 | const A* __restrict a_pos = a.data(); | 74 | 159 | const B* __restrict b_pos = b.data(); | 75 | 159 | UInt8* __restrict c_pos = c.data(); | 76 | 159 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.00k | while (a_pos < a_end) { | 79 | 847 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 847 | ++a_pos; | 81 | 847 | ++b_pos; | 82 | 847 | ++c_pos; | 83 | 847 | } | 84 | 159 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 213 | PaddedPODArray<UInt8>& c) { | 72 | 213 | size_t size = a.size(); | 73 | 213 | const A* __restrict a_pos = a.data(); | 74 | 213 | const B* __restrict b_pos = b.data(); | 75 | 213 | UInt8* __restrict c_pos = c.data(); | 76 | 213 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.41k | 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 | 213 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 141 | PaddedPODArray<UInt8>& c) { | 72 | 141 | size_t size = a.size(); | 73 | 141 | const A* __restrict a_pos = a.data(); | 74 | 141 | const B* __restrict b_pos = b.data(); | 75 | 141 | UInt8* __restrict c_pos = c.data(); | 76 | 141 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 456 | while (a_pos < a_end) { | 79 | 315 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 315 | ++a_pos; | 81 | 315 | ++b_pos; | 82 | 315 | ++c_pos; | 83 | 315 | } | 84 | 141 | } |
_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 | 155 | PaddedPODArray<UInt8>& c) { | 72 | 155 | size_t size = a.size(); | 73 | 155 | const A* __restrict a_pos = a.data(); | 74 | 155 | const B* __restrict b_pos = b.data(); | 75 | 155 | UInt8* __restrict c_pos = c.data(); | 76 | 155 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 503 | while (a_pos < a_end) { | 79 | 348 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 348 | ++a_pos; | 81 | 348 | ++b_pos; | 82 | 348 | ++c_pos; | 83 | 348 | } | 84 | 155 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 160 | PaddedPODArray<UInt8>& c) { | 72 | 160 | size_t size = a.size(); | 73 | 160 | const A* __restrict a_pos = a.data(); | 74 | 160 | const B* __restrict b_pos = b.data(); | 75 | 160 | UInt8* __restrict c_pos = c.data(); | 76 | 160 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 522 | while (a_pos < a_end) { | 79 | 362 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 362 | ++a_pos; | 81 | 362 | ++b_pos; | 82 | 362 | ++c_pos; | 83 | 362 | } | 84 | 160 | } |
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 | 415 | PaddedPODArray<UInt8>& c) { | 72 | 415 | size_t size = a.size(); | 73 | 415 | const A* __restrict a_pos = a.data(); | 74 | 415 | const B* __restrict b_pos = b.data(); | 75 | 415 | UInt8* __restrict c_pos = c.data(); | 76 | 415 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.63k | while (a_pos < a_end) { | 79 | 6.21k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.21k | ++a_pos; | 81 | 6.21k | ++b_pos; | 82 | 6.21k | ++c_pos; | 83 | 6.21k | } | 84 | 415 | } |
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 | 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 | 11 | 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 | 2 | } |
_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 | 30 | PaddedPODArray<UInt8>& c) { | 72 | 30 | size_t size = a.size(); | 73 | 30 | const A* __restrict a_pos = a.data(); | 74 | 30 | const B* __restrict b_pos = b.data(); | 75 | 30 | UInt8* __restrict c_pos = c.data(); | 76 | 30 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 64 | while (a_pos < a_end) { | 79 | 34 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 34 | ++a_pos; | 81 | 34 | ++b_pos; | 82 | 34 | ++c_pos; | 83 | 34 | } | 84 | 30 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 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 | 182k | PaddedPODArray<UInt8>& c) { |
88 | 182k | size_t size = a.size(); |
89 | 182k | const A* __restrict a_pos = a.data(); |
90 | 182k | UInt8* __restrict c_pos = c.data(); |
91 | 182k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 204M | while (a_pos < a_end) { |
94 | 204M | *c_pos = Op::apply(*a_pos, b); |
95 | 204M | ++a_pos; |
96 | 204M | ++c_pos; |
97 | 204M | } |
98 | 182k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 1.54k | PaddedPODArray<UInt8>& c) { | 88 | 1.54k | size_t size = a.size(); | 89 | 1.54k | const A* __restrict a_pos = a.data(); | 90 | 1.54k | UInt8* __restrict c_pos = c.data(); | 91 | 1.54k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.04k | while (a_pos < a_end) { | 94 | 3.49k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.49k | ++a_pos; | 96 | 3.49k | ++c_pos; | 97 | 3.49k | } | 98 | 1.54k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 1.18k | PaddedPODArray<UInt8>& c) { | 88 | 1.18k | size_t size = a.size(); | 89 | 1.18k | const A* __restrict a_pos = a.data(); | 90 | 1.18k | UInt8* __restrict c_pos = c.data(); | 91 | 1.18k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 207k | while (a_pos < a_end) { | 94 | 206k | *c_pos = Op::apply(*a_pos, b); | 95 | 206k | ++a_pos; | 96 | 206k | ++c_pos; | 97 | 206k | } | 98 | 1.18k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 360 | PaddedPODArray<UInt8>& c) { | 88 | 360 | size_t size = a.size(); | 89 | 360 | const A* __restrict a_pos = a.data(); | 90 | 360 | UInt8* __restrict c_pos = c.data(); | 91 | 360 | 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 | 360 | } |
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 | 6.86k | PaddedPODArray<UInt8>& c) { | 88 | 6.86k | size_t size = a.size(); | 89 | 6.86k | const A* __restrict a_pos = a.data(); | 90 | 6.86k | UInt8* __restrict c_pos = c.data(); | 91 | 6.86k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.09M | while (a_pos < a_end) { | 94 | 9.09M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.09M | ++a_pos; | 96 | 9.09M | ++c_pos; | 97 | 9.09M | } | 98 | 6.86k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.40k | PaddedPODArray<UInt8>& c) { | 88 | 1.40k | size_t size = a.size(); | 89 | 1.40k | const A* __restrict a_pos = a.data(); | 90 | 1.40k | UInt8* __restrict c_pos = c.data(); | 91 | 1.40k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 128k | while (a_pos < a_end) { | 94 | 126k | *c_pos = Op::apply(*a_pos, b); | 95 | 126k | ++a_pos; | 96 | 126k | ++c_pos; | 97 | 126k | } | 98 | 1.40k | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 30.8k | PaddedPODArray<UInt8>& c) { | 88 | 30.8k | size_t size = a.size(); | 89 | 30.8k | const A* __restrict a_pos = a.data(); | 90 | 30.8k | UInt8* __restrict c_pos = c.data(); | 91 | 30.8k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.00M | while (a_pos < a_end) { | 94 | 1.97M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.97M | ++a_pos; | 96 | 1.97M | ++c_pos; | 97 | 1.97M | } | 98 | 30.8k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 23.7k | PaddedPODArray<UInt8>& c) { | 88 | 23.7k | size_t size = a.size(); | 89 | 23.7k | const A* __restrict a_pos = a.data(); | 90 | 23.7k | UInt8* __restrict c_pos = c.data(); | 91 | 23.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.22M | while (a_pos < a_end) { | 94 | 3.20M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.20M | ++a_pos; | 96 | 3.20M | ++c_pos; | 97 | 3.20M | } | 98 | 23.7k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 101k | while (a_pos < a_end) { | 94 | 101k | *c_pos = Op::apply(*a_pos, b); | 95 | 101k | ++a_pos; | 96 | 101k | ++c_pos; | 97 | 101k | } | 98 | 73 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 14 | PaddedPODArray<UInt8>& c) { | 88 | 14 | size_t size = a.size(); | 89 | 14 | const A* __restrict a_pos = a.data(); | 90 | 14 | UInt8* __restrict c_pos = c.data(); | 91 | 14 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 128 | 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 | 14 | } |
_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 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 26 | while (a_pos < a_end) { | 94 | 22 | *c_pos = Op::apply(*a_pos, b); | 95 | 22 | ++a_pos; | 96 | 22 | ++c_pos; | 97 | 22 | } | 98 | 4 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 289 | PaddedPODArray<UInt8>& c) { | 88 | 289 | size_t size = a.size(); | 89 | 289 | const A* __restrict a_pos = a.data(); | 90 | 289 | UInt8* __restrict c_pos = c.data(); | 91 | 289 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 701k | while (a_pos < a_end) { | 94 | 701k | *c_pos = Op::apply(*a_pos, b); | 95 | 701k | ++a_pos; | 96 | 701k | ++c_pos; | 97 | 701k | } | 98 | 289 | } |
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 | 43 | PaddedPODArray<UInt8>& c) { | 88 | 43 | size_t size = a.size(); | 89 | 43 | const A* __restrict a_pos = a.data(); | 90 | 43 | UInt8* __restrict c_pos = c.data(); | 91 | 43 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 106 | while (a_pos < a_end) { | 94 | 63 | *c_pos = Op::apply(*a_pos, b); | 95 | 63 | ++a_pos; | 96 | 63 | ++c_pos; | 97 | 63 | } | 98 | 43 | } |
_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 | 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 | 1.24k | while (a_pos < a_end) { | 94 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.19k | ++a_pos; | 96 | 1.19k | ++c_pos; | 97 | 1.19k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 802 | while (a_pos < a_end) { | 94 | 776 | *c_pos = Op::apply(*a_pos, b); | 95 | 776 | ++a_pos; | 96 | 776 | ++c_pos; | 97 | 776 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.77k | PaddedPODArray<UInt8>& c) { | 88 | 2.77k | size_t size = a.size(); | 89 | 2.77k | const A* __restrict a_pos = a.data(); | 90 | 2.77k | UInt8* __restrict c_pos = c.data(); | 91 | 2.77k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 658k | while (a_pos < a_end) { | 94 | 655k | *c_pos = Op::apply(*a_pos, b); | 95 | 655k | ++a_pos; | 96 | 655k | ++c_pos; | 97 | 655k | } | 98 | 2.77k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.71k | PaddedPODArray<UInt8>& c) { | 88 | 2.71k | size_t size = a.size(); | 89 | 2.71k | const A* __restrict a_pos = a.data(); | 90 | 2.71k | UInt8* __restrict c_pos = c.data(); | 91 | 2.71k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 272k | while (a_pos < a_end) { | 94 | 270k | *c_pos = Op::apply(*a_pos, b); | 95 | 270k | ++a_pos; | 96 | 270k | ++c_pos; | 97 | 270k | } | 98 | 2.71k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 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 | 159 | PaddedPODArray<UInt8>& c) { | 88 | 159 | size_t size = a.size(); | 89 | 159 | const A* __restrict a_pos = a.data(); | 90 | 159 | UInt8* __restrict c_pos = c.data(); | 91 | 159 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 747 | while (a_pos < a_end) { | 94 | 588 | *c_pos = Op::apply(*a_pos, b); | 95 | 588 | ++a_pos; | 96 | 588 | ++c_pos; | 97 | 588 | } | 98 | 159 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 468 | PaddedPODArray<UInt8>& c) { | 88 | 468 | size_t size = a.size(); | 89 | 468 | const A* __restrict a_pos = a.data(); | 90 | 468 | UInt8* __restrict c_pos = c.data(); | 91 | 468 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.34M | while (a_pos < a_end) { | 94 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.34M | ++a_pos; | 96 | 1.34M | ++c_pos; | 97 | 1.34M | } | 98 | 468 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 94 | PaddedPODArray<UInt8>& c) { | 88 | 94 | size_t size = a.size(); | 89 | 94 | const A* __restrict a_pos = a.data(); | 90 | 94 | UInt8* __restrict c_pos = c.data(); | 91 | 94 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 210 | while (a_pos < a_end) { | 94 | 116 | *c_pos = Op::apply(*a_pos, b); | 95 | 116 | ++a_pos; | 96 | 116 | ++c_pos; | 97 | 116 | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 373 | PaddedPODArray<UInt8>& c) { | 88 | 373 | size_t size = a.size(); | 89 | 373 | const A* __restrict a_pos = a.data(); | 90 | 373 | UInt8* __restrict c_pos = c.data(); | 91 | 373 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 45.5k | while (a_pos < a_end) { | 94 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 45.1k | ++a_pos; | 96 | 45.1k | ++c_pos; | 97 | 45.1k | } | 98 | 373 | } |
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.46k | PaddedPODArray<UInt8>& c) { | 88 | 1.46k | size_t size = a.size(); | 89 | 1.46k | const A* __restrict a_pos = a.data(); | 90 | 1.46k | UInt8* __restrict c_pos = c.data(); | 91 | 1.46k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.44k | while (a_pos < a_end) { | 94 | 5.98k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.98k | ++a_pos; | 96 | 5.98k | ++c_pos; | 97 | 5.98k | } | 98 | 1.46k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.99k | PaddedPODArray<UInt8>& c) { | 88 | 1.99k | size_t size = a.size(); | 89 | 1.99k | const A* __restrict a_pos = a.data(); | 90 | 1.99k | UInt8* __restrict c_pos = c.data(); | 91 | 1.99k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.63k | while (a_pos < a_end) { | 94 | 5.64k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.64k | ++a_pos; | 96 | 5.64k | ++c_pos; | 97 | 5.64k | } | 98 | 1.99k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.60k | PaddedPODArray<UInt8>& c) { | 88 | 1.60k | size_t size = a.size(); | 89 | 1.60k | const A* __restrict a_pos = a.data(); | 90 | 1.60k | UInt8* __restrict c_pos = c.data(); | 91 | 1.60k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 10.6k | while (a_pos < a_end) { | 94 | 8.99k | *c_pos = Op::apply(*a_pos, b); | 95 | 8.99k | ++a_pos; | 96 | 8.99k | ++c_pos; | 97 | 8.99k | } | 98 | 1.60k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 520 | PaddedPODArray<UInt8>& c) { | 88 | 520 | size_t size = a.size(); | 89 | 520 | const A* __restrict a_pos = a.data(); | 90 | 520 | UInt8* __restrict c_pos = c.data(); | 91 | 520 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.8k | while (a_pos < a_end) { | 94 | 13.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 13.3k | ++a_pos; | 96 | 13.3k | ++c_pos; | 97 | 13.3k | } | 98 | 520 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 24.9k | PaddedPODArray<UInt8>& c) { | 88 | 24.9k | size_t size = a.size(); | 89 | 24.9k | const A* __restrict a_pos = a.data(); | 90 | 24.9k | UInt8* __restrict c_pos = c.data(); | 91 | 24.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.67M | while (a_pos < a_end) { | 94 | 6.65M | *c_pos = Op::apply(*a_pos, b); | 95 | 6.65M | ++a_pos; | 96 | 6.65M | ++c_pos; | 97 | 6.65M | } | 98 | 24.9k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 9.28k | PaddedPODArray<UInt8>& c) { | 88 | 9.28k | size_t size = a.size(); | 89 | 9.28k | const A* __restrict a_pos = a.data(); | 90 | 9.28k | UInt8* __restrict c_pos = c.data(); | 91 | 9.28k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.37M | while (a_pos < a_end) { | 94 | 5.36M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.36M | ++a_pos; | 96 | 5.36M | ++c_pos; | 97 | 5.36M | } | 98 | 9.28k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.4k | PaddedPODArray<UInt8>& c) { | 88 | 13.4k | size_t size = a.size(); | 89 | 13.4k | const A* __restrict a_pos = a.data(); | 90 | 13.4k | UInt8* __restrict c_pos = c.data(); | 91 | 13.4k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 174k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 13.4k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.90k | PaddedPODArray<UInt8>& c) { | 88 | 1.90k | size_t size = a.size(); | 89 | 1.90k | const A* __restrict a_pos = a.data(); | 90 | 1.90k | UInt8* __restrict c_pos = c.data(); | 91 | 1.90k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 14.1k | while (a_pos < a_end) { | 94 | 12.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 12.2k | ++a_pos; | 96 | 12.2k | ++c_pos; | 97 | 12.2k | } | 98 | 1.90k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 281 | PaddedPODArray<UInt8>& c) { | 88 | 281 | size_t size = a.size(); | 89 | 281 | const A* __restrict a_pos = a.data(); | 90 | 281 | UInt8* __restrict c_pos = c.data(); | 91 | 281 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.91k | while (a_pos < a_end) { | 94 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.63k | ++a_pos; | 96 | 1.63k | ++c_pos; | 97 | 1.63k | } | 98 | 281 | } |
_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 | 216 | PaddedPODArray<UInt8>& c) { | 88 | 216 | size_t size = a.size(); | 89 | 216 | const A* __restrict a_pos = a.data(); | 90 | 216 | UInt8* __restrict c_pos = c.data(); | 91 | 216 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.77k | while (a_pos < a_end) { | 94 | 3.55k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.55k | ++a_pos; | 96 | 3.55k | ++c_pos; | 97 | 3.55k | } | 98 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 64 | while (a_pos < a_end) { | 94 | 38 | *c_pos = Op::apply(*a_pos, b); | 95 | 38 | ++a_pos; | 96 | 38 | ++c_pos; | 97 | 38 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.45k | PaddedPODArray<UInt8>& c) { | 88 | 2.45k | size_t size = a.size(); | 89 | 2.45k | const A* __restrict a_pos = a.data(); | 90 | 2.45k | UInt8* __restrict c_pos = c.data(); | 91 | 2.45k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 344k | while (a_pos < a_end) { | 94 | 341k | *c_pos = Op::apply(*a_pos, b); | 95 | 341k | ++a_pos; | 96 | 341k | ++c_pos; | 97 | 341k | } | 98 | 2.45k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 227 | PaddedPODArray<UInt8>& c) { | 88 | 227 | size_t size = a.size(); | 89 | 227 | const A* __restrict a_pos = a.data(); | 90 | 227 | UInt8* __restrict c_pos = c.data(); | 91 | 227 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 316k | while (a_pos < a_end) { | 94 | 316k | *c_pos = Op::apply(*a_pos, b); | 95 | 316k | ++a_pos; | 96 | 316k | ++c_pos; | 97 | 316k | } | 98 | 227 | } |
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 | 204 | PaddedPODArray<UInt8>& c) { | 88 | 204 | size_t size = a.size(); | 89 | 204 | const A* __restrict a_pos = a.data(); | 90 | 204 | UInt8* __restrict c_pos = c.data(); | 91 | 204 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 172k | while (a_pos < a_end) { | 94 | 172k | *c_pos = Op::apply(*a_pos, b); | 95 | 172k | ++a_pos; | 96 | 172k | ++c_pos; | 97 | 172k | } | 98 | 204 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 480 | PaddedPODArray<UInt8>& c) { | 88 | 480 | size_t size = a.size(); | 89 | 480 | const A* __restrict a_pos = a.data(); | 90 | 480 | UInt8* __restrict c_pos = c.data(); | 91 | 480 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 164k | while (a_pos < a_end) { | 94 | 163k | *c_pos = Op::apply(*a_pos, b); | 95 | 163k | ++a_pos; | 96 | 163k | ++c_pos; | 97 | 163k | } | 98 | 480 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 1.57k | PaddedPODArray<UInt8>& c) { | 88 | 1.57k | size_t size = a.size(); | 89 | 1.57k | const A* __restrict a_pos = a.data(); | 90 | 1.57k | UInt8* __restrict c_pos = c.data(); | 91 | 1.57k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.63M | while (a_pos < a_end) { | 94 | 4.63M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.63M | ++a_pos; | 96 | 4.63M | ++c_pos; | 97 | 4.63M | } | 98 | 1.57k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 10.3k | PaddedPODArray<UInt8>& c) { | 88 | 10.3k | size_t size = a.size(); | 89 | 10.3k | const A* __restrict a_pos = a.data(); | 90 | 10.3k | UInt8* __restrict c_pos = c.data(); | 91 | 10.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 75.4M | while (a_pos < a_end) { | 94 | 75.4M | *c_pos = Op::apply(*a_pos, b); | 95 | 75.4M | ++a_pos; | 96 | 75.4M | ++c_pos; | 97 | 75.4M | } | 98 | 10.3k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 771 | PaddedPODArray<UInt8>& c) { | 88 | 771 | size_t size = a.size(); | 89 | 771 | const A* __restrict a_pos = a.data(); | 90 | 771 | UInt8* __restrict c_pos = c.data(); | 91 | 771 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.9k | while (a_pos < a_end) { | 94 | 30.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.1k | ++a_pos; | 96 | 30.1k | ++c_pos; | 97 | 30.1k | } | 98 | 771 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 631 | PaddedPODArray<UInt8>& c) { | 88 | 631 | size_t size = a.size(); | 89 | 631 | const A* __restrict a_pos = a.data(); | 90 | 631 | UInt8* __restrict c_pos = c.data(); | 91 | 631 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 29.9k | while (a_pos < a_end) { | 94 | 29.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 29.3k | ++a_pos; | 96 | 29.3k | ++c_pos; | 97 | 29.3k | } | 98 | 631 | } |
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 | 37 | PaddedPODArray<UInt8>& c) { | 88 | 37 | size_t size = a.size(); | 89 | 37 | const A* __restrict a_pos = a.data(); | 90 | 37 | UInt8* __restrict c_pos = c.data(); | 91 | 37 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 92.7k | while (a_pos < a_end) { | 94 | 92.7k | *c_pos = Op::apply(*a_pos, b); | 95 | 92.7k | ++a_pos; | 96 | 92.7k | ++c_pos; | 97 | 92.7k | } | 98 | 37 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 260 | PaddedPODArray<UInt8>& c) { | 88 | 260 | size_t size = a.size(); | 89 | 260 | const A* __restrict a_pos = a.data(); | 90 | 260 | UInt8* __restrict c_pos = c.data(); | 91 | 260 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 126k | while (a_pos < a_end) { | 94 | 125k | *c_pos = Op::apply(*a_pos, b); | 95 | 125k | ++a_pos; | 96 | 125k | ++c_pos; | 97 | 125k | } | 98 | 260 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 41 | PaddedPODArray<UInt8>& c) { | 88 | 41 | size_t size = a.size(); | 89 | 41 | const A* __restrict a_pos = a.data(); | 90 | 41 | UInt8* __restrict c_pos = c.data(); | 91 | 41 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 63.3k | 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 | 41 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 211 | PaddedPODArray<UInt8>& c) { | 88 | 211 | size_t size = a.size(); | 89 | 211 | const A* __restrict a_pos = a.data(); | 90 | 211 | UInt8* __restrict c_pos = c.data(); | 91 | 211 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 73.8k | while (a_pos < a_end) { | 94 | 73.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 73.5k | ++a_pos; | 96 | 73.5k | ++c_pos; | 97 | 73.5k | } | 98 | 211 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.5k | PaddedPODArray<UInt8>& c) { | 88 | 13.5k | size_t size = a.size(); | 89 | 13.5k | const A* __restrict a_pos = a.data(); | 90 | 13.5k | UInt8* __restrict c_pos = c.data(); | 91 | 13.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 43.9M | while (a_pos < a_end) { | 94 | 43.9M | *c_pos = Op::apply(*a_pos, b); | 95 | 43.9M | ++a_pos; | 96 | 43.9M | ++c_pos; | 97 | 43.9M | } | 98 | 13.5k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 20.5k | PaddedPODArray<UInt8>& c) { | 88 | 20.5k | size_t size = a.size(); | 89 | 20.5k | const A* __restrict a_pos = a.data(); | 90 | 20.5k | UInt8* __restrict c_pos = c.data(); | 91 | 20.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 48.3M | while (a_pos < a_end) { | 94 | 48.2M | *c_pos = Op::apply(*a_pos, b); | 95 | 48.2M | ++a_pos; | 96 | 48.2M | ++c_pos; | 97 | 48.2M | } | 98 | 20.5k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 943 | PaddedPODArray<UInt8>& c) { | 88 | 943 | size_t size = a.size(); | 89 | 943 | const A* __restrict a_pos = a.data(); | 90 | 943 | UInt8* __restrict c_pos = c.data(); | 91 | 943 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 42.8k | while (a_pos < a_end) { | 94 | 41.9k | *c_pos = Op::apply(*a_pos, b); | 95 | 41.9k | ++a_pos; | 96 | 41.9k | ++c_pos; | 97 | 41.9k | } | 98 | 943 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 791 | PaddedPODArray<UInt8>& c) { | 88 | 791 | size_t size = a.size(); | 89 | 791 | const A* __restrict a_pos = a.data(); | 90 | 791 | UInt8* __restrict c_pos = c.data(); | 91 | 791 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 37.4k | while (a_pos < a_end) { | 94 | 36.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 36.6k | ++a_pos; | 96 | 36.6k | ++c_pos; | 97 | 36.6k | } | 98 | 791 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 46 | PaddedPODArray<UInt8>& c) { | 88 | 46 | size_t size = a.size(); | 89 | 46 | const A* __restrict a_pos = a.data(); | 90 | 46 | UInt8* __restrict c_pos = c.data(); | 91 | 46 | 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 | 46 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 61 | PaddedPODArray<UInt8>& c) { | 88 | 61 | size_t size = a.size(); | 89 | 61 | const A* __restrict a_pos = a.data(); | 90 | 61 | UInt8* __restrict c_pos = c.data(); | 91 | 61 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 132k | while (a_pos < a_end) { | 94 | 132k | *c_pos = Op::apply(*a_pos, b); | 95 | 132k | ++a_pos; | 96 | 132k | ++c_pos; | 97 | 132k | } | 98 | 61 | } |
_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 | 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 | 418 | while (a_pos < a_end) { | 94 | 210 | *c_pos = Op::apply(*a_pos, b); | 95 | 210 | ++a_pos; | 96 | 210 | ++c_pos; | 97 | 210 | } | 98 | 208 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 204 | PaddedPODArray<UInt8>& c) { | 88 | 204 | size_t size = a.size(); | 89 | 204 | const A* __restrict a_pos = a.data(); | 90 | 204 | UInt8* __restrict c_pos = c.data(); | 91 | 204 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 408 | while (a_pos < a_end) { | 94 | 204 | *c_pos = Op::apply(*a_pos, b); | 95 | 204 | ++a_pos; | 96 | 204 | ++c_pos; | 97 | 204 | } | 98 | 204 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 118 | PaddedPODArray<UInt8>& c) { | 88 | 118 | size_t size = a.size(); | 89 | 118 | const A* __restrict a_pos = a.data(); | 90 | 118 | UInt8* __restrict c_pos = c.data(); | 91 | 118 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 276k | while (a_pos < a_end) { | 94 | 276k | *c_pos = Op::apply(*a_pos, b); | 95 | 276k | ++a_pos; | 96 | 276k | ++c_pos; | 97 | 276k | } | 98 | 118 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 126 | PaddedPODArray<UInt8>& c) { | 88 | 126 | size_t size = a.size(); | 89 | 126 | const A* __restrict a_pos = a.data(); | 90 | 126 | UInt8* __restrict c_pos = c.data(); | 91 | 126 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 276k | while (a_pos < a_end) { | 94 | 275k | *c_pos = Op::apply(*a_pos, b); | 95 | 275k | ++a_pos; | 96 | 275k | ++c_pos; | 97 | 275k | } | 98 | 126 | } |
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.97k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 7.97k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 7.97k | } 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 | 336 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 336 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 336 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_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 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 142 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 142 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 142 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1.09k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1.09k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1.09k | } |
_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 | 782 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 782 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 782 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 264 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 252 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 252 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 252 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 494 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 494 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 494 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 52 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 52 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 52 | } |
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 | 288 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 288 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 288 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 121 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 121 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 121 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 75 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 75 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 75 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 80 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 80 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 80 | } |
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 | 539 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 539 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 539 | } |
_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 | 172 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 172 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 417k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 417k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 417k | } |
119 | 172 | } _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 | 223k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 223k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 223k | } | 119 | 49 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 86 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 86 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 194k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 194k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 194k | } | 119 | 86 | } |
|
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 | 503 | PaddedPODArray<UInt8>& c) { |
133 | 503 | size_t size = a_offsets.size(); |
134 | 503 | ColumnString::Offset prev_a_offset = 0; |
135 | 503 | ColumnString::Offset prev_b_offset = 0; |
136 | 503 | const auto* a_pos = a_data.data(); |
137 | 503 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.73k | 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 | 503 | } _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 | 36 | PaddedPODArray<UInt8>& c) { | 133 | 36 | size_t size = a_offsets.size(); | 134 | 36 | ColumnString::Offset prev_a_offset = 0; | 135 | 36 | ColumnString::Offset prev_b_offset = 0; | 136 | 36 | const auto* a_pos = a_data.data(); | 137 | 36 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 230 | for (size_t i = 0; i < size; ++i) { | 140 | 194 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 194 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 194 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 194 | 0); | 144 | | | 145 | 194 | prev_a_offset = a_offsets[i]; | 146 | 194 | prev_b_offset = b_offsets[i]; | 147 | 194 | } | 148 | 36 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 465 | PaddedPODArray<UInt8>& c) { | 133 | 465 | size_t size = a_offsets.size(); | 134 | 465 | ColumnString::Offset prev_a_offset = 0; | 135 | 465 | ColumnString::Offset prev_b_offset = 0; | 136 | 465 | const auto* a_pos = a_data.data(); | 137 | 465 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.45k | for (size_t i = 0; i < size; ++i) { | 140 | 987 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 987 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 987 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 987 | 0); | 144 | | | 145 | 987 | prev_a_offset = a_offsets[i]; | 146 | 987 | prev_b_offset = b_offsets[i]; | 147 | 987 | } | 148 | 465 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
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 | 3.06k | PaddedPODArray<UInt8>& c) { |
155 | 3.06k | size_t size = a_offsets.size(); |
156 | 3.06k | ColumnString::Offset prev_a_offset = 0; |
157 | 3.06k | const auto* a_pos = a_data.data(); |
158 | 3.06k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.38M | for (size_t i = 0; i < size; ++i) { |
161 | 1.38M | c[i] = Op::apply( |
162 | 1.38M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.38M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.38M | 0); |
165 | | |
166 | 1.38M | prev_a_offset = a_offsets[i]; |
167 | 1.38M | } |
168 | 3.06k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 203 | PaddedPODArray<UInt8>& c) { | 155 | 203 | size_t size = a_offsets.size(); | 156 | 203 | ColumnString::Offset prev_a_offset = 0; | 157 | 203 | const auto* a_pos = a_data.data(); | 158 | 203 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 324k | for (size_t i = 0; i < size; ++i) { | 161 | 324k | c[i] = Op::apply( | 162 | 324k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 324k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 324k | 0); | 165 | | | 166 | 324k | prev_a_offset = a_offsets[i]; | 167 | 324k | } | 168 | 203 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 281 | PaddedPODArray<UInt8>& c) { | 155 | 281 | size_t size = a_offsets.size(); | 156 | 281 | ColumnString::Offset prev_a_offset = 0; | 157 | 281 | const auto* a_pos = a_data.data(); | 158 | 281 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 73.1k | for (size_t i = 0; i < size; ++i) { | 161 | 72.9k | c[i] = Op::apply( | 162 | 72.9k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 72.9k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 72.9k | 0); | 165 | | | 166 | 72.9k | prev_a_offset = a_offsets[i]; | 167 | 72.9k | } | 168 | 281 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 671 | PaddedPODArray<UInt8>& c) { | 155 | 671 | size_t size = a_offsets.size(); | 156 | 671 | ColumnString::Offset prev_a_offset = 0; | 157 | 671 | const auto* a_pos = a_data.data(); | 158 | 671 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 518k | for (size_t i = 0; i < size; ++i) { | 161 | 517k | c[i] = Op::apply( | 162 | 517k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 517k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 517k | 0); | 165 | | | 166 | 517k | prev_a_offset = a_offsets[i]; | 167 | 517k | } | 168 | 671 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 1.90k | PaddedPODArray<UInt8>& c) { | 155 | 1.90k | size_t size = a_offsets.size(); | 156 | 1.90k | ColumnString::Offset prev_a_offset = 0; | 157 | 1.90k | const auto* a_pos = a_data.data(); | 158 | 1.90k | const auto* b_pos = b_data.data(); | 159 | | | 160 | 469k | for (size_t i = 0; i < size; ++i) { | 161 | 467k | c[i] = Op::apply( | 162 | 467k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 467k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 467k | 0); | 165 | | | 166 | 467k | prev_a_offset = a_offsets[i]; | 167 | 467k | } | 168 | 1.90k | } |
|
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 | 526 | PaddedPODArray<UInt8>& c) { |
187 | 526 | size_t size = a_offsets.size(); |
188 | 526 | ColumnString::Offset prev_a_offset = 0; |
189 | 526 | ColumnString::Offset prev_b_offset = 0; |
190 | 526 | const auto* a_pos = a_data.data(); |
191 | 526 | const auto* b_pos = b_data.data(); |
192 | | |
193 | 1.53k | for (size_t i = 0; i < size; ++i) { |
194 | 1.00k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.00k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.00k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.00k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.00k | prev_a_offset = a_offsets[i]; |
201 | 1.00k | prev_b_offset = b_offsets[i]; |
202 | 1.00k | } |
203 | 526 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 525 | PaddedPODArray<UInt8>& c) { | 187 | 525 | size_t size = a_offsets.size(); | 188 | 525 | ColumnString::Offset prev_a_offset = 0; | 189 | 525 | ColumnString::Offset prev_b_offset = 0; | 190 | 525 | const auto* a_pos = a_data.data(); | 191 | 525 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 1.52k | for (size_t i = 0; i < size; ++i) { | 194 | 1.00k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.00k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.00k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.00k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.00k | prev_a_offset = a_offsets[i]; | 201 | 1.00k | prev_b_offset = b_offsets[i]; | 202 | 1.00k | } | 203 | 525 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1 | PaddedPODArray<UInt8>& c) { | 187 | 1 | size_t size = a_offsets.size(); | 188 | 1 | ColumnString::Offset prev_a_offset = 0; | 189 | 1 | ColumnString::Offset prev_b_offset = 0; | 190 | 1 | const auto* a_pos = a_data.data(); | 191 | 1 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 5 | for (size_t i = 0; i < size; ++i) { | 194 | 4 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 4 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 4 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 4 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 4 | prev_a_offset = a_offsets[i]; | 201 | 4 | prev_b_offset = b_offsets[i]; | 202 | 4 | } | 203 | 1 | } |
|
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 | 24.2k | PaddedPODArray<UInt8>& c) { |
210 | 24.2k | size_t size = a_offsets.size(); |
211 | 24.2k | 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 | 24.2k | } else { |
221 | 24.2k | ColumnString::Offset prev_a_offset = 0; |
222 | 24.2k | const auto* a_pos = a_data.data(); |
223 | 24.2k | const auto* b_pos = b_data.data(); |
224 | 9.12M | for (size_t i = 0; i < size; ++i) { |
225 | 9.10M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 9.10M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 9.10M | b_pos, b_size); |
228 | 9.10M | prev_a_offset = a_offsets[i]; |
229 | 9.10M | } |
230 | 24.2k | } |
231 | 24.2k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 22.7k | PaddedPODArray<UInt8>& c) { | 210 | 22.7k | size_t size = a_offsets.size(); | 211 | 22.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 | 22.7k | } else { | 221 | 22.7k | ColumnString::Offset prev_a_offset = 0; | 222 | 22.7k | const auto* a_pos = a_data.data(); | 223 | 22.7k | const auto* b_pos = b_data.data(); | 224 | 8.17M | for (size_t i = 0; i < size; ++i) { | 225 | 8.15M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.15M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.15M | b_pos, b_size); | 228 | 8.15M | prev_a_offset = a_offsets[i]; | 229 | 8.15M | } | 230 | 22.7k | } | 231 | 22.7k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 1.50k | PaddedPODArray<UInt8>& c) { | 210 | 1.50k | size_t size = a_offsets.size(); | 211 | 1.50k | 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 | 1.50k | } else { | 221 | 1.50k | ColumnString::Offset prev_a_offset = 0; | 222 | 1.50k | const auto* a_pos = a_data.data(); | 223 | 1.50k | const auto* b_pos = b_data.data(); | 224 | 956k | for (size_t i = 0; i < size; ++i) { | 225 | 954k | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 954k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 954k | b_pos, b_size); | 228 | 954k | prev_a_offset = a_offsets[i]; | 229 | 954k | } | 230 | 1.50k | } | 231 | 1.50k | } |
|
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 | 35.2k | Op op) { |
296 | 35.2k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 35.2k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 35.2k | slot_literal->slot_type); |
300 | 35.2k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 35.2k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 35.2k | if (zone_map_ptr == nullptr) { |
305 | 1.69k | return unsupported_zonemap_filter(ctx); |
306 | 1.69k | } |
307 | 33.5k | const auto& zone_map = *zone_map_ptr; |
308 | 33.5k | if (!zone_map.has_not_null) { |
309 | 61 | return ZoneMapFilterResult::kNoMatch; |
310 | 61 | } |
311 | 33.5k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 92 | return unsupported_zonemap_filter(ctx); |
313 | 92 | } |
314 | | |
315 | 33.4k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 33.4k | const auto& literal = slot_literal->literal; |
317 | 33.4k | switch (effective_op) { |
318 | 7.09k | case Op::EQ: |
319 | 7.09k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 7.09k | ? ZoneMapFilterResult::kNoMatch |
321 | 7.09k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.03k | case Op::NE: |
323 | 1.03k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.03k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.03k | : ZoneMapFilterResult::kMayMatch; |
326 | 1.86k | case Op::LT: |
327 | 1.86k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 1.86k | : ZoneMapFilterResult::kMayMatch; |
329 | 10.5k | case Op::LE: |
330 | 10.5k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 10.5k | : ZoneMapFilterResult::kMayMatch; |
332 | 3.90k | case Op::GT: |
333 | 3.90k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 3.90k | : ZoneMapFilterResult::kMayMatch; |
335 | 9.01k | case Op::GE: |
336 | 9.01k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 9.01k | : ZoneMapFilterResult::kMayMatch; |
338 | 33.4k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 33.4k | } |
343 | | |
344 | 86.9k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 86.9k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 86.9k | if (!slot_literal.has_value()) { |
347 | 30.1k | return false; |
348 | 30.1k | } |
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 | 56.8k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 56.8k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 56.8k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 56.8k | 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 | 56.8k | return true; |
367 | 56.8k | } |
368 | | |
369 | 122k | inline std::optional<Op> op_from_name(std::string_view name) { |
370 | 122k | if (name == NameEquals::name) { |
371 | 40.0k | return Op::EQ; |
372 | 40.0k | } |
373 | 82.2k | if (name == NameNotEquals::name) { |
374 | 4.61k | return Op::NE; |
375 | 4.61k | } |
376 | 77.6k | if (name == NameLess::name) { |
377 | 8.39k | return Op::LT; |
378 | 8.39k | } |
379 | 69.2k | if (name == NameLessOrEquals::name) { |
380 | 26.8k | return Op::LE; |
381 | 26.8k | } |
382 | 42.4k | if (name == NameGreater::name) { |
383 | 16.8k | return Op::GT; |
384 | 16.8k | } |
385 | 25.7k | if (name == NameGreaterOrEquals::name) { |
386 | 25.7k | return Op::GE; |
387 | 25.7k | } |
388 | 18.4E | return std::nullopt; |
389 | 25.6k | } |
390 | | } // namespace comparison_zonemap_detail |
391 | | |
392 | | template <template <PrimitiveType> class Op, typename Name> |
393 | | class FunctionComparison : public IFunction { |
394 | | public: |
395 | | static constexpr auto name = Name::name; |
396 | 468k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 396 | 436k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 396 | 1.35k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 396 | 6.35k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 396 | 8.12k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 396 | 3.46k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 396 | 13.0k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
397 | | |
398 | 468k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 398 | 436k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 398 | 1.35k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 398 | 6.35k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 398 | 8.12k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 398 | 3.46k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 398 | 13.0k | FunctionComparison() = default; |
|
399 | | |
400 | 1.21M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 400 | 1.18M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 400 | 915 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 400 | 4.10k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 400 | 15.1k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 400 | 2.16k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 400 | 10.5k | double execute_cost() const override { return 0.5; } |
|
401 | | |
402 | | private: |
403 | | template <PrimitiveType PT> |
404 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
405 | 191k | const ColumnPtr& col_right_ptr) const { |
406 | 191k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
407 | 191k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
408 | | |
409 | 191k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
410 | 191k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
411 | | |
412 | 191k | DCHECK(!(left_is_const && right_is_const)); |
413 | | |
414 | 191k | if (!left_is_const && !right_is_const) { |
415 | 8.62k | auto col_res = ColumnUInt8::create(); |
416 | | |
417 | 8.62k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
418 | 8.62k | vec_res.resize(col_left->get_data().size()); |
419 | 8.62k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
420 | 8.62k | typename PrimitiveTypeTraits<PT>::CppType, |
421 | 8.62k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
422 | 8.62k | vec_res); |
423 | | |
424 | 8.62k | block.replace_by_position(result, std::move(col_res)); |
425 | 182k | } else if (!left_is_const && right_is_const) { |
426 | 174k | auto col_res = ColumnUInt8::create(); |
427 | | |
428 | 174k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
429 | 174k | vec_res.resize(col_left->size()); |
430 | 174k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
431 | 174k | typename PrimitiveTypeTraits<PT>::CppType, |
432 | 174k | Op<PT>>::vector_constant(col_left->get_data(), |
433 | 174k | col_right->get_element(0), vec_res); |
434 | | |
435 | 174k | block.replace_by_position(result, std::move(col_res)); |
436 | 174k | } else if (left_is_const && !right_is_const) { |
437 | 7.97k | auto col_res = ColumnUInt8::create(); |
438 | | |
439 | 7.97k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
440 | 7.97k | vec_res.resize(col_right->size()); |
441 | 7.97k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
442 | 7.97k | typename PrimitiveTypeTraits<PT>::CppType, |
443 | 7.97k | Op<PT>>::constant_vector(col_left->get_element(0), |
444 | 7.97k | col_right->get_data(), vec_res); |
445 | | |
446 | 7.97k | block.replace_by_position(result, std::move(col_res)); |
447 | 7.97k | } |
448 | 191k | return Status::OK(); |
449 | 191k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.60k | const ColumnPtr& col_right_ptr) const { | 406 | 1.60k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.60k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.60k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.60k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.60k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.60k | if (!left_is_const && !right_is_const) { | 415 | 65 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 65 | vec_res.resize(col_left->get_data().size()); | 419 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 65 | vec_res); | 423 | | | 424 | 65 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.54k | } else if (!left_is_const && right_is_const) { | 426 | 1.54k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.54k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.54k | vec_res.resize(col_left->size()); | 430 | 1.54k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.54k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.54k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.54k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.54k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.54k | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.60k | return Status::OK(); | 449 | 1.60k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.54k | const ColumnPtr& col_right_ptr) const { | 406 | 1.54k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.54k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.54k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.54k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.54k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.54k | if (!left_is_const && !right_is_const) { | 415 | 358 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 358 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 358 | vec_res.resize(col_left->get_data().size()); | 419 | 358 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 358 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 358 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 358 | vec_res); | 423 | | | 424 | 358 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.18k | } else if (!left_is_const && right_is_const) { | 426 | 1.18k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.18k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.18k | vec_res.resize(col_left->size()); | 430 | 1.18k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.18k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.18k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.18k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.18k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.18k | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.54k | return Status::OK(); | 449 | 1.54k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 659 | const ColumnPtr& col_right_ptr) const { | 406 | 659 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 659 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 659 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 659 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 659 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 659 | if (!left_is_const && !right_is_const) { | 415 | 299 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 299 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 299 | vec_res.resize(col_left->get_data().size()); | 419 | 299 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 299 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 299 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 299 | vec_res); | 423 | | | 424 | 299 | block.replace_by_position(result, std::move(col_res)); | 425 | 360 | } else if (!left_is_const && right_is_const) { | 426 | 360 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 360 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 360 | vec_res.resize(col_left->size()); | 430 | 360 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 360 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 360 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 360 | col_right->get_element(0), vec_res); | 434 | | | 435 | 360 | block.replace_by_position(result, std::move(col_res)); | 436 | 360 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 659 | return Status::OK(); | 449 | 659 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 3 | const ColumnPtr& col_right_ptr) const { | 406 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 3 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 3 | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 3 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 3 | return Status::OK(); | 449 | 3 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 7.04k | const ColumnPtr& col_right_ptr) const { | 406 | 7.04k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 7.04k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 7.04k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 7.04k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 7.04k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 7.04k | if (!left_is_const && !right_is_const) { | 415 | 176 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 176 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 176 | vec_res.resize(col_left->get_data().size()); | 419 | 176 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 176 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 176 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 176 | vec_res); | 423 | | | 424 | 176 | block.replace_by_position(result, std::move(col_res)); | 425 | 6.86k | } else if (!left_is_const && right_is_const) { | 426 | 6.53k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 6.53k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 6.53k | vec_res.resize(col_left->size()); | 430 | 6.53k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 6.53k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 6.53k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 6.53k | col_right->get_element(0), vec_res); | 434 | | | 435 | 6.53k | block.replace_by_position(result, std::move(col_res)); | 436 | 6.53k | } else if (left_is_const && !right_is_const) { | 437 | 336 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 336 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 336 | vec_res.resize(col_right->size()); | 441 | 336 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 336 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 336 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 336 | col_right->get_data(), vec_res); | 445 | | | 446 | 336 | block.replace_by_position(result, std::move(col_res)); | 447 | 336 | } | 448 | 7.04k | return Status::OK(); | 449 | 7.04k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.49k | const ColumnPtr& col_right_ptr) const { | 406 | 1.49k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.49k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.49k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.49k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.49k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.49k | if (!left_is_const && !right_is_const) { | 415 | 94 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 94 | vec_res.resize(col_left->get_data().size()); | 419 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 94 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 94 | vec_res); | 423 | | | 424 | 94 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.40k | } else if (!left_is_const && right_is_const) { | 426 | 1.35k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.35k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.35k | vec_res.resize(col_left->size()); | 430 | 1.35k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.35k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.35k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.35k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.35k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.35k | } else if (left_is_const && !right_is_const) { | 437 | 48 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 48 | vec_res.resize(col_right->size()); | 441 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 48 | col_right->get_data(), vec_res); | 445 | | | 446 | 48 | block.replace_by_position(result, std::move(col_res)); | 447 | 48 | } | 448 | 1.49k | return Status::OK(); | 449 | 1.49k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 31.0k | const ColumnPtr& col_right_ptr) const { | 406 | 31.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 31.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 31.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 31.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 31.0k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 31.0k | if (!left_is_const && !right_is_const) { | 415 | 265 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 265 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 265 | vec_res.resize(col_left->get_data().size()); | 419 | 265 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 265 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 265 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 265 | vec_res); | 423 | | | 424 | 265 | block.replace_by_position(result, std::move(col_res)); | 425 | 30.8k | } else if (!left_is_const && right_is_const) { | 426 | 30.6k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 30.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 30.6k | vec_res.resize(col_left->size()); | 430 | 30.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 30.6k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 30.6k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 30.6k | col_right->get_element(0), vec_res); | 434 | | | 435 | 30.6k | block.replace_by_position(result, std::move(col_res)); | 436 | 30.6k | } else if (left_is_const && !right_is_const) { | 437 | 142 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 142 | vec_res.resize(col_right->size()); | 441 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 142 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 142 | col_right->get_data(), vec_res); | 445 | | | 446 | 142 | block.replace_by_position(result, std::move(col_res)); | 447 | 142 | } | 448 | 31.0k | return Status::OK(); | 449 | 31.0k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 24.0k | const ColumnPtr& col_right_ptr) const { | 406 | 24.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 24.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 24.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 24.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 24.0k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 24.0k | if (!left_is_const && !right_is_const) { | 415 | 284 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 284 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 284 | vec_res.resize(col_left->get_data().size()); | 419 | 284 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 284 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 284 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 284 | vec_res); | 423 | | | 424 | 284 | block.replace_by_position(result, std::move(col_res)); | 425 | 23.7k | } else if (!left_is_const && right_is_const) { | 426 | 22.6k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 22.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 22.6k | vec_res.resize(col_left->size()); | 430 | 22.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 22.6k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 22.6k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 22.6k | col_right->get_element(0), vec_res); | 434 | | | 435 | 22.6k | block.replace_by_position(result, std::move(col_res)); | 436 | 22.6k | } else if (left_is_const && !right_is_const) { | 437 | 1.09k | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 1.09k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 1.09k | vec_res.resize(col_right->size()); | 441 | 1.09k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 1.09k | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 1.09k | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 1.09k | col_right->get_data(), vec_res); | 445 | | | 446 | 1.09k | block.replace_by_position(result, std::move(col_res)); | 447 | 1.09k | } | 448 | 24.0k | return Status::OK(); | 449 | 24.0k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 156 | const ColumnPtr& col_right_ptr) const { | 406 | 156 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 156 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 156 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 156 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 156 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 156 | if (!left_is_const && !right_is_const) { | 415 | 83 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 83 | vec_res.resize(col_left->get_data().size()); | 419 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 83 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 83 | vec_res); | 423 | | | 424 | 83 | block.replace_by_position(result, std::move(col_res)); | 425 | 83 | } else if (!left_is_const && right_is_const) { | 426 | 57 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 57 | vec_res.resize(col_left->size()); | 430 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 57 | col_right->get_element(0), vec_res); | 434 | | | 435 | 57 | block.replace_by_position(result, std::move(col_res)); | 436 | 57 | } else if (left_is_const && !right_is_const) { | 437 | 16 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 16 | vec_res.resize(col_right->size()); | 441 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 16 | col_right->get_data(), vec_res); | 445 | | | 446 | 16 | block.replace_by_position(result, std::move(col_res)); | 447 | 16 | } | 448 | 156 | return Status::OK(); | 449 | 156 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 30 | const ColumnPtr& col_right_ptr) const { | 406 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 30 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 30 | if (!left_is_const && !right_is_const) { | 415 | 16 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 16 | vec_res.resize(col_left->get_data().size()); | 419 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 16 | vec_res); | 423 | | | 424 | 16 | block.replace_by_position(result, std::move(col_res)); | 425 | 16 | } else if (!left_is_const && right_is_const) { | 426 | 14 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 14 | vec_res.resize(col_left->size()); | 430 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 14 | col_right->get_element(0), vec_res); | 434 | | | 435 | 14 | block.replace_by_position(result, std::move(col_res)); | 436 | 14 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 30 | return Status::OK(); | 449 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 30 | const ColumnPtr& col_right_ptr) const { | 406 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 30 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 30 | if (!left_is_const && !right_is_const) { | 415 | 24 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 24 | vec_res.resize(col_left->get_data().size()); | 419 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 24 | vec_res); | 423 | | | 424 | 24 | block.replace_by_position(result, std::move(col_res)); | 425 | 24 | } else if (!left_is_const && right_is_const) { | 426 | 6 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 6 | vec_res.resize(col_left->size()); | 430 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 6 | col_right->get_element(0), vec_res); | 434 | | | 435 | 6 | block.replace_by_position(result, std::move(col_res)); | 436 | 6 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 30 | return Status::OK(); | 449 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 121 | const ColumnPtr& col_right_ptr) const { | 406 | 121 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 121 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 121 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 121 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 121 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 121 | if (!left_is_const && !right_is_const) { | 415 | 117 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 117 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 117 | vec_res.resize(col_left->get_data().size()); | 419 | 117 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 117 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 117 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 117 | vec_res); | 423 | | | 424 | 117 | block.replace_by_position(result, std::move(col_res)); | 425 | 117 | } else if (!left_is_const && right_is_const) { | 426 | 4 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 4 | vec_res.resize(col_left->size()); | 430 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 4 | col_right->get_element(0), vec_res); | 434 | | | 435 | 4 | block.replace_by_position(result, std::move(col_res)); | 436 | 4 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 121 | return Status::OK(); | 449 | 121 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 406 | const ColumnPtr& col_right_ptr) const { | 406 | 406 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 406 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 406 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 406 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 406 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 406 | if (!left_is_const && !right_is_const) { | 415 | 117 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 117 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 117 | vec_res.resize(col_left->get_data().size()); | 419 | 117 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 117 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 117 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 117 | vec_res); | 423 | | | 424 | 117 | block.replace_by_position(result, std::move(col_res)); | 425 | 289 | } else if (!left_is_const && right_is_const) { | 426 | 289 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 289 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 289 | vec_res.resize(col_left->size()); | 430 | 289 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 289 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 289 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 289 | col_right->get_element(0), vec_res); | 434 | | | 435 | 289 | block.replace_by_position(result, std::move(col_res)); | 436 | 289 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 406 | return Status::OK(); | 449 | 406 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 4 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 4 | vec_res.resize(col_left->get_data().size()); | 419 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 4 | vec_res); | 423 | | | 424 | 4 | block.replace_by_position(result, std::move(col_res)); | 425 | 4 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 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 | 405 | 82 | const ColumnPtr& col_right_ptr) const { | 406 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 82 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 82 | if (!left_is_const && !right_is_const) { | 415 | 39 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 39 | vec_res.resize(col_left->get_data().size()); | 419 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 39 | vec_res); | 423 | | | 424 | 39 | block.replace_by_position(result, std::move(col_res)); | 425 | 43 | } else if (!left_is_const && right_is_const) { | 426 | 41 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 41 | vec_res.resize(col_left->size()); | 430 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 41 | col_right->get_element(0), vec_res); | 434 | | | 435 | 41 | block.replace_by_position(result, std::move(col_res)); | 436 | 41 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 82 | return Status::OK(); | 449 | 82 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2 | const ColumnPtr& col_right_ptr) const { | 406 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 2 | } else if (!left_is_const && right_is_const) { | 426 | 2 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 2 | vec_res.resize(col_left->size()); | 430 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 2 | col_right->get_element(0), vec_res); | 434 | | | 435 | 2 | block.replace_by_position(result, std::move(col_res)); | 436 | 2 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2 | return Status::OK(); | 449 | 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 | 405 | 98 | const ColumnPtr& col_right_ptr) const { | 406 | 98 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 98 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 98 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 98 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 98 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 98 | if (!left_is_const && !right_is_const) { | 415 | 54 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 54 | vec_res.resize(col_left->get_data().size()); | 419 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 54 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 54 | vec_res); | 423 | | | 424 | 54 | block.replace_by_position(result, std::move(col_res)); | 425 | 54 | } else if (!left_is_const && right_is_const) { | 426 | 44 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 44 | vec_res.resize(col_left->size()); | 430 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 44 | col_right->get_element(0), vec_res); | 434 | | | 435 | 44 | block.replace_by_position(result, std::move(col_res)); | 436 | 44 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 98 | return Status::OK(); | 449 | 98 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 26 | const ColumnPtr& col_right_ptr) const { | 406 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 26 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 26 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 26 | } else if (!left_is_const && right_is_const) { | 426 | 26 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 26 | vec_res.resize(col_left->size()); | 430 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 26 | col_right->get_element(0), vec_res); | 434 | | | 435 | 26 | block.replace_by_position(result, std::move(col_res)); | 436 | 26 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 26 | return Status::OK(); | 449 | 26 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 3.56k | const ColumnPtr& col_right_ptr) const { | 406 | 3.56k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 3.56k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 3.56k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 3.56k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 3.56k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 3.56k | if (!left_is_const && !right_is_const) { | 415 | 790 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 790 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 790 | vec_res.resize(col_left->get_data().size()); | 419 | 790 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 790 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 790 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 790 | vec_res); | 423 | | | 424 | 790 | block.replace_by_position(result, std::move(col_res)); | 425 | 2.77k | } else if (!left_is_const && right_is_const) { | 426 | 2.77k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 2.77k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 2.77k | vec_res.resize(col_left->size()); | 430 | 2.77k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 2.77k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 2.77k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 2.77k | col_right->get_element(0), vec_res); | 434 | | | 435 | 2.77k | block.replace_by_position(result, std::move(col_res)); | 436 | 2.77k | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 3.56k | return Status::OK(); | 449 | 3.56k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 3.07k | const ColumnPtr& col_right_ptr) const { | 406 | 3.07k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 3.07k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 3.07k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 3.07k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 3.07k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 3.07k | if (!left_is_const && !right_is_const) { | 415 | 362 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 362 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 362 | vec_res.resize(col_left->get_data().size()); | 419 | 362 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 362 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 362 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 362 | vec_res); | 423 | | | 424 | 362 | block.replace_by_position(result, std::move(col_res)); | 425 | 2.71k | } else if (!left_is_const && right_is_const) { | 426 | 1.93k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.93k | vec_res.resize(col_left->size()); | 430 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.93k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.93k | } else if (left_is_const && !right_is_const) { | 437 | 781 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 781 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 781 | vec_res.resize(col_right->size()); | 441 | 781 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 781 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 781 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 781 | col_right->get_data(), vec_res); | 445 | | | 446 | 781 | block.replace_by_position(result, std::move(col_res)); | 447 | 781 | } | 448 | 3.07k | return Status::OK(); | 449 | 3.07k | } |
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 | 405 | 48 | const ColumnPtr& col_right_ptr) const { | 406 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 48 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 48 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 28 | } else if (!left_is_const && right_is_const) { | 426 | 28 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 28 | vec_res.resize(col_left->size()); | 430 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 28 | col_right->get_element(0), vec_res); | 434 | | | 435 | 28 | block.replace_by_position(result, std::move(col_res)); | 436 | 28 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 48 | return Status::OK(); | 449 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 60 | const ColumnPtr& col_right_ptr) const { | 406 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 60 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 60 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 40 | } else if (!left_is_const && right_is_const) { | 426 | 40 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 40 | vec_res.resize(col_left->size()); | 430 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 40 | col_right->get_element(0), vec_res); | 434 | | | 435 | 40 | block.replace_by_position(result, std::move(col_res)); | 436 | 40 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 60 | return Status::OK(); | 449 | 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 | 405 | 1.39k | const ColumnPtr& col_right_ptr) const { | 406 | 1.39k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.39k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.39k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.39k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.39k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.39k | if (!left_is_const && !right_is_const) { | 415 | 1.24k | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1.24k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1.24k | vec_res.resize(col_left->get_data().size()); | 419 | 1.24k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1.24k | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1.24k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1.24k | vec_res); | 423 | | | 424 | 1.24k | block.replace_by_position(result, std::move(col_res)); | 425 | 1.24k | } else if (!left_is_const && right_is_const) { | 426 | 159 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 159 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 159 | vec_res.resize(col_left->size()); | 430 | 159 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 159 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 159 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 159 | col_right->get_element(0), vec_res); | 434 | | | 435 | 159 | block.replace_by_position(result, std::move(col_res)); | 436 | 159 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.39k | return Status::OK(); | 449 | 1.39k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 94 | const ColumnPtr& col_right_ptr) const { | 406 | 94 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 94 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 94 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 94 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 94 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 94 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 94 | } else if (!left_is_const && right_is_const) { | 426 | 94 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 94 | vec_res.resize(col_left->size()); | 430 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 94 | col_right->get_element(0), vec_res); | 434 | | | 435 | 94 | block.replace_by_position(result, std::move(col_res)); | 436 | 94 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 94 | return Status::OK(); | 449 | 94 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 2 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 2 | vec_res.resize(col_left->get_data().size()); | 419 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 2 | vec_res); | 423 | | | 424 | 2 | block.replace_by_position(result, std::move(col_res)); | 425 | 18.4E | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 18.4E | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.47k | const ColumnPtr& col_right_ptr) const { | 406 | 1.47k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.47k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.47k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.47k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.47k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.47k | if (!left_is_const && !right_is_const) { | 415 | 38 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 38 | vec_res.resize(col_left->get_data().size()); | 419 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 38 | vec_res); | 423 | | | 424 | 38 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.44k | } else if (!left_is_const && right_is_const) { | 426 | 1.17k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.17k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.17k | vec_res.resize(col_left->size()); | 430 | 1.17k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.17k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.17k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.17k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.17k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.17k | } else if (left_is_const && !right_is_const) { | 437 | 264 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 264 | vec_res.resize(col_right->size()); | 441 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 264 | col_right->get_data(), vec_res); | 445 | | | 446 | 264 | block.replace_by_position(result, std::move(col_res)); | 447 | 264 | } | 448 | 1.47k | return Status::OK(); | 449 | 1.47k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.96k | const ColumnPtr& col_right_ptr) const { | 406 | 1.96k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.96k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.96k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.96k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.96k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.96k | if (!left_is_const && !right_is_const) { | 415 | 110 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 110 | vec_res.resize(col_left->get_data().size()); | 419 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 110 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 110 | vec_res); | 423 | | | 424 | 110 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.85k | } else if (!left_is_const && right_is_const) { | 426 | 1.60k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.60k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.60k | vec_res.resize(col_left->size()); | 430 | 1.60k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.60k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.60k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.60k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.60k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.60k | } else if (left_is_const && !right_is_const) { | 437 | 251 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 251 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 251 | vec_res.resize(col_right->size()); | 441 | 251 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 251 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 251 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 251 | col_right->get_data(), vec_res); | 445 | | | 446 | 251 | block.replace_by_position(result, std::move(col_res)); | 447 | 251 | } | 448 | 1.96k | return Status::OK(); | 449 | 1.96k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 28.1k | const ColumnPtr& col_right_ptr) const { | 406 | 28.1k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 28.1k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 28.1k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 28.1k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 28.1k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 28.1k | if (!left_is_const && !right_is_const) { | 415 | 47 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 47 | vec_res.resize(col_left->get_data().size()); | 419 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 47 | vec_res); | 423 | | | 424 | 47 | block.replace_by_position(result, std::move(col_res)); | 425 | 28.1k | } else if (!left_is_const && right_is_const) { | 426 | 24.8k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 24.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 24.8k | vec_res.resize(col_left->size()); | 430 | 24.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 24.8k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 24.8k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 24.8k | col_right->get_element(0), vec_res); | 434 | | | 435 | 24.8k | block.replace_by_position(result, std::move(col_res)); | 436 | 24.8k | } else if (left_is_const && !right_is_const) { | 437 | 3.33k | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 3.33k | vec_res.resize(col_right->size()); | 441 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 3.33k | col_right->get_data(), vec_res); | 445 | | | 446 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 447 | 3.33k | } | 448 | 28.1k | return Status::OK(); | 449 | 28.1k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 13.8k | const ColumnPtr& col_right_ptr) const { | 406 | 13.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 13.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 13.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 13.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 13.8k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 13.8k | if (!left_is_const && !right_is_const) { | 415 | 62 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 62 | vec_res.resize(col_left->get_data().size()); | 419 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 62 | vec_res); | 423 | | | 424 | 62 | block.replace_by_position(result, std::move(col_res)); | 425 | 13.8k | } else if (!left_is_const && right_is_const) { | 426 | 13.3k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 13.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 13.3k | vec_res.resize(col_left->size()); | 430 | 13.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 13.3k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 13.3k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 13.3k | col_right->get_element(0), vec_res); | 434 | | | 435 | 13.3k | block.replace_by_position(result, std::move(col_res)); | 436 | 13.3k | } else if (left_is_const && !right_is_const) { | 437 | 494 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 494 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 494 | vec_res.resize(col_right->size()); | 441 | 494 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 494 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 494 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 494 | col_right->get_data(), vec_res); | 445 | | | 446 | 494 | block.replace_by_position(result, std::move(col_res)); | 447 | 494 | } | 448 | 13.8k | return Status::OK(); | 449 | 13.8k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 256 | const ColumnPtr& col_right_ptr) const { | 406 | 256 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 256 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 256 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 256 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 256 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 256 | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 253 | } else if (!left_is_const && right_is_const) { | 426 | 201 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 201 | vec_res.resize(col_left->size()); | 430 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 201 | col_right->get_element(0), vec_res); | 434 | | | 435 | 201 | block.replace_by_position(result, std::move(col_res)); | 436 | 201 | } else if (left_is_const && !right_is_const) { | 437 | 52 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 52 | vec_res.resize(col_right->size()); | 441 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 52 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 52 | col_right->get_data(), vec_res); | 445 | | | 446 | 52 | block.replace_by_position(result, std::move(col_res)); | 447 | 52 | } | 448 | 256 | return Status::OK(); | 449 | 256 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 3 | } else if (!left_is_const && right_is_const) { | 426 | 3 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 3 | vec_res.resize(col_left->size()); | 430 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 3 | col_right->get_element(0), vec_res); | 434 | | | 435 | 3 | block.replace_by_position(result, std::move(col_res)); | 436 | 3 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 236 | const ColumnPtr& col_right_ptr) const { | 406 | 236 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 236 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 236 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 236 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 236 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 236 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 216 | } else if (!left_is_const && right_is_const) { | 426 | 216 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 216 | vec_res.resize(col_left->size()); | 430 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 216 | col_right->get_element(0), vec_res); | 434 | | | 435 | 216 | block.replace_by_position(result, std::move(col_res)); | 436 | 216 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 236 | return Status::OK(); | 449 | 236 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.48k | const ColumnPtr& col_right_ptr) const { | 406 | 2.48k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.48k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.48k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.48k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.48k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.48k | if (!left_is_const && !right_is_const) { | 415 | 26 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 26 | vec_res.resize(col_left->get_data().size()); | 419 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 26 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 26 | vec_res); | 423 | | | 424 | 26 | block.replace_by_position(result, std::move(col_res)); | 425 | 2.45k | } else if (!left_is_const && right_is_const) { | 426 | 2.45k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 2.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 2.45k | vec_res.resize(col_left->size()); | 430 | 2.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 2.45k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 2.45k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 2.45k | col_right->get_element(0), vec_res); | 434 | | | 435 | 2.45k | block.replace_by_position(result, std::move(col_res)); | 436 | 2.45k | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2.48k | return Status::OK(); | 449 | 2.48k | } |
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 | 405 | 204 | const ColumnPtr& col_right_ptr) const { | 406 | 204 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 204 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 204 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 204 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 204 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 204 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 204 | } else if (!left_is_const && right_is_const) { | 426 | 204 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 204 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 204 | vec_res.resize(col_left->size()); | 430 | 204 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 204 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 204 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 204 | col_right->get_element(0), vec_res); | 434 | | | 435 | 204 | block.replace_by_position(result, std::move(col_res)); | 436 | 204 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 204 | return Status::OK(); | 449 | 204 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.57k | const ColumnPtr& col_right_ptr) const { | 406 | 1.57k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.57k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.57k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.57k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.57k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.57k | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.57k | } else if (!left_is_const && right_is_const) { | 426 | 1.57k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.57k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.57k | vec_res.resize(col_left->size()); | 430 | 1.57k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.57k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.57k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.57k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.57k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.57k | } else if (left_is_const && !right_is_const) { | 437 | 6 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 6 | vec_res.resize(col_right->size()); | 441 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 6 | col_right->get_data(), vec_res); | 445 | | | 446 | 6 | block.replace_by_position(result, std::move(col_res)); | 447 | 6 | } | 448 | 1.57k | return Status::OK(); | 449 | 1.57k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 777 | const ColumnPtr& col_right_ptr) const { | 406 | 777 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 777 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 777 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 777 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 777 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 777 | if (!left_is_const && !right_is_const) { | 415 | 6 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 6 | vec_res.resize(col_left->get_data().size()); | 419 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 6 | vec_res); | 423 | | | 424 | 6 | block.replace_by_position(result, std::move(col_res)); | 425 | 771 | } else if (!left_is_const && right_is_const) { | 426 | 771 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 771 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 771 | vec_res.resize(col_left->size()); | 430 | 771 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 771 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 771 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 771 | col_right->get_element(0), vec_res); | 434 | | | 435 | 771 | block.replace_by_position(result, std::move(col_res)); | 436 | 771 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 777 | return Status::OK(); | 449 | 777 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2 | const ColumnPtr& col_right_ptr) const { | 406 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 2 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 2 | vec_res.resize(col_left->get_data().size()); | 419 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 2 | vec_res); | 423 | | | 424 | 2 | block.replace_by_position(result, std::move(col_res)); | 425 | 2 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2 | return Status::OK(); | 449 | 2 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 37 | const ColumnPtr& col_right_ptr) const { | 406 | 37 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 37 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 37 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 37 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 37 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 37 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 37 | } else if (!left_is_const && right_is_const) { | 426 | 37 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 37 | vec_res.resize(col_left->size()); | 430 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 37 | col_right->get_element(0), vec_res); | 434 | | | 435 | 37 | block.replace_by_position(result, std::move(col_res)); | 436 | 37 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 37 | return Status::OK(); | 449 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 41 | const ColumnPtr& col_right_ptr) const { | 406 | 41 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 41 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 41 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 41 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 41 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 41 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 41 | } else if (!left_is_const && right_is_const) { | 426 | 41 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 41 | vec_res.resize(col_left->size()); | 430 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 41 | col_right->get_element(0), vec_res); | 434 | | | 435 | 41 | block.replace_by_position(result, std::move(col_res)); | 436 | 41 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 41 | return Status::OK(); | 449 | 41 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 12.9k | const ColumnPtr& col_right_ptr) const { | 406 | 12.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 12.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 12.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 12.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 12.9k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 12.9k | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 12.9k | } else if (!left_is_const && right_is_const) { | 426 | 12.9k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 12.9k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 12.9k | vec_res.resize(col_left->size()); | 430 | 12.9k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 12.9k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 12.9k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 12.9k | col_right->get_element(0), vec_res); | 434 | | | 435 | 12.9k | block.replace_by_position(result, std::move(col_res)); | 436 | 12.9k | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 12.9k | return Status::OK(); | 449 | 12.9k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 903 | const ColumnPtr& col_right_ptr) const { | 406 | 903 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 903 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 903 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 903 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 903 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 903 | if (!left_is_const && !right_is_const) { | 415 | 8 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 8 | vec_res.resize(col_left->get_data().size()); | 419 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 8 | vec_res); | 423 | | | 424 | 8 | block.replace_by_position(result, std::move(col_res)); | 425 | 895 | } else if (!left_is_const && right_is_const) { | 426 | 895 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 895 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 895 | vec_res.resize(col_left->size()); | 430 | 895 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 895 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 895 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 895 | col_right->get_element(0), vec_res); | 434 | | | 435 | 895 | block.replace_by_position(result, std::move(col_res)); | 436 | 895 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 903 | return Status::OK(); | 449 | 903 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 46 | const ColumnPtr& col_right_ptr) const { | 406 | 46 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 46 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 46 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 46 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 46 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 46 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 46 | } else if (!left_is_const && right_is_const) { | 426 | 46 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 46 | vec_res.resize(col_left->size()); | 430 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 46 | col_right->get_element(0), vec_res); | 434 | | | 435 | 46 | block.replace_by_position(result, std::move(col_res)); | 436 | 46 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 46 | return Status::OK(); | 449 | 46 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 11 | const ColumnPtr& col_right_ptr) const { | 406 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 11 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 11 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 10 | } else if (!left_is_const && right_is_const) { | 426 | 10 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 10 | vec_res.resize(col_left->size()); | 430 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 10 | col_right->get_element(0), vec_res); | 434 | | | 435 | 10 | block.replace_by_position(result, std::move(col_res)); | 436 | 10 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 11 | return Status::OK(); | 449 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 228 | const ColumnPtr& col_right_ptr) const { | 406 | 228 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 228 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 228 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 228 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 228 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 228 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 208 | } else if (!left_is_const && right_is_const) { | 426 | 208 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 208 | vec_res.resize(col_left->size()); | 430 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 208 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 208 | col_right->get_element(0), vec_res); | 434 | | | 435 | 208 | block.replace_by_position(result, std::move(col_res)); | 436 | 208 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 228 | return Status::OK(); | 449 | 228 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 139 | const ColumnPtr& col_right_ptr) const { | 406 | 139 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 139 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 139 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 139 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 139 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 139 | if (!left_is_const && !right_is_const) { | 415 | 22 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 22 | vec_res.resize(col_left->get_data().size()); | 419 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 22 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 22 | vec_res); | 423 | | | 424 | 22 | block.replace_by_position(result, std::move(col_res)); | 425 | 117 | } else if (!left_is_const && right_is_const) { | 426 | 117 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 117 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 117 | vec_res.resize(col_left->size()); | 430 | 117 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 117 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 117 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 117 | col_right->get_element(0), vec_res); | 434 | | | 435 | 117 | block.replace_by_position(result, std::move(col_res)); | 436 | 117 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 139 | return Status::OK(); | 449 | 139 | } |
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 | 405 | 91 | const ColumnPtr& col_right_ptr) const { | 406 | 91 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 91 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 91 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 91 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 91 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 91 | if (!left_is_const && !right_is_const) { | 415 | 91 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 91 | vec_res.resize(col_left->get_data().size()); | 419 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 91 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 91 | vec_res); | 423 | | | 424 | 91 | block.replace_by_position(result, std::move(col_res)); | 425 | 91 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 91 | return Status::OK(); | 449 | 91 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.24k | const ColumnPtr& col_right_ptr) const { | 406 | 2.24k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.24k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.24k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.24k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.24k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.24k | if (!left_is_const && !right_is_const) { | 415 | 1.77k | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1.77k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1.77k | vec_res.resize(col_left->get_data().size()); | 419 | 1.77k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1.77k | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1.77k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1.77k | vec_res); | 423 | | | 424 | 1.77k | block.replace_by_position(result, std::move(col_res)); | 425 | 1.77k | } else if (!left_is_const && right_is_const) { | 426 | 468 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 468 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 468 | vec_res.resize(col_left->size()); | 430 | 468 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 468 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 468 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 468 | col_right->get_element(0), vec_res); | 434 | | | 435 | 468 | block.replace_by_position(result, std::move(col_res)); | 436 | 18.4E | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2.24k | return Status::OK(); | 449 | 2.24k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 658 | const ColumnPtr& col_right_ptr) const { | 406 | 658 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 658 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 658 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 658 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 658 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 658 | if (!left_is_const && !right_is_const) { | 415 | 285 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 285 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 285 | vec_res.resize(col_left->get_data().size()); | 419 | 285 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 285 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 285 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 285 | vec_res); | 423 | | | 424 | 285 | block.replace_by_position(result, std::move(col_res)); | 425 | 373 | } else if (!left_is_const && right_is_const) { | 426 | 373 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 373 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 373 | vec_res.resize(col_left->size()); | 430 | 373 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 373 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 373 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 373 | col_right->get_element(0), vec_res); | 434 | | | 435 | 373 | block.replace_by_position(result, std::move(col_res)); | 436 | 373 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 658 | return Status::OK(); | 449 | 658 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 3 | const ColumnPtr& col_right_ptr) const { | 406 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 3 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 3 | if (!left_is_const && !right_is_const) { | 415 | 2 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 2 | vec_res.resize(col_left->get_data().size()); | 419 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 2 | vec_res); | 423 | | | 424 | 2 | block.replace_by_position(result, std::move(col_res)); | 425 | 2 | } else if (!left_is_const && right_is_const) { | 426 | 1 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1 | vec_res.resize(col_left->size()); | 430 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1 | col_right->get_element(0), vec_res); | 434 | | | 435 | 1 | block.replace_by_position(result, std::move(col_res)); | 436 | 1 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 3 | return Status::OK(); | 449 | 3 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.18k | const ColumnPtr& col_right_ptr) const { | 406 | 2.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.18k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.18k | if (!left_is_const && !right_is_const) { | 415 | 159 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 159 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 159 | vec_res.resize(col_left->get_data().size()); | 419 | 159 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 159 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 159 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 159 | vec_res); | 423 | | | 424 | 159 | block.replace_by_position(result, std::move(col_res)); | 425 | 2.02k | } else if (!left_is_const && right_is_const) { | 426 | 1.73k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.73k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.73k | vec_res.resize(col_left->size()); | 430 | 1.73k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.73k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.73k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.73k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.73k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.73k | } else if (left_is_const && !right_is_const) { | 437 | 288 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 288 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 288 | vec_res.resize(col_right->size()); | 441 | 288 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 288 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 288 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 288 | col_right->get_data(), vec_res); | 445 | | | 446 | 288 | block.replace_by_position(result, std::move(col_res)); | 447 | 288 | } | 448 | 2.18k | return Status::OK(); | 449 | 2.18k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 404 | const ColumnPtr& col_right_ptr) const { | 406 | 404 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 404 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 404 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 404 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 404 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 404 | if (!left_is_const && !right_is_const) { | 415 | 136 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 136 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 136 | vec_res.resize(col_left->get_data().size()); | 419 | 136 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 136 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 136 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 136 | vec_res); | 423 | | | 424 | 136 | block.replace_by_position(result, std::move(col_res)); | 425 | 268 | } else if (!left_is_const && right_is_const) { | 426 | 268 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 268 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 268 | vec_res.resize(col_left->size()); | 430 | 268 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 268 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 268 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 268 | col_right->get_element(0), vec_res); | 434 | | | 435 | 268 | block.replace_by_position(result, std::move(col_res)); | 436 | 268 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 404 | return Status::OK(); | 449 | 404 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 6.23k | const ColumnPtr& col_right_ptr) const { | 406 | 6.23k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 6.23k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 6.23k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 6.23k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 6.23k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 6.23k | if (!left_is_const && !right_is_const) { | 415 | 159 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 159 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 159 | vec_res.resize(col_left->get_data().size()); | 419 | 159 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 159 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 159 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 159 | vec_res); | 423 | | | 424 | 159 | block.replace_by_position(result, std::move(col_res)); | 425 | 6.07k | } else if (!left_is_const && right_is_const) { | 426 | 5.95k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 5.95k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 5.95k | vec_res.resize(col_left->size()); | 430 | 5.95k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 5.95k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 5.95k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 5.95k | col_right->get_element(0), vec_res); | 434 | | | 435 | 5.95k | block.replace_by_position(result, std::move(col_res)); | 436 | 5.95k | } else if (left_is_const && !right_is_const) { | 437 | 121 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 121 | vec_res.resize(col_right->size()); | 441 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 121 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 121 | col_right->get_data(), vec_res); | 445 | | | 446 | 121 | block.replace_by_position(result, std::move(col_res)); | 447 | 121 | } | 448 | 6.23k | return Status::OK(); | 449 | 6.23k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.70k | const ColumnPtr& col_right_ptr) const { | 406 | 1.70k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.70k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.70k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.70k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.70k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.70k | if (!left_is_const && !right_is_const) { | 415 | 213 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 213 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 213 | vec_res.resize(col_left->get_data().size()); | 419 | 213 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 213 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 213 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 213 | vec_res); | 423 | | | 424 | 213 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.48k | } else if (!left_is_const && right_is_const) { | 426 | 1.41k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.41k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.41k | vec_res.resize(col_left->size()); | 430 | 1.41k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.41k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.41k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.41k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.41k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.41k | } else if (left_is_const && !right_is_const) { | 437 | 75 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 75 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 75 | vec_res.resize(col_right->size()); | 441 | 75 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 75 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 75 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 75 | col_right->get_data(), vec_res); | 445 | | | 446 | 75 | block.replace_by_position(result, std::move(col_res)); | 447 | 75 | } | 448 | 1.70k | return Status::OK(); | 449 | 1.70k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 267 | const ColumnPtr& col_right_ptr) const { | 406 | 267 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 267 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 267 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 267 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 267 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 267 | if (!left_is_const && !right_is_const) { | 415 | 141 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 141 | vec_res.resize(col_left->get_data().size()); | 419 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 141 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 141 | vec_res); | 423 | | | 424 | 141 | block.replace_by_position(result, std::move(col_res)); | 425 | 141 | } else if (!left_is_const && right_is_const) { | 426 | 46 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 46 | vec_res.resize(col_left->size()); | 430 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 46 | col_right->get_element(0), vec_res); | 434 | | | 435 | 46 | block.replace_by_position(result, std::move(col_res)); | 436 | 80 | } else if (left_is_const && !right_is_const) { | 437 | 80 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 80 | vec_res.resize(col_right->size()); | 441 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 80 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 80 | col_right->get_data(), vec_res); | 445 | | | 446 | 80 | block.replace_by_position(result, std::move(col_res)); | 447 | 80 | } | 448 | 267 | return Status::OK(); | 449 | 267 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 17 | const ColumnPtr& col_right_ptr) const { | 406 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 17 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 18 | if (!left_is_const && !right_is_const) { | 415 | 16 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 16 | vec_res.resize(col_left->get_data().size()); | 419 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 16 | vec_res); | 423 | | | 424 | 16 | block.replace_by_position(result, std::move(col_res)); | 425 | 16 | } else if (!left_is_const && right_is_const) { | 426 | 2 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 2 | vec_res.resize(col_left->size()); | 430 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 2 | col_right->get_element(0), vec_res); | 434 | | | 435 | 2 | block.replace_by_position(result, std::move(col_res)); | 436 | 18.4E | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 17 | return Status::OK(); | 449 | 17 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 16 | const ColumnPtr& col_right_ptr) const { | 406 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 16 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 16 | if (!left_is_const && !right_is_const) { | 415 | 16 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 16 | vec_res.resize(col_left->get_data().size()); | 419 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 16 | vec_res); | 423 | | | 424 | 16 | block.replace_by_position(result, std::move(col_res)); | 425 | 16 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 16 | return Status::OK(); | 449 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 181 | const ColumnPtr& col_right_ptr) const { | 406 | 181 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 181 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 181 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 181 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 181 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 181 | if (!left_is_const && !right_is_const) { | 415 | 155 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 155 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 155 | vec_res.resize(col_left->get_data().size()); | 419 | 155 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 155 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 155 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 155 | vec_res); | 423 | | | 424 | 155 | block.replace_by_position(result, std::move(col_res)); | 425 | 155 | } else if (!left_is_const && right_is_const) { | 426 | 26 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 26 | vec_res.resize(col_left->size()); | 430 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 26 | col_right->get_element(0), vec_res); | 434 | | | 435 | 26 | block.replace_by_position(result, std::move(col_res)); | 436 | 26 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 181 | return Status::OK(); | 449 | 181 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 384 | const ColumnPtr& col_right_ptr) const { | 406 | 384 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 384 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 384 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 384 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 384 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 386 | if (!left_is_const && !right_is_const) { | 415 | 160 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 160 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 160 | vec_res.resize(col_left->get_data().size()); | 419 | 160 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 160 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 160 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 160 | vec_res); | 423 | | | 424 | 160 | block.replace_by_position(result, std::move(col_res)); | 425 | 226 | } else if (!left_is_const && right_is_const) { | 426 | 226 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 226 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 226 | vec_res.resize(col_left->size()); | 430 | 226 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 226 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 226 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 226 | col_right->get_element(0), vec_res); | 434 | | | 435 | 226 | block.replace_by_position(result, std::move(col_res)); | 436 | 18.4E | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 384 | return Status::OK(); | 449 | 384 | } |
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 | 405 | 480 | const ColumnPtr& col_right_ptr) const { | 406 | 480 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 480 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 480 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 480 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 480 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 480 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 480 | } else if (!left_is_const && right_is_const) { | 426 | 480 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 480 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 480 | vec_res.resize(col_left->size()); | 430 | 480 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 480 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 480 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 480 | col_right->get_element(0), vec_res); | 434 | | | 435 | 480 | block.replace_by_position(result, std::move(col_res)); | 436 | 480 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 480 | return Status::OK(); | 449 | 480 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 10.7k | const ColumnPtr& col_right_ptr) const { | 406 | 10.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 10.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 10.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 10.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 10.7k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 10.7k | if (!left_is_const && !right_is_const) { | 415 | 414 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 414 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 414 | vec_res.resize(col_left->get_data().size()); | 419 | 414 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 414 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 414 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 414 | vec_res); | 423 | | | 424 | 414 | block.replace_by_position(result, std::move(col_res)); | 425 | 10.3k | } else if (!left_is_const && right_is_const) { | 426 | 10.3k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 10.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 10.3k | vec_res.resize(col_left->size()); | 430 | 10.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 10.3k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 10.3k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 10.3k | col_right->get_element(0), vec_res); | 434 | | | 435 | 10.3k | block.replace_by_position(result, std::move(col_res)); | 436 | 10.3k | } else if (left_is_const && !right_is_const) { | 437 | 5 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 5 | vec_res.resize(col_right->size()); | 441 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 5 | col_right->get_data(), vec_res); | 445 | | | 446 | 5 | block.replace_by_position(result, std::move(col_res)); | 447 | 5 | } | 448 | 10.7k | return Status::OK(); | 449 | 10.7k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 631 | const ColumnPtr& col_right_ptr) const { | 406 | 631 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 631 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 631 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 631 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 631 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 631 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 631 | } else if (!left_is_const && right_is_const) { | 426 | 631 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 631 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 631 | vec_res.resize(col_left->size()); | 430 | 631 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 631 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 631 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 631 | col_right->get_element(0), vec_res); | 434 | | | 435 | 631 | block.replace_by_position(result, std::move(col_res)); | 436 | 631 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 631 | return Status::OK(); | 449 | 631 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2 | const ColumnPtr& col_right_ptr) const { | 406 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 2 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 2 | vec_res.resize(col_left->get_data().size()); | 419 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 2 | vec_res); | 423 | | | 424 | 2 | block.replace_by_position(result, std::move(col_res)); | 425 | 2 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2 | return Status::OK(); | 449 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 261 | const ColumnPtr& col_right_ptr) const { | 406 | 261 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 261 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 261 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 261 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 261 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 261 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 260 | } else if (!left_is_const && right_is_const) { | 426 | 260 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 260 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 260 | vec_res.resize(col_left->size()); | 430 | 260 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 260 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 260 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 260 | col_right->get_element(0), vec_res); | 434 | | | 435 | 260 | block.replace_by_position(result, std::move(col_res)); | 436 | 260 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 261 | return Status::OK(); | 449 | 261 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 211 | const ColumnPtr& col_right_ptr) const { | 406 | 211 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 211 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 211 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 211 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 211 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 211 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 211 | } else if (!left_is_const && right_is_const) { | 426 | 211 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 211 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 211 | vec_res.resize(col_left->size()); | 430 | 211 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 211 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 211 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 211 | col_right->get_element(0), vec_res); | 434 | | | 435 | 211 | block.replace_by_position(result, std::move(col_res)); | 436 | 211 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 211 | return Status::OK(); | 449 | 211 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 21.1k | const ColumnPtr& col_right_ptr) const { | 406 | 21.1k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 21.1k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 21.1k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 21.1k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 21.1k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 21.1k | if (!left_is_const && !right_is_const) { | 415 | 23 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 23 | vec_res.resize(col_left->get_data().size()); | 419 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 23 | vec_res); | 423 | | | 424 | 23 | block.replace_by_position(result, std::move(col_res)); | 425 | 21.0k | } else if (!left_is_const && right_is_const) { | 426 | 20.5k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 20.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 20.5k | vec_res.resize(col_left->size()); | 430 | 20.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 20.5k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 20.5k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 20.5k | col_right->get_element(0), vec_res); | 434 | | | 435 | 20.5k | block.replace_by_position(result, std::move(col_res)); | 436 | 20.5k | } else if (left_is_const && !right_is_const) { | 437 | 539 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 539 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 539 | vec_res.resize(col_right->size()); | 441 | 539 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 539 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 539 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 539 | col_right->get_data(), vec_res); | 445 | | | 446 | 539 | block.replace_by_position(result, std::move(col_res)); | 447 | 539 | } | 448 | 21.1k | return Status::OK(); | 449 | 21.1k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 869 | const ColumnPtr& col_right_ptr) const { | 406 | 869 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 869 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 869 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 869 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 869 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 869 | if (!left_is_const && !right_is_const) { | 415 | 30 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 30 | vec_res.resize(col_left->get_data().size()); | 419 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 30 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 30 | vec_res); | 423 | | | 424 | 30 | block.replace_by_position(result, std::move(col_res)); | 425 | 839 | } else if (!left_is_const && right_is_const) { | 426 | 791 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 791 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 791 | vec_res.resize(col_left->size()); | 430 | 791 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 791 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 791 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 791 | col_right->get_element(0), vec_res); | 434 | | | 435 | 791 | block.replace_by_position(result, std::move(col_res)); | 436 | 791 | } else if (left_is_const && !right_is_const) { | 437 | 48 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 48 | vec_res.resize(col_right->size()); | 441 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 48 | col_right->get_data(), vec_res); | 445 | | | 446 | 48 | block.replace_by_position(result, std::move(col_res)); | 447 | 48 | } | 448 | 869 | return Status::OK(); | 449 | 869 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 61 | const ColumnPtr& col_right_ptr) const { | 406 | 61 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 61 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 61 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 61 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 61 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 61 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 61 | } else if (!left_is_const && right_is_const) { | 426 | 61 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 61 | vec_res.resize(col_left->size()); | 430 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 61 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 61 | col_right->get_element(0), vec_res); | 434 | | | 435 | 61 | block.replace_by_position(result, std::move(col_res)); | 436 | 61 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 61 | return Status::OK(); | 449 | 61 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 10 | const ColumnPtr& col_right_ptr) const { | 406 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 10 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 10 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 10 | } else if (!left_is_const && right_is_const) { | 426 | 10 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 10 | vec_res.resize(col_left->size()); | 430 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 10 | col_right->get_element(0), vec_res); | 434 | | | 435 | 10 | block.replace_by_position(result, std::move(col_res)); | 436 | 10 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 10 | return Status::OK(); | 449 | 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 | 405 | 222 | const ColumnPtr& col_right_ptr) const { | 406 | 222 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 222 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 222 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 222 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 222 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 224 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 204 | } else if (!left_is_const && right_is_const) { | 426 | 204 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 204 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 204 | vec_res.resize(col_left->size()); | 430 | 204 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 204 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 204 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 204 | col_right->get_element(0), vec_res); | 434 | | | 435 | 204 | block.replace_by_position(result, std::move(col_res)); | 436 | 18.4E | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 222 | return Status::OK(); | 449 | 222 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 147 | const ColumnPtr& col_right_ptr) const { | 406 | 147 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 147 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 147 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 147 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 147 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 147 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 127 | } else if (!left_is_const && right_is_const) { | 426 | 126 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 126 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 126 | vec_res.resize(col_left->size()); | 430 | 126 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 126 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 126 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 126 | col_right->get_element(0), vec_res); | 434 | | | 435 | 126 | block.replace_by_position(result, std::move(col_res)); | 436 | 126 | } else if (left_is_const && !right_is_const) { | 437 | 1 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 1 | vec_res.resize(col_right->size()); | 441 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 1 | col_right->get_data(), vec_res); | 445 | | | 446 | 1 | block.replace_by_position(result, std::move(col_res)); | 447 | 1 | } | 448 | 147 | return Status::OK(); | 449 | 147 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
450 | | |
451 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
452 | 150k | const ColumnWithTypeAndName& col_right) const { |
453 | 150k | auto call = [&](const auto& type) -> bool { |
454 | 150k | using DispatchType = std::decay_t<decltype(type)>; |
455 | 150k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
456 | 150k | block, result, col_left, col_right); |
457 | 150k | return true; |
458 | 150k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 243 | auto call = [&](const auto& type) -> bool { | 454 | 243 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 243 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 243 | block, result, col_left, col_right); | 457 | 243 | return true; | 458 | 243 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 286 | auto call = [&](const auto& type) -> bool { | 454 | 286 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 286 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 286 | block, result, col_left, col_right); | 457 | 286 | return true; | 458 | 286 | }; |
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 | 453 | 1.24k | auto call = [&](const auto& type) -> bool { | 454 | 1.24k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1.24k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1.24k | block, result, col_left, col_right); | 457 | 1.24k | return true; | 458 | 1.24k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 30 | auto call = [&](const auto& type) -> bool { | 454 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 30 | block, result, col_left, col_right); | 457 | 30 | return true; | 458 | 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 | 453 | 64 | auto call = [&](const auto& type) -> bool { | 454 | 64 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 64 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 64 | block, result, col_left, col_right); | 457 | 64 | return true; | 458 | 64 | }; |
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 | 453 | 324 | auto call = [&](const auto& type) -> bool { | 454 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 324 | block, result, col_left, col_right); | 457 | 324 | return true; | 458 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 30 | auto call = [&](const auto& type) -> bool { | 454 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 30 | block, result, col_left, col_right); | 457 | 30 | return true; | 458 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 46 | auto call = [&](const auto& type) -> bool { | 454 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 46 | block, result, col_left, col_right); | 457 | 46 | return true; | 458 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 1.59k | auto call = [&](const auto& type) -> bool { | 454 | 1.59k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1.59k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1.59k | block, result, col_left, col_right); | 457 | 1.59k | return true; | 458 | 1.59k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 453 | 1.40k | auto call = [&](const auto& type) -> bool { | 454 | 1.40k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1.40k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1.40k | block, result, col_left, col_right); | 457 | 1.40k | return true; | 458 | 1.40k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 2 | auto call = [&](const auto& type) -> bool { | 454 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 2 | block, result, col_left, col_right); | 457 | 2 | return true; | 458 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 12 | auto call = [&](const auto& type) -> bool { | 454 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 12 | block, result, col_left, col_right); | 457 | 12 | return true; | 458 | 12 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 377 | auto call = [&](const auto& type) -> bool { | 454 | 377 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 377 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 377 | block, result, col_left, col_right); | 457 | 377 | return true; | 458 | 377 | }; |
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 | 453 | 58 | auto call = [&](const auto& type) -> bool { | 454 | 58 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 58 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 58 | block, result, col_left, col_right); | 457 | 58 | return true; | 458 | 58 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 21 | auto call = [&](const auto& type) -> bool { | 454 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 21 | block, result, col_left, col_right); | 457 | 21 | return true; | 458 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 188 | auto call = [&](const auto& type) -> bool { | 454 | 188 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 188 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 188 | block, result, col_left, col_right); | 457 | 188 | return true; | 458 | 188 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 254 | auto call = [&](const auto& type) -> bool { | 454 | 254 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 254 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 254 | block, result, col_left, col_right); | 457 | 254 | return true; | 458 | 254 | }; |
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 | 453 | 541 | auto call = [&](const auto& type) -> bool { | 454 | 541 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 541 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 541 | block, result, col_left, col_right); | 457 | 541 | return true; | 458 | 541 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 1 | auto call = [&](const auto& type) -> bool { | 454 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1 | block, result, col_left, col_right); | 457 | 1 | return true; | 458 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 7 | auto call = [&](const auto& type) -> bool { | 454 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 7 | block, result, col_left, col_right); | 457 | 7 | return true; | 458 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 143k | auto call = [&](const auto& type) -> bool { | 454 | 143k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 143k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 143k | block, result, col_left, col_right); | 457 | 143k | return true; | 458 | 143k | }; |
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 | 453 | 804 | auto call = [&](const auto& type) -> bool { | 454 | 804 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 804 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 804 | block, result, col_left, col_right); | 457 | 804 | return true; | 458 | 804 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 16 | auto call = [&](const auto& type) -> bool { | 454 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 16 | block, result, col_left, col_right); | 457 | 16 | return true; | 458 | 16 | }; |
|
459 | | |
460 | 150k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
461 | 0 | return Status::RuntimeError( |
462 | 0 | "type of left column {} is not equal to type of right column {}", |
463 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
464 | 0 | } |
465 | | |
466 | 150k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
468 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
469 | 0 | } |
470 | 150k | return Status::OK(); |
471 | 150k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 1.80k | const ColumnWithTypeAndName& col_right) const { | 453 | 1.80k | auto call = [&](const auto& type) -> bool { | 454 | 1.80k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1.80k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1.80k | block, result, col_left, col_right); | 457 | 1.80k | return true; | 458 | 1.80k | }; | 459 | | | 460 | 1.80k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 1.80k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 1.80k | return Status::OK(); | 471 | 1.80k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 418 | const ColumnWithTypeAndName& col_right) const { | 453 | 418 | auto call = [&](const auto& type) -> bool { | 454 | 418 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 418 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 418 | block, result, col_left, col_right); | 457 | 418 | return true; | 458 | 418 | }; | 459 | | | 460 | 418 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 418 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 418 | return Status::OK(); | 471 | 418 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 3.05k | const ColumnWithTypeAndName& col_right) const { | 453 | 3.05k | auto call = [&](const auto& type) -> bool { | 454 | 3.05k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 3.05k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 3.05k | block, result, col_left, col_right); | 457 | 3.05k | return true; | 458 | 3.05k | }; | 459 | | | 460 | 3.05k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 3.05k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 3.05k | return Status::OK(); | 471 | 3.05k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 468 | const ColumnWithTypeAndName& col_right) const { | 453 | 468 | auto call = [&](const auto& type) -> bool { | 454 | 468 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 468 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 468 | block, result, col_left, col_right); | 457 | 468 | return true; | 458 | 468 | }; | 459 | | | 460 | 468 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 468 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 468 | return Status::OK(); | 471 | 468 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 984 | const ColumnWithTypeAndName& col_right) const { | 453 | 984 | auto call = [&](const auto& type) -> bool { | 454 | 984 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 984 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 984 | block, result, col_left, col_right); | 457 | 984 | return true; | 458 | 984 | }; | 459 | | | 460 | 984 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 984 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 984 | return Status::OK(); | 471 | 984 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 144k | const ColumnWithTypeAndName& col_right) const { | 453 | 144k | auto call = [&](const auto& type) -> bool { | 454 | 144k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 144k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 144k | block, result, col_left, col_right); | 457 | 144k | return true; | 458 | 144k | }; | 459 | | | 460 | 144k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 144k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 144k | return Status::OK(); | 471 | 144k | } |
|
472 | | |
473 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
474 | 28.3k | const IColumn* c1) const { |
475 | 28.3k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
476 | 28.3k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
477 | 28.3k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
478 | 28.3k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
479 | 28.3k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
481 | 0 | c0->get_name(), c1->get_name(), name); |
482 | 0 | } |
483 | 28.3k | DCHECK(!(c0_const && c1_const)); |
484 | 28.3k | const ColumnString::Chars* c0_const_chars = nullptr; |
485 | 28.3k | const ColumnString::Chars* c1_const_chars = nullptr; |
486 | 28.3k | ColumnString::Offset c0_const_size = 0; |
487 | 28.3k | ColumnString::Offset c1_const_size = 0; |
488 | | |
489 | 28.3k | if (c0_const) { |
490 | 6 | const ColumnString* c0_const_string = |
491 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
492 | | |
493 | 6 | if (c0_const_string) { |
494 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
495 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
496 | 6 | } else { |
497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
498 | 0 | c0->get_name(), name); |
499 | 0 | } |
500 | 6 | } |
501 | | |
502 | 28.3k | if (c1_const) { |
503 | 27.3k | const ColumnString* c1_const_string = |
504 | 27.3k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
505 | | |
506 | 27.3k | if (c1_const_string) { |
507 | 27.3k | c1_const_chars = &c1_const_string->get_chars(); |
508 | 27.3k | c1_const_size = c1_const_string->get_offsets()[0]; |
509 | 27.3k | } else { |
510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
511 | 0 | c1->get_name(), name); |
512 | 0 | } |
513 | 27.3k | } |
514 | | |
515 | 28.3k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
516 | | |
517 | 28.3k | auto c_res = ColumnUInt8::create(); |
518 | 28.3k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
519 | 28.3k | vec_res.resize(c0->size()); |
520 | | |
521 | 28.3k | if (c0_string && c1_string) { |
522 | 1.02k | StringImpl::string_vector_string_vector( |
523 | 1.02k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
524 | 1.02k | c1_string->get_offsets(), vec_res); |
525 | 27.3k | } else if (c0_string && c1_const) { |
526 | 27.3k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
527 | 27.3k | *c1_const_chars, c1_const_size, vec_res); |
528 | 27.3k | } else if (c0_const && c1_string) { |
529 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
530 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
531 | 6 | vec_res); |
532 | 6 | } else { |
533 | 1 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
534 | 1 | c0->get_name(), c1->get_name(), name); |
535 | 1 | } |
536 | 28.3k | block.replace_by_position(result, std::move(c_res)); |
537 | 28.3k | return Status::OK(); |
538 | 28.3k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 23.3k | const IColumn* c1) const { | 475 | 23.3k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 23.3k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 23.3k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 23.3k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 23.3k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 23.3k | DCHECK(!(c0_const && c1_const)); | 484 | 23.3k | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 23.3k | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 23.3k | ColumnString::Offset c0_const_size = 0; | 487 | 23.3k | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 23.3k | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 23.3k | if (c1_const) { | 503 | 22.7k | const ColumnString* c1_const_string = | 504 | 22.7k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 22.7k | if (c1_const_string) { | 507 | 22.7k | c1_const_chars = &c1_const_string->get_chars(); | 508 | 22.7k | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 22.7k | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 22.7k | } | 514 | | | 515 | 23.3k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 23.3k | auto c_res = ColumnUInt8::create(); | 518 | 23.3k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 23.3k | vec_res.resize(c0->size()); | 520 | | | 521 | 23.3k | if (c0_string && c1_string) { | 522 | 525 | StringImpl::string_vector_string_vector( | 523 | 525 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 525 | c1_string->get_offsets(), vec_res); | 525 | 22.7k | } else if (c0_string && c1_const) { | 526 | 22.7k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 22.7k | *c1_const_chars, c1_const_size, vec_res); | 528 | 22.7k | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 1 | } else { | 533 | 1 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 1 | c0->get_name(), c1->get_name(), name); | 535 | 1 | } | 536 | 23.3k | block.replace_by_position(result, std::move(c_res)); | 537 | 23.3k | return Status::OK(); | 538 | 23.3k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 1.50k | const IColumn* c1) const { | 475 | 1.50k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 1.50k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 1.50k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 1.50k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 1.50k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 1.50k | DCHECK(!(c0_const && c1_const)); | 484 | 1.50k | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 1.50k | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 1.50k | ColumnString::Offset c0_const_size = 0; | 487 | 1.50k | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 1.50k | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 1.50k | if (c1_const) { | 503 | 1.50k | const ColumnString* c1_const_string = | 504 | 1.50k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 1.50k | if (c1_const_string) { | 507 | 1.50k | c1_const_chars = &c1_const_string->get_chars(); | 508 | 1.50k | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 1.50k | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 1.50k | } | 514 | | | 515 | 1.50k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 1.50k | auto c_res = ColumnUInt8::create(); | 518 | 1.50k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 1.50k | vec_res.resize(c0->size()); | 520 | | | 521 | 1.50k | if (c0_string && c1_string) { | 522 | 1 | StringImpl::string_vector_string_vector( | 523 | 1 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 1 | c1_string->get_offsets(), vec_res); | 525 | 1.50k | } else if (c0_string && c1_const) { | 526 | 1.50k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 1.50k | *c1_const_chars, c1_const_size, vec_res); | 528 | 1.50k | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 1.50k | block.replace_by_position(result, std::move(c_res)); | 537 | 1.50k | return Status::OK(); | 538 | 1.50k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 199 | const IColumn* c1) const { | 475 | 199 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 199 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 199 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 199 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 199 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 199 | DCHECK(!(c0_const && c1_const)); | 484 | 199 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 199 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 199 | ColumnString::Offset c0_const_size = 0; | 487 | 199 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 199 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 199 | if (c1_const) { | 503 | 197 | const ColumnString* c1_const_string = | 504 | 197 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 197 | if (c1_const_string) { | 507 | 197 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 197 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 197 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 197 | } | 514 | | | 515 | 199 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 199 | auto c_res = ColumnUInt8::create(); | 518 | 199 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 199 | vec_res.resize(c0->size()); | 520 | | | 521 | 199 | if (c0_string && c1_string) { | 522 | 2 | StringImpl::string_vector_string_vector( | 523 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 2 | c1_string->get_offsets(), vec_res); | 525 | 197 | } else if (c0_string && c1_const) { | 526 | 197 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 197 | *c1_const_chars, c1_const_size, vec_res); | 528 | 197 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 199 | block.replace_by_position(result, std::move(c_res)); | 537 | 199 | return Status::OK(); | 538 | 199 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 707 | const IColumn* c1) const { | 475 | 707 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 707 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 707 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 707 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 707 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 707 | DCHECK(!(c0_const && c1_const)); | 484 | 707 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 707 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 707 | ColumnString::Offset c0_const_size = 0; | 487 | 707 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 707 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 707 | if (c1_const) { | 503 | 671 | const ColumnString* c1_const_string = | 504 | 671 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 671 | if (c1_const_string) { | 507 | 671 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 671 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 671 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 671 | } | 514 | | | 515 | 707 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 707 | auto c_res = ColumnUInt8::create(); | 518 | 707 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 707 | vec_res.resize(c0->size()); | 520 | | | 521 | 707 | if (c0_string && c1_string) { | 522 | 36 | StringImpl::string_vector_string_vector( | 523 | 36 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 36 | c1_string->get_offsets(), vec_res); | 525 | 671 | } else if (c0_string && c1_const) { | 526 | 671 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 671 | *c1_const_chars, c1_const_size, vec_res); | 528 | 671 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 707 | block.replace_by_position(result, std::move(c_res)); | 537 | 707 | return Status::OK(); | 538 | 707 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 752 | const IColumn* c1) const { | 475 | 752 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 752 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 752 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 752 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 752 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 752 | DCHECK(!(c0_const && c1_const)); | 484 | 752 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 752 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 752 | ColumnString::Offset c0_const_size = 0; | 487 | 752 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 752 | if (c0_const) { | 490 | 6 | const ColumnString* c0_const_string = | 491 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | | | 493 | 6 | if (c0_const_string) { | 494 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 6 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 6 | } | 501 | | | 502 | 752 | if (c1_const) { | 503 | 281 | const ColumnString* c1_const_string = | 504 | 281 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 281 | if (c1_const_string) { | 507 | 281 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 281 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 281 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 281 | } | 514 | | | 515 | 752 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 752 | auto c_res = ColumnUInt8::create(); | 518 | 752 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 752 | vec_res.resize(c0->size()); | 520 | | | 521 | 752 | if (c0_string && c1_string) { | 522 | 465 | StringImpl::string_vector_string_vector( | 523 | 465 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 465 | c1_string->get_offsets(), vec_res); | 525 | 465 | } else if (c0_string && c1_const) { | 526 | 281 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 281 | *c1_const_chars, c1_const_size, vec_res); | 528 | 281 | } else if (c0_const && c1_string) { | 529 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 6 | vec_res); | 532 | 6 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 752 | block.replace_by_position(result, std::move(c_res)); | 537 | 752 | return Status::OK(); | 538 | 752 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 1.90k | const IColumn* c1) const { | 475 | 1.90k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 1.90k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 1.90k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 1.90k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 1.90k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 1.90k | DCHECK(!(c0_const && c1_const)); | 484 | 1.90k | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 1.90k | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 1.90k | ColumnString::Offset c0_const_size = 0; | 487 | 1.90k | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 1.90k | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 1.90k | if (c1_const) { | 503 | 1.90k | const ColumnString* c1_const_string = | 504 | 1.90k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 1.90k | if (c1_const_string) { | 507 | 1.90k | c1_const_chars = &c1_const_string->get_chars(); | 508 | 1.90k | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 1.90k | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 1.90k | } | 514 | | | 515 | 1.90k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 1.90k | auto c_res = ColumnUInt8::create(); | 518 | 1.90k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 1.90k | vec_res.resize(c0->size()); | 520 | | | 521 | 1.90k | if (c0_string && c1_string) { | 522 | 0 | StringImpl::string_vector_string_vector( | 523 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 0 | c1_string->get_offsets(), vec_res); | 525 | 1.90k | } else if (c0_string && c1_const) { | 526 | 1.90k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 1.90k | *c1_const_chars, c1_const_size, vec_res); | 528 | 1.90k | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 1.90k | block.replace_by_position(result, std::move(c_res)); | 537 | 1.90k | return Status::OK(); | 538 | 1.90k | } |
|
539 | | |
540 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
541 | 181 | const IColumn* c1) const { |
542 | 181 | bool c0_const = is_column_const(*c0); |
543 | 181 | bool c1_const = is_column_const(*c1); |
544 | | |
545 | 181 | DCHECK(!(c0_const && c1_const)); |
546 | | |
547 | 181 | auto c_res = ColumnUInt8::create(); |
548 | 181 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
549 | 181 | vec_res.resize(c0->size()); |
550 | | |
551 | 181 | if (c0_const) { |
552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
553 | 181 | } else if (c1_const) { |
554 | 172 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
555 | 172 | } else { |
556 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
557 | 9 | } |
558 | | |
559 | 181 | block.replace_by_position(result, std::move(c_res)); |
560 | 181 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 17 | const IColumn* c1) const { | 542 | 17 | bool c0_const = is_column_const(*c0); | 543 | 17 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 17 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 17 | auto c_res = ColumnUInt8::create(); | 548 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 17 | vec_res.resize(c0->size()); | 550 | | | 551 | 17 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 17 | } else if (c1_const) { | 554 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 13 | } else { | 556 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 4 | } | 558 | | | 559 | 17 | block.replace_by_position(result, std::move(c_res)); | 560 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 8 | const IColumn* c1) const { | 542 | 8 | bool c0_const = is_column_const(*c0); | 543 | 8 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 8 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 8 | auto c_res = ColumnUInt8::create(); | 548 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 8 | vec_res.resize(c0->size()); | 550 | | | 551 | 8 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 8 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 0 | } | 558 | | | 559 | 8 | block.replace_by_position(result, std::move(c_res)); | 560 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 9 | const IColumn* c1) const { | 542 | 9 | bool c0_const = is_column_const(*c0); | 543 | 9 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 9 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 9 | auto c_res = ColumnUInt8::create(); | 548 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 9 | vec_res.resize(c0->size()); | 550 | | | 551 | 9 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 9 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 1 | } | 558 | | | 559 | 9 | block.replace_by_position(result, std::move(c_res)); | 560 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 87 | const IColumn* c1) const { | 542 | 87 | bool c0_const = is_column_const(*c0); | 543 | 87 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 87 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 87 | auto c_res = ColumnUInt8::create(); | 548 | 87 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 87 | vec_res.resize(c0->size()); | 550 | | | 551 | 87 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 87 | } else if (c1_const) { | 554 | 86 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 86 | } else { | 556 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 1 | } | 558 | | | 559 | 87 | block.replace_by_position(result, std::move(c_res)); | 560 | 87 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 11 | const IColumn* c1) const { | 542 | 11 | bool c0_const = is_column_const(*c0); | 543 | 11 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 11 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 11 | auto c_res = ColumnUInt8::create(); | 548 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 11 | vec_res.resize(c0->size()); | 550 | | | 551 | 11 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 11 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 3 | } | 558 | | | 559 | 11 | block.replace_by_position(result, std::move(c_res)); | 560 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 49 | const IColumn* c1) const { | 542 | 49 | bool c0_const = is_column_const(*c0); | 543 | 49 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 49 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 49 | auto c_res = ColumnUInt8::create(); | 548 | 49 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 49 | vec_res.resize(c0->size()); | 550 | | | 551 | 49 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 49 | } else if (c1_const) { | 554 | 49 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 49 | } else { | 556 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 0 | } | 558 | | | 559 | 49 | block.replace_by_position(result, std::move(c_res)); | 560 | 49 | } |
|
561 | | |
562 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
563 | 181 | const ColumnWithTypeAndName& c1) const { |
564 | 181 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
565 | 181 | return Status::OK(); |
566 | 181 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 17 | const ColumnWithTypeAndName& c1) const { | 564 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 17 | return Status::OK(); | 566 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 8 | const ColumnWithTypeAndName& c1) const { | 564 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 8 | return Status::OK(); | 566 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 9 | const ColumnWithTypeAndName& c1) const { | 564 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 9 | return Status::OK(); | 566 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 87 | const ColumnWithTypeAndName& c1) const { | 564 | 87 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 87 | return Status::OK(); | 566 | 87 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 11 | const ColumnWithTypeAndName& c1) const { | 564 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 11 | return Status::OK(); | 566 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 49 | const ColumnWithTypeAndName& c1) const { | 564 | 49 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 49 | return Status::OK(); | 566 | 49 | } |
|
567 | | |
568 | | public: |
569 | 222 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 1 | String get_name() const override { return name; } |
|
570 | | |
571 | 468k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 436k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 1.34k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 571 | 6.34k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 8.11k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 571 | 3.45k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 12.9k | size_t get_number_of_arguments() const override { return 2; } |
|
572 | | |
573 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
574 | 35.2k | const VExprSPtrs& arguments) const override { |
575 | 35.2k | auto op = comparison_zonemap_detail::op_from_name(name); |
576 | 35.2k | DORIS_CHECK(op.has_value()); |
577 | 35.2k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
578 | 35.2k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 7.77k | const VExprSPtrs& arguments) const override { | 575 | 7.77k | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 7.77k | DORIS_CHECK(op.has_value()); | 577 | 7.77k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 7.77k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 1.11k | const VExprSPtrs& arguments) const override { | 575 | 1.11k | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 1.11k | DORIS_CHECK(op.has_value()); | 577 | 1.11k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 1.11k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 3.94k | const VExprSPtrs& arguments) const override { | 575 | 3.94k | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 3.94k | DORIS_CHECK(op.has_value()); | 577 | 3.94k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 3.94k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 9.50k | const VExprSPtrs& arguments) const override { | 575 | 9.50k | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 9.50k | DORIS_CHECK(op.has_value()); | 577 | 9.50k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 9.50k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 1.93k | const VExprSPtrs& arguments) const override { | 575 | 1.93k | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 1.93k | DORIS_CHECK(op.has_value()); | 577 | 1.93k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 1.93k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 10.9k | const VExprSPtrs& arguments) const override { | 575 | 10.9k | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 10.9k | DORIS_CHECK(op.has_value()); | 577 | 10.9k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 10.9k | } |
|
579 | | |
580 | 87.0k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
581 | 87.0k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
582 | 87.1k | comparison_zonemap_detail::can_evaluate(arguments); |
583 | 87.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 32.2k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 32.2k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 32.2k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 32.2k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 3.49k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 3.49k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 3.49k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 3.49k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 12.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 12.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 12.9k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 12.8k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 16.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 16.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 16.2k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 16.1k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 6.45k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 6.45k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 6.45k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 6.45k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 15.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 15.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 15.8k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 15.8k | } |
|
584 | | |
585 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
586 | 468k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
587 | 468k | return std::make_shared<DataTypeUInt8>(); |
588 | 468k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 436k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 436k | return std::make_shared<DataTypeUInt8>(); | 588 | 436k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 1.34k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 1.34k | return std::make_shared<DataTypeUInt8>(); | 588 | 1.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 6.34k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 6.34k | return std::make_shared<DataTypeUInt8>(); | 588 | 6.34k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 8.11k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 8.11k | return std::make_shared<DataTypeUInt8>(); | 588 | 8.11k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 3.45k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 3.45k | return std::make_shared<DataTypeUInt8>(); | 588 | 3.45k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 12.9k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 12.9k | return std::make_shared<DataTypeUInt8>(); | 588 | 12.9k | } |
|
589 | | |
590 | | Status evaluate_inverted_index( |
591 | | const ColumnsWithTypeAndName& arguments, |
592 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
593 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
594 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
595 | 1.33k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
596 | 1.33k | DCHECK(arguments.size() == 1); |
597 | 1.33k | DCHECK(data_type_with_names.size() == 1); |
598 | 1.33k | DCHECK(iterators.size() == 1); |
599 | 1.33k | auto* iter = iterators[0]; |
600 | 1.33k | auto data_type_with_name = data_type_with_names[0]; |
601 | 1.33k | if (iter == nullptr) { |
602 | 0 | return Status::OK(); |
603 | 0 | } |
604 | 1.33k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
605 | 304 | return Status::OK(); |
606 | 304 | } |
607 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
608 | 1.03k | std::string_view name_view(name); |
609 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
610 | 709 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
611 | 709 | } else if (name_view == NameLess::name) { |
612 | 75 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
613 | 248 | } else if (name_view == NameLessOrEquals::name) { |
614 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
615 | 167 | } else if (name_view == NameGreater::name) { |
616 | 72 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
617 | 95 | } else if (name_view == NameGreaterOrEquals::name) { |
618 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
619 | 93 | } else { |
620 | 2 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
621 | 2 | } |
622 | | |
623 | 1.03k | if (segment_v2::is_range_query(query_type) && |
624 | 1.03k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
626 | 133 | return Status::OK(); |
627 | 133 | } |
628 | 897 | Field param_value; |
629 | 897 | arguments[0].column->get(0, param_value); |
630 | 897 | if (param_value.is_null()) { |
631 | 2 | return Status::OK(); |
632 | 2 | } |
633 | 895 | segment_v2::InvertedIndexParam param; |
634 | 895 | param.column_name = data_type_with_name.first; |
635 | 895 | param.column_type = data_type_with_name.second; |
636 | 895 | param.query_value = param_value; |
637 | 895 | param.query_type = query_type; |
638 | 895 | param.num_rows = num_rows; |
639 | 895 | param.roaring = std::make_shared<roaring::Roaring>(); |
640 | 895 | param.analyzer_ctx = analyzer_ctx; |
641 | 895 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
642 | 746 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
643 | 747 | if (iter->has_null()) { |
644 | 747 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
645 | 747 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
646 | 747 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
647 | 747 | } |
648 | 746 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
649 | 746 | bitmap_result = result; |
650 | 746 | bitmap_result.mask_out_null(); |
651 | | |
652 | 746 | if (name_view == NameNotEquals::name) { |
653 | 59 | roaring::Roaring full_result; |
654 | 59 | full_result.addRange(0, num_rows); |
655 | 59 | bitmap_result.op_not(&full_result); |
656 | 59 | } |
657 | | |
658 | 746 | return Status::OK(); |
659 | 746 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 680 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 680 | DCHECK(arguments.size() == 1); | 597 | 680 | DCHECK(data_type_with_names.size() == 1); | 598 | 680 | DCHECK(iterators.size() == 1); | 599 | 680 | auto* iter = iterators[0]; | 600 | 680 | auto data_type_with_name = data_type_with_names[0]; | 601 | 680 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 680 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 36 | return Status::OK(); | 606 | 36 | } | 607 | 644 | segment_v2::InvertedIndexQueryType query_type; | 608 | 644 | std::string_view name_view(name); | 609 | 644 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 644 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 644 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 0 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 0 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 644 | if (segment_v2::is_range_query(query_type) && | 624 | 644 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 0 | return Status::OK(); | 627 | 0 | } | 628 | 644 | Field param_value; | 629 | 644 | arguments[0].column->get(0, param_value); | 630 | 644 | if (param_value.is_null()) { | 631 | 2 | return Status::OK(); | 632 | 2 | } | 633 | 642 | segment_v2::InvertedIndexParam param; | 634 | 642 | param.column_name = data_type_with_name.first; | 635 | 642 | param.column_type = data_type_with_name.second; | 636 | 642 | param.query_value = param_value; | 637 | 642 | param.query_type = query_type; | 638 | 642 | param.num_rows = num_rows; | 639 | 642 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 642 | param.analyzer_ctx = analyzer_ctx; | 641 | 642 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 599 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 599 | if (iter->has_null()) { | 644 | 599 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 599 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 599 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 599 | } | 648 | 599 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 599 | bitmap_result = result; | 650 | 599 | bitmap_result.mask_out_null(); | 651 | | | 652 | 599 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 599 | return Status::OK(); | 659 | 599 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 71 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 71 | DCHECK(arguments.size() == 1); | 597 | 71 | DCHECK(data_type_with_names.size() == 1); | 598 | 71 | DCHECK(iterators.size() == 1); | 599 | 71 | auto* iter = iterators[0]; | 600 | 71 | auto data_type_with_name = data_type_with_names[0]; | 601 | 71 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 71 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 6 | return Status::OK(); | 606 | 6 | } | 607 | 65 | segment_v2::InvertedIndexQueryType query_type; | 608 | 65 | std::string_view name_view(name); | 609 | 65 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 65 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 65 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 0 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 0 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 65 | if (segment_v2::is_range_query(query_type) && | 624 | 65 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 0 | return Status::OK(); | 627 | 0 | } | 628 | 65 | Field param_value; | 629 | 65 | arguments[0].column->get(0, param_value); | 630 | 65 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 65 | segment_v2::InvertedIndexParam param; | 634 | 65 | param.column_name = data_type_with_name.first; | 635 | 65 | param.column_type = data_type_with_name.second; | 636 | 65 | param.query_value = param_value; | 637 | 65 | param.query_type = query_type; | 638 | 65 | param.num_rows = num_rows; | 639 | 65 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 65 | param.analyzer_ctx = analyzer_ctx; | 641 | 65 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 58 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 59 | if (iter->has_null()) { | 644 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 59 | } | 648 | 58 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 58 | bitmap_result = result; | 650 | 58 | bitmap_result.mask_out_null(); | 651 | | | 652 | 59 | if (name_view == NameNotEquals::name) { | 653 | 59 | roaring::Roaring full_result; | 654 | 59 | full_result.addRange(0, num_rows); | 655 | 59 | bitmap_result.op_not(&full_result); | 656 | 59 | } | 657 | | | 658 | 58 | return Status::OK(); | 659 | 58 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 112 | DCHECK(arguments.size() == 1); | 597 | 112 | DCHECK(data_type_with_names.size() == 1); | 598 | 112 | DCHECK(iterators.size() == 1); | 599 | 112 | auto* iter = iterators[0]; | 600 | 112 | auto data_type_with_name = data_type_with_names[0]; | 601 | 112 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 39 | return Status::OK(); | 606 | 39 | } | 607 | 73 | segment_v2::InvertedIndexQueryType query_type; | 608 | 73 | std::string_view name_view(name); | 609 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 73 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 73 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 73 | } else if (name_view == NameGreater::name) { | 616 | 72 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 72 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 1 | } else { | 620 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 1 | } | 622 | | | 623 | 72 | if (segment_v2::is_range_query(query_type) && | 624 | 72 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 17 | return Status::OK(); | 627 | 17 | } | 628 | 55 | Field param_value; | 629 | 55 | arguments[0].column->get(0, param_value); | 630 | 55 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 55 | segment_v2::InvertedIndexParam param; | 634 | 55 | param.column_name = data_type_with_name.first; | 635 | 55 | param.column_type = data_type_with_name.second; | 636 | 55 | param.query_value = param_value; | 637 | 55 | param.query_type = query_type; | 638 | 55 | param.num_rows = num_rows; | 639 | 55 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 55 | param.analyzer_ctx = analyzer_ctx; | 641 | 55 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 36 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 36 | if (iter->has_null()) { | 644 | 36 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 36 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 36 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 36 | } | 648 | 36 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 36 | bitmap_result = result; | 650 | 36 | bitmap_result.mask_out_null(); | 651 | | | 652 | 36 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 36 | return Status::OK(); | 659 | 36 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 179 | DCHECK(arguments.size() == 1); | 597 | 179 | DCHECK(data_type_with_names.size() == 1); | 598 | 179 | DCHECK(iterators.size() == 1); | 599 | 179 | auto* iter = iterators[0]; | 600 | 179 | auto data_type_with_name = data_type_with_names[0]; | 601 | 179 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 86 | return Status::OK(); | 606 | 86 | } | 607 | 93 | segment_v2::InvertedIndexQueryType query_type; | 608 | 93 | std::string_view name_view(name); | 609 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 93 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 93 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 93 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 93 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 93 | if (segment_v2::is_range_query(query_type) && | 624 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 47 | return Status::OK(); | 627 | 47 | } | 628 | 46 | Field param_value; | 629 | 46 | arguments[0].column->get(0, param_value); | 630 | 46 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 46 | segment_v2::InvertedIndexParam param; | 634 | 46 | param.column_name = data_type_with_name.first; | 635 | 46 | param.column_type = data_type_with_name.second; | 636 | 46 | param.query_value = param_value; | 637 | 46 | param.query_type = query_type; | 638 | 46 | param.num_rows = num_rows; | 639 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 46 | param.analyzer_ctx = analyzer_ctx; | 641 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 5 | if (iter->has_null()) { | 644 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 5 | } | 648 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 5 | bitmap_result = result; | 650 | 5 | bitmap_result.mask_out_null(); | 651 | | | 652 | 5 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 5 | return Status::OK(); | 659 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 119 | DCHECK(arguments.size() == 1); | 597 | 119 | DCHECK(data_type_with_names.size() == 1); | 598 | 119 | DCHECK(iterators.size() == 1); | 599 | 119 | auto* iter = iterators[0]; | 600 | 119 | auto data_type_with_name = data_type_with_names[0]; | 601 | 119 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 43 | return Status::OK(); | 606 | 43 | } | 607 | 76 | segment_v2::InvertedIndexQueryType query_type; | 608 | 76 | std::string_view name_view(name); | 609 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 76 | } else if (name_view == NameLess::name) { | 612 | 75 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 75 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 1 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 1 | } else { | 620 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 1 | } | 622 | | | 623 | 75 | if (segment_v2::is_range_query(query_type) && | 624 | 75 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 18 | return Status::OK(); | 627 | 18 | } | 628 | 57 | Field param_value; | 629 | 57 | arguments[0].column->get(0, param_value); | 630 | 57 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 57 | segment_v2::InvertedIndexParam param; | 634 | 57 | param.column_name = data_type_with_name.first; | 635 | 57 | param.column_type = data_type_with_name.second; | 636 | 57 | param.query_value = param_value; | 637 | 57 | param.query_type = query_type; | 638 | 57 | param.num_rows = num_rows; | 639 | 57 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 57 | param.analyzer_ctx = analyzer_ctx; | 641 | 57 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 39 | if (iter->has_null()) { | 644 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 39 | } | 648 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 39 | bitmap_result = result; | 650 | 39 | bitmap_result.mask_out_null(); | 651 | | | 652 | 39 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 39 | return Status::OK(); | 659 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 175 | DCHECK(arguments.size() == 1); | 597 | 175 | DCHECK(data_type_with_names.size() == 1); | 598 | 175 | DCHECK(iterators.size() == 1); | 599 | 175 | auto* iter = iterators[0]; | 600 | 175 | auto data_type_with_name = data_type_with_names[0]; | 601 | 175 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 94 | return Status::OK(); | 606 | 94 | } | 607 | 81 | segment_v2::InvertedIndexQueryType query_type; | 608 | 81 | std::string_view name_view(name); | 609 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 81 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 81 | } else if (name_view == NameLessOrEquals::name) { | 614 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 81 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 81 | if (segment_v2::is_range_query(query_type) && | 624 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 51 | return Status::OK(); | 627 | 51 | } | 628 | 30 | Field param_value; | 629 | 30 | arguments[0].column->get(0, param_value); | 630 | 30 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 30 | segment_v2::InvertedIndexParam param; | 634 | 30 | param.column_name = data_type_with_name.first; | 635 | 30 | param.column_type = data_type_with_name.second; | 636 | 30 | param.query_value = param_value; | 637 | 30 | param.query_type = query_type; | 638 | 30 | param.num_rows = num_rows; | 639 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 30 | param.analyzer_ctx = analyzer_ctx; | 641 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 9 | if (iter->has_null()) { | 644 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 9 | } | 648 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 9 | bitmap_result = result; | 650 | 9 | bitmap_result.mask_out_null(); | 651 | | | 652 | 9 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 9 | return Status::OK(); | 659 | 9 | } |
|
660 | | |
661 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
662 | 370k | uint32_t result, size_t input_rows_count) const override { |
663 | 370k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
664 | 370k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
665 | | |
666 | 370k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
667 | 370k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
668 | 370k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
669 | 370k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
670 | | |
671 | 370k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
672 | 370k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
673 | | |
674 | | /// The case when arguments are the same (tautological comparison). Return constant. |
675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
677 | 370k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
678 | 370k | col_left_untyped == col_right_untyped) { |
679 | | /// Always true: =, <=, >= |
680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
684 | 0 | block.get_by_position(result).column = |
685 | 0 | DataTypeUInt8() |
686 | 0 | .create_column_const(input_rows_count, |
687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
688 | 0 | ->convert_to_full_column_if_const(); |
689 | 0 | return Status::OK(); |
690 | 0 | } else { |
691 | 0 | block.get_by_position(result).column = |
692 | 0 | DataTypeUInt8() |
693 | 0 | .create_column_const(input_rows_count, |
694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
695 | 0 | ->convert_to_full_column_if_const(); |
696 | 0 | return Status::OK(); |
697 | 0 | } |
698 | 0 | } |
699 | | |
700 | 562k | auto can_compare = [](PrimitiveType t) -> bool { |
701 | 562k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
702 | 562k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 161k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 161k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 161k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 15.8k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 15.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 15.8k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 103k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 103k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 103k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 35.2k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 35.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 35.2k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 30.5k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 30.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 30.5k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 215k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 215k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 215k | }; |
|
703 | | |
704 | 370k | if (can_compare(left_type->get_primitive_type()) && |
705 | 370k | can_compare(right_type->get_primitive_type())) { |
706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
707 | 191k | if (!left_type->equals_ignore_precision(*right_type)) { |
708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
709 | 0 | get_name(), left_type->get_name(), |
710 | 0 | right_type->get_name()); |
711 | 0 | } |
712 | 191k | } |
713 | | |
714 | 370k | auto compare_type = left_type->get_primitive_type(); |
715 | 370k | switch (compare_type) { |
716 | 2.38k | case TYPE_BOOLEAN: |
717 | 2.38k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
718 | 17.6k | case TYPE_DATEV2: |
719 | 17.6k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
720 | 2.82k | case TYPE_DATETIMEV2: |
721 | 2.82k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
722 | 12 | case TYPE_TIMESTAMPTZ: |
723 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
724 | 11.1k | case TYPE_TINYINT: |
725 | 11.1k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
726 | 4.15k | case TYPE_SMALLINT: |
727 | 4.15k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
728 | 103k | case TYPE_INT: |
729 | 103k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
730 | 44.4k | case TYPE_BIGINT: |
731 | 44.4k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
732 | 786 | case TYPE_LARGEINT: |
733 | 786 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
734 | 72 | case TYPE_IPV4: |
735 | 72 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
736 | 48 | case TYPE_IPV6: |
737 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
738 | 1.03k | case TYPE_FLOAT: |
739 | 1.03k | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
740 | 3.61k | case TYPE_DOUBLE: |
741 | 3.61k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
742 | 4 | case TYPE_TIMEV2: |
743 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
744 | 0 | case TYPE_DECIMALV2: |
745 | 496 | case TYPE_DECIMAL32: |
746 | 146k | case TYPE_DECIMAL64: |
747 | 150k | case TYPE_DECIMAL128I: |
748 | 150k | case TYPE_DECIMAL256: |
749 | 150k | return execute_decimal(block, result, col_with_type_and_name_left, |
750 | 150k | col_with_type_and_name_right); |
751 | 1.50k | case TYPE_CHAR: |
752 | 11.2k | case TYPE_VARCHAR: |
753 | 28.3k | case TYPE_STRING: |
754 | 28.3k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
755 | 181 | default: |
756 | 181 | return execute_generic(block, result, col_with_type_and_name_left, |
757 | 181 | col_with_type_and_name_right); |
758 | 370k | } |
759 | 0 | return Status::OK(); |
760 | 370k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 93.3k | uint32_t result, size_t input_rows_count) const override { | 663 | 93.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 93.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 93.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 93.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 93.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 93.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 93.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 93.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 93.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 93.3k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 93.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 93.3k | }; | 703 | | | 704 | 93.3k | if (can_compare(left_type->get_primitive_type()) && | 705 | 93.3k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 68.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 68.2k | } | 713 | | | 714 | 93.3k | auto compare_type = left_type->get_primitive_type(); | 715 | 93.3k | switch (compare_type) { | 716 | 1.60k | case TYPE_BOOLEAN: | 717 | 1.60k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 1.54k | case TYPE_DATEV2: | 719 | 1.54k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 659 | case TYPE_DATETIMEV2: | 721 | 659 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 3 | case TYPE_TIMESTAMPTZ: | 723 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 7.04k | case TYPE_TINYINT: | 725 | 7.04k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 1.49k | case TYPE_SMALLINT: | 727 | 1.49k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 31.0k | case TYPE_INT: | 729 | 31.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 24.0k | case TYPE_BIGINT: | 731 | 24.0k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 156 | case TYPE_LARGEINT: | 733 | 156 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 30 | case TYPE_IPV4: | 735 | 30 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 30 | case TYPE_IPV6: | 737 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 121 | case TYPE_FLOAT: | 739 | 121 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 406 | case TYPE_DOUBLE: | 741 | 406 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 4 | case TYPE_TIMEV2: | 743 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 243 | case TYPE_DECIMAL32: | 746 | 529 | case TYPE_DECIMAL64: | 747 | 1.77k | case TYPE_DECIMAL128I: | 748 | 1.80k | case TYPE_DECIMAL256: | 749 | 1.80k | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 1.80k | col_with_type_and_name_right); | 751 | 953 | case TYPE_CHAR: | 752 | 9.03k | case TYPE_VARCHAR: | 753 | 23.3k | case TYPE_STRING: | 754 | 23.3k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 17 | default: | 756 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 17 | col_with_type_and_name_right); | 758 | 93.3k | } | 759 | 0 | return Status::OK(); | 760 | 93.3k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 8.88k | uint32_t result, size_t input_rows_count) const override { | 663 | 8.88k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 8.88k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 8.88k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 8.88k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 8.88k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 8.88k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 8.88k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 8.88k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 8.88k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 8.88k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 8.88k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 8.88k | }; | 703 | | | 704 | 8.88k | if (can_compare(left_type->get_primitive_type()) && | 705 | 8.88k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 6.95k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 6.95k | } | 713 | | | 714 | 8.88k | auto compare_type = left_type->get_primitive_type(); | 715 | 8.88k | switch (compare_type) { | 716 | 0 | case TYPE_BOOLEAN: | 717 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 82 | case TYPE_DATEV2: | 719 | 82 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 2 | case TYPE_DATETIMEV2: | 721 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 0 | case TYPE_TIMESTAMPTZ: | 723 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 98 | case TYPE_TINYINT: | 725 | 98 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 26 | case TYPE_SMALLINT: | 727 | 26 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 3.56k | case TYPE_INT: | 729 | 3.56k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 3.07k | case TYPE_BIGINT: | 731 | 3.07k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 0 | case TYPE_LARGEINT: | 733 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 0 | case TYPE_IPV4: | 735 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 0 | case TYPE_IPV6: | 737 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 48 | case TYPE_FLOAT: | 739 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 60 | case TYPE_DOUBLE: | 741 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 0 | case TYPE_DECIMAL32: | 746 | 64 | case TYPE_DECIMAL64: | 747 | 388 | case TYPE_DECIMAL128I: | 748 | 418 | case TYPE_DECIMAL256: | 749 | 418 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 418 | col_with_type_and_name_right); | 751 | 17 | case TYPE_CHAR: | 752 | 338 | case TYPE_VARCHAR: | 753 | 1.50k | case TYPE_STRING: | 754 | 1.50k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 8 | default: | 756 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 8 | col_with_type_and_name_right); | 758 | 8.88k | } | 759 | 0 | return Status::OK(); | 760 | 8.88k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 53.2k | uint32_t result, size_t input_rows_count) const override { | 663 | 53.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 53.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 53.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 53.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 53.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 53.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 53.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 53.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 53.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 53.2k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 53.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 53.2k | }; | 703 | | | 704 | 53.2k | if (can_compare(left_type->get_primitive_type()) && | 705 | 53.2k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 49.9k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 49.9k | } | 713 | | | 714 | 53.2k | auto compare_type = left_type->get_primitive_type(); | 715 | 53.2k | switch (compare_type) { | 716 | 0 | case TYPE_BOOLEAN: | 717 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 1.39k | case TYPE_DATEV2: | 719 | 1.39k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 94 | case TYPE_DATETIMEV2: | 721 | 94 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 2 | case TYPE_TIMESTAMPTZ: | 723 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 1.47k | case TYPE_TINYINT: | 725 | 1.47k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 1.96k | case TYPE_SMALLINT: | 727 | 1.96k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 28.1k | case TYPE_INT: | 729 | 28.1k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 13.8k | case TYPE_BIGINT: | 731 | 13.8k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 256 | case TYPE_LARGEINT: | 733 | 256 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 4 | case TYPE_IPV4: | 735 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 1 | case TYPE_IPV6: | 737 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 236 | case TYPE_FLOAT: | 739 | 236 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 2.48k | case TYPE_DOUBLE: | 741 | 2.48k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 46 | case TYPE_DECIMAL32: | 746 | 1.64k | case TYPE_DECIMAL64: | 747 | 3.04k | case TYPE_DECIMAL128I: | 748 | 3.05k | case TYPE_DECIMAL256: | 749 | 3.05k | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 3.05k | col_with_type_and_name_right); | 751 | 14 | case TYPE_CHAR: | 752 | 76 | case TYPE_VARCHAR: | 753 | 199 | case TYPE_STRING: | 754 | 199 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 9 | default: | 756 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 9 | col_with_type_and_name_right); | 758 | 53.2k | } | 759 | 0 | return Status::OK(); | 760 | 53.2k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 18.2k | uint32_t result, size_t input_rows_count) const override { | 663 | 18.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 18.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 18.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 18.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 18.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 18.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 18.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 18.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 18.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 18.2k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 18.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 18.2k | }; | 703 | | | 704 | 18.2k | if (can_compare(left_type->get_primitive_type()) && | 705 | 18.2k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 16.9k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 16.9k | } | 713 | | | 714 | 18.2k | auto compare_type = left_type->get_primitive_type(); | 715 | 18.2k | switch (compare_type) { | 716 | 204 | case TYPE_BOOLEAN: | 717 | 204 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 1.57k | case TYPE_DATEV2: | 719 | 1.57k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 777 | case TYPE_DATETIMEV2: | 721 | 777 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 2 | case TYPE_TIMESTAMPTZ: | 723 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 37 | case TYPE_TINYINT: | 725 | 37 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 41 | case TYPE_SMALLINT: | 727 | 41 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 12.9k | case TYPE_INT: | 729 | 12.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 903 | case TYPE_BIGINT: | 731 | 903 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 46 | case TYPE_LARGEINT: | 733 | 46 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 11 | case TYPE_IPV4: | 735 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 1 | case TYPE_IPV6: | 737 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 228 | case TYPE_FLOAT: | 739 | 228 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 139 | case TYPE_DOUBLE: | 741 | 139 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 12 | case TYPE_DECIMAL32: | 746 | 389 | case TYPE_DECIMAL64: | 747 | 447 | case TYPE_DECIMAL128I: | 748 | 468 | case TYPE_DECIMAL256: | 749 | 468 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 468 | col_with_type_and_name_right); | 751 | 32 | case TYPE_CHAR: | 752 | 305 | case TYPE_VARCHAR: | 753 | 707 | case TYPE_STRING: | 754 | 707 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 87 | default: | 756 | 87 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 87 | col_with_type_and_name_right); | 758 | 18.2k | } | 759 | 0 | return Status::OK(); | 760 | 18.2k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 16.1k | uint32_t result, size_t input_rows_count) const override { | 663 | 16.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 16.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 16.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 16.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 16.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 16.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 16.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 16.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 16.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 16.1k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 16.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 16.1k | }; | 703 | | | 704 | 16.1k | if (can_compare(left_type->get_primitive_type()) && | 705 | 16.1k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 14.3k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 14.3k | } | 713 | | | 714 | 16.1k | auto compare_type = left_type->get_primitive_type(); | 715 | 16.1k | switch (compare_type) { | 716 | 91 | case TYPE_BOOLEAN: | 717 | 91 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 2.24k | case TYPE_DATEV2: | 719 | 2.24k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 658 | case TYPE_DATETIMEV2: | 721 | 658 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 3 | case TYPE_TIMESTAMPTZ: | 723 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 2.18k | case TYPE_TINYINT: | 725 | 2.18k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 404 | case TYPE_SMALLINT: | 727 | 404 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 6.23k | case TYPE_INT: | 729 | 6.23k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 1.70k | case TYPE_BIGINT: | 731 | 1.70k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 267 | case TYPE_LARGEINT: | 733 | 267 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 17 | case TYPE_IPV4: | 735 | 17 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 16 | case TYPE_IPV6: | 737 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 181 | case TYPE_FLOAT: | 739 | 181 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 385 | case TYPE_DOUBLE: | 741 | 385 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 188 | case TYPE_DECIMAL32: | 746 | 442 | case TYPE_DECIMAL64: | 747 | 983 | case TYPE_DECIMAL128I: | 748 | 984 | case TYPE_DECIMAL256: | 749 | 984 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 984 | col_with_type_and_name_right); | 751 | 183 | case TYPE_CHAR: | 752 | 373 | case TYPE_VARCHAR: | 753 | 752 | case TYPE_STRING: | 754 | 752 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 11 | default: | 756 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 11 | col_with_type_and_name_right); | 758 | 16.1k | } | 759 | 0 | return Status::OK(); | 760 | 16.1k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 180k | uint32_t result, size_t input_rows_count) const override { | 663 | 180k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 180k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 180k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 180k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 180k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 180k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 180k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 180k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 180k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 180k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 180k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 180k | }; | 703 | | | 704 | 180k | if (can_compare(left_type->get_primitive_type()) && | 705 | 180k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 34.8k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 34.8k | } | 713 | | | 714 | 180k | auto compare_type = left_type->get_primitive_type(); | 715 | 180k | switch (compare_type) { | 716 | 480 | case TYPE_BOOLEAN: | 717 | 480 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 10.7k | case TYPE_DATEV2: | 719 | 10.7k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 631 | case TYPE_DATETIMEV2: | 721 | 631 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 2 | case TYPE_TIMESTAMPTZ: | 723 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 261 | case TYPE_TINYINT: | 725 | 261 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 211 | case TYPE_SMALLINT: | 727 | 211 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 21.1k | case TYPE_INT: | 729 | 21.1k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 869 | case TYPE_BIGINT: | 731 | 869 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 61 | case TYPE_LARGEINT: | 733 | 61 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 10 | case TYPE_IPV4: | 735 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 0 | case TYPE_IPV6: | 737 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 224 | case TYPE_FLOAT: | 739 | 224 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 147 | case TYPE_DOUBLE: | 741 | 147 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 7 | case TYPE_DECIMAL32: | 746 | 143k | case TYPE_DECIMAL64: | 747 | 144k | case TYPE_DECIMAL128I: | 748 | 144k | case TYPE_DECIMAL256: | 749 | 144k | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 144k | col_with_type_and_name_right); | 751 | 304 | case TYPE_CHAR: | 752 | 1.11k | case TYPE_VARCHAR: | 753 | 1.90k | case TYPE_STRING: | 754 | 1.90k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 49 | default: | 756 | 49 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 49 | col_with_type_and_name_right); | 758 | 180k | } | 759 | 0 | return Status::OK(); | 760 | 180k | } |
|
761 | | }; |
762 | | |
763 | | } // namespace doris |