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 | | #include "storage/index/inverted/inverted_index_iterator.h" |
52 | | #include "storage/olap_define.h" |
53 | | |
54 | | namespace doris { |
55 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
56 | | * The comparison functions always return 0 or 1 (UInt8). |
57 | | * |
58 | | * You can compare the following types: |
59 | | * - numbers and decimals; |
60 | | * - strings and fixed strings; |
61 | | * - dates; |
62 | | * - datetimes; |
63 | | * within each group, but not from different groups; |
64 | | * - tuples (lexicographic comparison). |
65 | | * |
66 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
67 | | */ |
68 | | |
69 | | template <typename A, typename B, typename Op> |
70 | | struct NumComparisonImpl { |
71 | | /// 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. |
72 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
73 | 13.6k | PaddedPODArray<UInt8>& c) { |
74 | 13.6k | size_t size = a.size(); |
75 | 13.6k | const A* __restrict a_pos = a.data(); |
76 | 13.6k | const B* __restrict b_pos = b.data(); |
77 | 13.6k | UInt8* __restrict c_pos = c.data(); |
78 | 13.6k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 6.72M | while (a_pos < a_end) { |
81 | 6.71M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 6.71M | ++a_pos; |
83 | 6.71M | ++b_pos; |
84 | 6.71M | ++c_pos; |
85 | 6.71M | } |
86 | 13.6k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 79 | PaddedPODArray<UInt8>& c) { | 74 | 79 | size_t size = a.size(); | 75 | 79 | const A* __restrict a_pos = a.data(); | 76 | 79 | const B* __restrict b_pos = b.data(); | 77 | 79 | UInt8* __restrict c_pos = c.data(); | 78 | 79 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 162 | while (a_pos < a_end) { | 81 | 83 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 83 | ++a_pos; | 83 | 83 | ++b_pos; | 84 | 83 | ++c_pos; | 85 | 83 | } | 86 | 79 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 209 | PaddedPODArray<UInt8>& c) { | 74 | 209 | size_t size = a.size(); | 75 | 209 | const A* __restrict a_pos = a.data(); | 76 | 209 | const B* __restrict b_pos = b.data(); | 77 | 209 | UInt8* __restrict c_pos = c.data(); | 78 | 209 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.35k | while (a_pos < a_end) { | 81 | 1.14k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.14k | ++a_pos; | 83 | 1.14k | ++b_pos; | 84 | 1.14k | ++c_pos; | 85 | 1.14k | } | 86 | 209 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 215 | PaddedPODArray<UInt8>& c) { | 74 | 215 | size_t size = a.size(); | 75 | 215 | const A* __restrict a_pos = a.data(); | 76 | 215 | const B* __restrict b_pos = b.data(); | 77 | 215 | UInt8* __restrict c_pos = c.data(); | 78 | 215 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 442 | while (a_pos < a_end) { | 81 | 227 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 227 | ++a_pos; | 83 | 227 | ++b_pos; | 84 | 227 | ++c_pos; | 85 | 227 | } | 86 | 215 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 126 | PaddedPODArray<UInt8>& c) { | 74 | 126 | size_t size = a.size(); | 75 | 126 | const A* __restrict a_pos = a.data(); | 76 | 126 | const B* __restrict b_pos = b.data(); | 77 | 126 | UInt8* __restrict c_pos = c.data(); | 78 | 126 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 325 | while (a_pos < a_end) { | 81 | 199 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 199 | ++a_pos; | 83 | 199 | ++b_pos; | 84 | 199 | ++c_pos; | 85 | 199 | } | 86 | 126 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12 | while (a_pos < a_end) { | 81 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 10 | ++a_pos; | 83 | 10 | ++b_pos; | 84 | 10 | ++c_pos; | 85 | 10 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 190 | PaddedPODArray<UInt8>& c) { | 74 | 190 | size_t size = a.size(); | 75 | 190 | const A* __restrict a_pos = a.data(); | 76 | 190 | const B* __restrict b_pos = b.data(); | 77 | 190 | UInt8* __restrict c_pos = c.data(); | 78 | 190 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 522 | while (a_pos < a_end) { | 81 | 332 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 332 | ++a_pos; | 83 | 332 | ++b_pos; | 84 | 332 | ++c_pos; | 85 | 332 | } | 86 | 190 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 97 | PaddedPODArray<UInt8>& c) { | 74 | 97 | size_t size = a.size(); | 75 | 97 | const A* __restrict a_pos = a.data(); | 76 | 97 | const B* __restrict b_pos = b.data(); | 77 | 97 | UInt8* __restrict c_pos = c.data(); | 78 | 97 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 194 | while (a_pos < a_end) { | 81 | 97 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 97 | ++a_pos; | 83 | 97 | ++b_pos; | 84 | 97 | ++c_pos; | 85 | 97 | } | 86 | 97 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1.01k | PaddedPODArray<UInt8>& c) { | 74 | 1.01k | size_t size = a.size(); | 75 | 1.01k | const A* __restrict a_pos = a.data(); | 76 | 1.01k | const B* __restrict b_pos = b.data(); | 77 | 1.01k | UInt8* __restrict c_pos = c.data(); | 78 | 1.01k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 19.6k | while (a_pos < a_end) { | 81 | 18.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.6k | ++a_pos; | 83 | 18.6k | ++b_pos; | 84 | 18.6k | ++c_pos; | 85 | 18.6k | } | 86 | 1.01k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 190 | PaddedPODArray<UInt8>& c) { | 74 | 190 | size_t size = a.size(); | 75 | 190 | const A* __restrict a_pos = a.data(); | 76 | 190 | const B* __restrict b_pos = b.data(); | 77 | 190 | UInt8* __restrict c_pos = c.data(); | 78 | 190 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.58k | while (a_pos < a_end) { | 81 | 1.39k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.39k | ++a_pos; | 83 | 1.39k | ++b_pos; | 84 | 1.39k | ++c_pos; | 85 | 1.39k | } | 86 | 190 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 57 | PaddedPODArray<UInt8>& c) { | 74 | 57 | size_t size = a.size(); | 75 | 57 | const A* __restrict a_pos = a.data(); | 76 | 57 | const B* __restrict b_pos = b.data(); | 77 | 57 | UInt8* __restrict c_pos = c.data(); | 78 | 57 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 114 | while (a_pos < a_end) { | 81 | 57 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 57 | ++a_pos; | 83 | 57 | ++b_pos; | 84 | 57 | ++c_pos; | 85 | 57 | } | 86 | 57 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 5 | PaddedPODArray<UInt8>& c) { | 74 | 5 | size_t size = a.size(); | 75 | 5 | const A* __restrict a_pos = a.data(); | 76 | 5 | const B* __restrict b_pos = b.data(); | 77 | 5 | UInt8* __restrict c_pos = c.data(); | 78 | 5 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5 | ++a_pos; | 83 | 5 | ++b_pos; | 84 | 5 | ++c_pos; | 85 | 5 | } | 86 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 13 | PaddedPODArray<UInt8>& c) { | 74 | 13 | size_t size = a.size(); | 75 | 13 | const A* __restrict a_pos = a.data(); | 76 | 13 | const B* __restrict b_pos = b.data(); | 77 | 13 | UInt8* __restrict c_pos = c.data(); | 78 | 13 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 26 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 785 | PaddedPODArray<UInt8>& c) { | 74 | 785 | size_t size = a.size(); | 75 | 785 | const A* __restrict a_pos = a.data(); | 76 | 785 | const B* __restrict b_pos = b.data(); | 77 | 785 | UInt8* __restrict c_pos = c.data(); | 78 | 785 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 38.4k | while (a_pos < a_end) { | 81 | 37.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 37.6k | ++a_pos; | 83 | 37.6k | ++b_pos; | 84 | 37.6k | ++c_pos; | 85 | 37.6k | } | 86 | 785 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 77 | PaddedPODArray<UInt8>& c) { | 74 | 77 | size_t size = a.size(); | 75 | 77 | const A* __restrict a_pos = a.data(); | 76 | 77 | const B* __restrict b_pos = b.data(); | 77 | 77 | UInt8* __restrict c_pos = c.data(); | 78 | 77 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 173 | while (a_pos < a_end) { | 81 | 96 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 96 | ++a_pos; | 83 | 96 | ++b_pos; | 84 | 96 | ++c_pos; | 85 | 96 | } | 86 | 77 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 92 | PaddedPODArray<UInt8>& c) { | 74 | 92 | size_t size = a.size(); | 75 | 92 | const A* __restrict a_pos = a.data(); | 76 | 92 | const B* __restrict b_pos = b.data(); | 77 | 92 | UInt8* __restrict c_pos = c.data(); | 78 | 92 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 255 | while (a_pos < a_end) { | 81 | 163 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 163 | ++a_pos; | 83 | 163 | ++b_pos; | 84 | 163 | ++c_pos; | 85 | 163 | } | 86 | 92 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 52 | PaddedPODArray<UInt8>& c) { | 74 | 52 | size_t size = a.size(); | 75 | 52 | const A* __restrict a_pos = a.data(); | 76 | 52 | const B* __restrict b_pos = b.data(); | 77 | 52 | UInt8* __restrict c_pos = c.data(); | 78 | 52 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 104 | while (a_pos < a_end) { | 81 | 52 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 52 | ++a_pos; | 83 | 52 | ++b_pos; | 84 | 52 | ++c_pos; | 85 | 52 | } | 86 | 52 | } |
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 | 73 | 39 | PaddedPODArray<UInt8>& c) { | 74 | 39 | size_t size = a.size(); | 75 | 39 | const A* __restrict a_pos = a.data(); | 76 | 39 | const B* __restrict b_pos = b.data(); | 77 | 39 | UInt8* __restrict c_pos = c.data(); | 78 | 39 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 108 | while (a_pos < a_end) { | 81 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 69 | ++a_pos; | 83 | 69 | ++b_pos; | 84 | 69 | ++c_pos; | 85 | 69 | } | 86 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 9 | PaddedPODArray<UInt8>& c) { | 74 | 9 | size_t size = a.size(); | 75 | 9 | const A* __restrict a_pos = a.data(); | 76 | 9 | const B* __restrict b_pos = b.data(); | 77 | 9 | UInt8* __restrict c_pos = c.data(); | 78 | 9 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 22 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 9 | } |
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 | 73 | 56 | PaddedPODArray<UInt8>& c) { | 74 | 56 | size_t size = a.size(); | 75 | 56 | const A* __restrict a_pos = a.data(); | 76 | 56 | const B* __restrict b_pos = b.data(); | 77 | 56 | UInt8* __restrict c_pos = c.data(); | 78 | 56 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 252 | while (a_pos < a_end) { | 81 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 196 | ++a_pos; | 83 | 196 | ++b_pos; | 84 | 196 | ++c_pos; | 85 | 196 | } | 86 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2.48k | PaddedPODArray<UInt8>& c) { | 74 | 2.48k | size_t size = a.size(); | 75 | 2.48k | const A* __restrict a_pos = a.data(); | 76 | 2.48k | const B* __restrict b_pos = b.data(); | 77 | 2.48k | UInt8* __restrict c_pos = c.data(); | 78 | 2.48k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 382k | while (a_pos < a_end) { | 81 | 380k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 380k | ++a_pos; | 83 | 380k | ++b_pos; | 84 | 380k | ++c_pos; | 85 | 380k | } | 86 | 2.48k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 402 | PaddedPODArray<UInt8>& c) { | 74 | 402 | size_t size = a.size(); | 75 | 402 | const A* __restrict a_pos = a.data(); | 76 | 402 | const B* __restrict b_pos = b.data(); | 77 | 402 | UInt8* __restrict c_pos = c.data(); | 78 | 402 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 7.65k | while (a_pos < a_end) { | 81 | 7.24k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 7.24k | ++a_pos; | 83 | 7.24k | ++b_pos; | 84 | 7.24k | ++c_pos; | 85 | 7.24k | } | 86 | 402 | } |
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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 80 | while (a_pos < a_end) { | 81 | 57 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 57 | ++a_pos; | 83 | 57 | ++b_pos; | 84 | 57 | ++c_pos; | 85 | 57 | } | 86 | 23 | } |
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 | 73 | 1.21k | PaddedPODArray<UInt8>& c) { | 74 | 1.21k | size_t size = a.size(); | 75 | 1.21k | const A* __restrict a_pos = a.data(); | 76 | 1.21k | const B* __restrict b_pos = b.data(); | 77 | 1.21k | UInt8* __restrict c_pos = c.data(); | 78 | 1.21k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 3.81M | while (a_pos < a_end) { | 81 | 3.81M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 3.81M | ++a_pos; | 83 | 3.81M | ++b_pos; | 84 | 3.81M | ++c_pos; | 85 | 3.81M | } | 86 | 1.21k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 35 | PaddedPODArray<UInt8>& c) { | 74 | 35 | size_t size = a.size(); | 75 | 35 | const A* __restrict a_pos = a.data(); | 76 | 35 | const B* __restrict b_pos = b.data(); | 77 | 35 | UInt8* __restrict c_pos = c.data(); | 78 | 35 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 90 | while (a_pos < a_end) { | 81 | 55 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 55 | ++a_pos; | 83 | 55 | ++b_pos; | 84 | 55 | ++c_pos; | 85 | 55 | } | 86 | 35 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 70 | PaddedPODArray<UInt8>& c) { | 74 | 70 | size_t size = a.size(); | 75 | 70 | const A* __restrict a_pos = a.data(); | 76 | 70 | const B* __restrict b_pos = b.data(); | 77 | 70 | UInt8* __restrict c_pos = c.data(); | 78 | 70 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 384 | while (a_pos < a_end) { | 81 | 314 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 314 | ++a_pos; | 83 | 314 | ++b_pos; | 84 | 314 | ++c_pos; | 85 | 314 | } | 86 | 70 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 112 | PaddedPODArray<UInt8>& c) { | 74 | 112 | size_t size = a.size(); | 75 | 112 | const A* __restrict a_pos = a.data(); | 76 | 112 | const B* __restrict b_pos = b.data(); | 77 | 112 | UInt8* __restrict c_pos = c.data(); | 78 | 112 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 376 | while (a_pos < a_end) { | 81 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 264 | ++a_pos; | 83 | 264 | ++b_pos; | 84 | 264 | ++c_pos; | 85 | 264 | } | 86 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 76 | PaddedPODArray<UInt8>& c) { | 74 | 76 | size_t size = a.size(); | 75 | 76 | const A* __restrict a_pos = a.data(); | 76 | 76 | const B* __restrict b_pos = b.data(); | 77 | 76 | UInt8* __restrict c_pos = c.data(); | 78 | 76 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 8.57k | while (a_pos < a_end) { | 81 | 8.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 8.50k | ++a_pos; | 83 | 8.50k | ++b_pos; | 84 | 8.50k | ++c_pos; | 85 | 8.50k | } | 86 | 76 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 180 | PaddedPODArray<UInt8>& c) { | 74 | 180 | size_t size = a.size(); | 75 | 180 | const A* __restrict a_pos = a.data(); | 76 | 180 | const B* __restrict b_pos = b.data(); | 77 | 180 | UInt8* __restrict c_pos = c.data(); | 78 | 180 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 800k | while (a_pos < a_end) { | 81 | 800k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 800k | ++a_pos; | 83 | 800k | ++b_pos; | 84 | 800k | ++c_pos; | 85 | 800k | } | 86 | 180 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 30 | PaddedPODArray<UInt8>& c) { | 74 | 30 | size_t size = a.size(); | 75 | 30 | const A* __restrict a_pos = a.data(); | 76 | 30 | const B* __restrict b_pos = b.data(); | 77 | 30 | UInt8* __restrict c_pos = c.data(); | 78 | 30 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 119 | while (a_pos < a_end) { | 81 | 89 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 89 | ++a_pos; | 83 | 89 | ++b_pos; | 84 | 89 | ++c_pos; | 85 | 89 | } | 86 | 30 | } |
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 | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 7 | PaddedPODArray<UInt8>& c) { | 74 | 7 | size_t size = a.size(); | 75 | 7 | const A* __restrict a_pos = a.data(); | 76 | 7 | const B* __restrict b_pos = b.data(); | 77 | 7 | UInt8* __restrict c_pos = c.data(); | 78 | 7 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 66 | while (a_pos < a_end) { | 81 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 59 | ++a_pos; | 83 | 59 | ++b_pos; | 84 | 59 | ++c_pos; | 85 | 59 | } | 86 | 7 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 361 | PaddedPODArray<UInt8>& c) { | 74 | 361 | size_t size = a.size(); | 75 | 361 | const A* __restrict a_pos = a.data(); | 76 | 361 | const B* __restrict b_pos = b.data(); | 77 | 361 | UInt8* __restrict c_pos = c.data(); | 78 | 361 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.46k | while (a_pos < a_end) { | 81 | 1.10k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.10k | ++a_pos; | 83 | 1.10k | ++b_pos; | 84 | 1.10k | ++c_pos; | 85 | 1.10k | } | 86 | 361 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 4.16k | while (a_pos < a_end) { | 81 | 4.14k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4.14k | ++a_pos; | 83 | 4.14k | ++b_pos; | 84 | 4.14k | ++c_pos; | 85 | 4.14k | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 33 | PaddedPODArray<UInt8>& c) { | 74 | 33 | size_t size = a.size(); | 75 | 33 | const A* __restrict a_pos = a.data(); | 76 | 33 | const B* __restrict b_pos = b.data(); | 77 | 33 | UInt8* __restrict c_pos = c.data(); | 78 | 33 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12.3k | while (a_pos < a_end) { | 81 | 12.3k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 12.3k | ++a_pos; | 83 | 12.3k | ++b_pos; | 84 | 12.3k | ++c_pos; | 85 | 12.3k | } | 86 | 33 | } |
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 | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 108 | PaddedPODArray<UInt8>& c) { | 74 | 108 | size_t size = a.size(); | 75 | 108 | const A* __restrict a_pos = a.data(); | 76 | 108 | const B* __restrict b_pos = b.data(); | 77 | 108 | UInt8* __restrict c_pos = c.data(); | 78 | 108 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 864 | while (a_pos < a_end) { | 81 | 756 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 756 | ++a_pos; | 83 | 756 | ++b_pos; | 84 | 756 | ++c_pos; | 85 | 756 | } | 86 | 108 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 24 | PaddedPODArray<UInt8>& c) { | 74 | 24 | size_t size = a.size(); | 75 | 24 | const A* __restrict a_pos = a.data(); | 76 | 24 | const B* __restrict b_pos = b.data(); | 77 | 24 | UInt8* __restrict c_pos = c.data(); | 78 | 24 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 69 | while (a_pos < a_end) { | 81 | 45 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 45 | ++a_pos; | 83 | 45 | ++b_pos; | 84 | 45 | ++c_pos; | 85 | 45 | } | 86 | 24 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 98 | PaddedPODArray<UInt8>& c) { | 74 | 98 | size_t size = a.size(); | 75 | 98 | const A* __restrict a_pos = a.data(); | 76 | 98 | const B* __restrict b_pos = b.data(); | 77 | 98 | UInt8* __restrict c_pos = c.data(); | 78 | 98 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 370 | while (a_pos < a_end) { | 81 | 272 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 272 | ++a_pos; | 83 | 272 | ++b_pos; | 84 | 272 | ++c_pos; | 85 | 272 | } | 86 | 98 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.75k | PaddedPODArray<UInt8>& c) { | 74 | 1.75k | size_t size = a.size(); | 75 | 1.75k | const A* __restrict a_pos = a.data(); | 76 | 1.75k | const B* __restrict b_pos = b.data(); | 77 | 1.75k | UInt8* __restrict c_pos = c.data(); | 78 | 1.75k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.22M | while (a_pos < a_end) { | 81 | 1.22M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.22M | ++a_pos; | 83 | 1.22M | ++b_pos; | 84 | 1.22M | ++c_pos; | 85 | 1.22M | } | 86 | 1.75k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 249 | PaddedPODArray<UInt8>& c) { | 74 | 249 | size_t size = a.size(); | 75 | 249 | const A* __restrict a_pos = a.data(); | 76 | 249 | const B* __restrict b_pos = b.data(); | 77 | 249 | UInt8* __restrict c_pos = c.data(); | 78 | 249 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 846 | while (a_pos < a_end) { | 81 | 597 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 597 | ++a_pos; | 83 | 597 | ++b_pos; | 84 | 597 | ++c_pos; | 85 | 597 | } | 86 | 249 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 112 | PaddedPODArray<UInt8>& c) { | 74 | 112 | size_t size = a.size(); | 75 | 112 | const A* __restrict a_pos = a.data(); | 76 | 112 | const B* __restrict b_pos = b.data(); | 77 | 112 | UInt8* __restrict c_pos = c.data(); | 78 | 112 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 241 | while (a_pos < a_end) { | 81 | 129 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 129 | ++a_pos; | 83 | 129 | ++b_pos; | 84 | 129 | ++c_pos; | 85 | 129 | } | 86 | 112 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 215 | PaddedPODArray<UInt8>& c) { | 74 | 215 | size_t size = a.size(); | 75 | 215 | const A* __restrict a_pos = a.data(); | 76 | 215 | const B* __restrict b_pos = b.data(); | 77 | 215 | UInt8* __restrict c_pos = c.data(); | 78 | 215 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 604 | while (a_pos < a_end) { | 81 | 389 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 389 | ++a_pos; | 83 | 389 | ++b_pos; | 84 | 389 | ++c_pos; | 85 | 389 | } | 86 | 215 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 159 | PaddedPODArray<UInt8>& c) { | 74 | 159 | size_t size = a.size(); | 75 | 159 | const A* __restrict a_pos = a.data(); | 76 | 159 | const B* __restrict b_pos = b.data(); | 77 | 159 | UInt8* __restrict c_pos = c.data(); | 78 | 159 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 494 | while (a_pos < a_end) { | 81 | 335 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 335 | ++a_pos; | 83 | 335 | ++b_pos; | 84 | 335 | ++c_pos; | 85 | 335 | } | 86 | 159 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 902 | PaddedPODArray<UInt8>& c) { | 74 | 902 | size_t size = a.size(); | 75 | 902 | const A* __restrict a_pos = a.data(); | 76 | 902 | const B* __restrict b_pos = b.data(); | 77 | 902 | UInt8* __restrict c_pos = c.data(); | 78 | 902 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 18.9k | while (a_pos < a_end) { | 81 | 18.0k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.0k | ++a_pos; | 83 | 18.0k | ++b_pos; | 84 | 18.0k | ++c_pos; | 85 | 18.0k | } | 86 | 902 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 275 | PaddedPODArray<UInt8>& c) { | 74 | 275 | size_t size = a.size(); | 75 | 275 | const A* __restrict a_pos = a.data(); | 76 | 275 | const B* __restrict b_pos = b.data(); | 77 | 275 | UInt8* __restrict c_pos = c.data(); | 78 | 275 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 349k | while (a_pos < a_end) { | 81 | 349k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 349k | ++a_pos; | 83 | 349k | ++b_pos; | 84 | 349k | ++c_pos; | 85 | 349k | } | 86 | 275 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 141 | PaddedPODArray<UInt8>& c) { | 74 | 141 | size_t size = a.size(); | 75 | 141 | const A* __restrict a_pos = a.data(); | 76 | 141 | const B* __restrict b_pos = b.data(); | 77 | 141 | UInt8* __restrict c_pos = c.data(); | 78 | 141 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 456 | while (a_pos < a_end) { | 81 | 315 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 315 | ++a_pos; | 83 | 315 | ++b_pos; | 84 | 315 | ++c_pos; | 85 | 315 | } | 86 | 141 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 110 | PaddedPODArray<UInt8>& c) { | 74 | 110 | size_t size = a.size(); | 75 | 110 | const A* __restrict a_pos = a.data(); | 76 | 110 | const B* __restrict b_pos = b.data(); | 77 | 110 | UInt8* __restrict c_pos = c.data(); | 78 | 110 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 868 | while (a_pos < a_end) { | 81 | 758 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 758 | ++a_pos; | 83 | 758 | ++b_pos; | 84 | 758 | ++c_pos; | 85 | 758 | } | 86 | 110 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 135 | PaddedPODArray<UInt8>& c) { | 74 | 135 | size_t size = a.size(); | 75 | 135 | const A* __restrict a_pos = a.data(); | 76 | 135 | const B* __restrict b_pos = b.data(); | 77 | 135 | UInt8* __restrict c_pos = c.data(); | 78 | 135 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 463 | while (a_pos < a_end) { | 81 | 328 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 328 | ++a_pos; | 83 | 328 | ++b_pos; | 84 | 328 | ++c_pos; | 85 | 328 | } | 86 | 135 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 140 | PaddedPODArray<UInt8>& c) { | 74 | 140 | size_t size = a.size(); | 75 | 140 | const A* __restrict a_pos = a.data(); | 76 | 140 | const B* __restrict b_pos = b.data(); | 77 | 140 | UInt8* __restrict c_pos = c.data(); | 78 | 140 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 498 | while (a_pos < a_end) { | 81 | 358 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 358 | ++a_pos; | 83 | 358 | ++b_pos; | 84 | 358 | ++c_pos; | 85 | 358 | } | 86 | 140 | } |
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 | 73 | 401 | PaddedPODArray<UInt8>& c) { | 74 | 401 | size_t size = a.size(); | 75 | 401 | const A* __restrict a_pos = a.data(); | 76 | 401 | const B* __restrict b_pos = b.data(); | 77 | 401 | UInt8* __restrict c_pos = c.data(); | 78 | 401 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.03k | while (a_pos < a_end) { | 81 | 5.63k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.63k | ++a_pos; | 83 | 5.63k | ++b_pos; | 84 | 5.63k | ++c_pos; | 85 | 5.63k | } | 86 | 401 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 26 | PaddedPODArray<UInt8>& c) { | 74 | 26 | size_t size = a.size(); | 75 | 26 | const A* __restrict a_pos = a.data(); | 76 | 26 | const B* __restrict b_pos = b.data(); | 77 | 26 | UInt8* __restrict c_pos = c.data(); | 78 | 26 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 72 | while (a_pos < a_end) { | 81 | 46 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 46 | ++a_pos; | 83 | 46 | ++b_pos; | 84 | 46 | ++c_pos; | 85 | 46 | } | 86 | 26 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 5 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 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 | 73 | 47 | PaddedPODArray<UInt8>& c) { | 74 | 47 | size_t size = a.size(); | 75 | 47 | const A* __restrict a_pos = a.data(); | 76 | 47 | const B* __restrict b_pos = b.data(); | 77 | 47 | UInt8* __restrict c_pos = c.data(); | 78 | 47 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 16.5k | while (a_pos < a_end) { | 81 | 16.4k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 16.4k | ++a_pos; | 83 | 16.4k | ++b_pos; | 84 | 16.4k | ++c_pos; | 85 | 16.4k | } | 86 | 47 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 75 | PaddedPODArray<UInt8>& c) { | 74 | 75 | size_t size = a.size(); | 75 | 75 | const A* __restrict a_pos = a.data(); | 76 | 75 | const B* __restrict b_pos = b.data(); | 77 | 75 | UInt8* __restrict c_pos = c.data(); | 78 | 75 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 201 | while (a_pos < a_end) { | 81 | 126 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 126 | ++a_pos; | 83 | 126 | ++b_pos; | 84 | 126 | ++c_pos; | 85 | 126 | } | 86 | 75 | } |
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 _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
87 | | |
88 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
89 | 109k | PaddedPODArray<UInt8>& c) { |
90 | 109k | size_t size = a.size(); |
91 | 109k | const A* __restrict a_pos = a.data(); |
92 | 109k | UInt8* __restrict c_pos = c.data(); |
93 | 109k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 34.4M | while (a_pos < a_end) { |
96 | 34.3M | *c_pos = Op::apply(*a_pos, b); |
97 | 34.3M | ++a_pos; |
98 | 34.3M | ++c_pos; |
99 | 34.3M | } |
100 | 109k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 32 | PaddedPODArray<UInt8>& c) { | 90 | 32 | size_t size = a.size(); | 91 | 32 | const A* __restrict a_pos = a.data(); | 92 | 32 | UInt8* __restrict c_pos = c.data(); | 93 | 32 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 179 | while (a_pos < a_end) { | 96 | 147 | *c_pos = Op::apply(*a_pos, b); | 97 | 147 | ++a_pos; | 98 | 147 | ++c_pos; | 99 | 147 | } | 100 | 32 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 470 | PaddedPODArray<UInt8>& c) { | 90 | 470 | size_t size = a.size(); | 91 | 470 | const A* __restrict a_pos = a.data(); | 92 | 470 | UInt8* __restrict c_pos = c.data(); | 93 | 470 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 204k | while (a_pos < a_end) { | 96 | 204k | *c_pos = Op::apply(*a_pos, b); | 97 | 204k | ++a_pos; | 98 | 204k | ++c_pos; | 99 | 204k | } | 100 | 470 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 195 | PaddedPODArray<UInt8>& c) { | 90 | 195 | size_t size = a.size(); | 91 | 195 | const A* __restrict a_pos = a.data(); | 92 | 195 | UInt8* __restrict c_pos = c.data(); | 93 | 195 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 125k | while (a_pos < a_end) { | 96 | 125k | *c_pos = Op::apply(*a_pos, b); | 97 | 125k | ++a_pos; | 98 | 125k | ++c_pos; | 99 | 125k | } | 100 | 195 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 89 | PaddedPODArray<UInt8>& c) { | 90 | 89 | size_t size = a.size(); | 91 | 89 | const A* __restrict a_pos = a.data(); | 92 | 89 | UInt8* __restrict c_pos = c.data(); | 93 | 89 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 184 | while (a_pos < a_end) { | 96 | 95 | *c_pos = Op::apply(*a_pos, b); | 97 | 95 | ++a_pos; | 98 | 95 | ++c_pos; | 99 | 95 | } | 100 | 89 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 20 | while (a_pos < a_end) { | 96 | 10 | *c_pos = Op::apply(*a_pos, b); | 97 | 10 | ++a_pos; | 98 | 10 | ++c_pos; | 99 | 10 | } | 100 | 10 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.86k | PaddedPODArray<UInt8>& c) { | 90 | 5.86k | size_t size = a.size(); | 91 | 5.86k | const A* __restrict a_pos = a.data(); | 92 | 5.86k | UInt8* __restrict c_pos = c.data(); | 93 | 5.86k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8.80M | while (a_pos < a_end) { | 96 | 8.80M | *c_pos = Op::apply(*a_pos, b); | 97 | 8.80M | ++a_pos; | 98 | 8.80M | ++c_pos; | 99 | 8.80M | } | 100 | 5.86k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 299 | PaddedPODArray<UInt8>& c) { | 90 | 299 | size_t size = a.size(); | 91 | 299 | const A* __restrict a_pos = a.data(); | 92 | 299 | UInt8* __restrict c_pos = c.data(); | 93 | 299 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 101k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 299 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.29k | PaddedPODArray<UInt8>& c) { | 90 | 2.29k | size_t size = a.size(); | 91 | 2.29k | const A* __restrict a_pos = a.data(); | 92 | 2.29k | UInt8* __restrict c_pos = c.data(); | 93 | 2.29k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 202k | while (a_pos < a_end) { | 96 | 200k | *c_pos = Op::apply(*a_pos, b); | 97 | 200k | ++a_pos; | 98 | 200k | ++c_pos; | 99 | 200k | } | 100 | 2.29k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.17k | PaddedPODArray<UInt8>& c) { | 90 | 5.17k | size_t size = a.size(); | 91 | 5.17k | const A* __restrict a_pos = a.data(); | 92 | 5.17k | UInt8* __restrict c_pos = c.data(); | 93 | 5.17k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.44M | while (a_pos < a_end) { | 96 | 3.43M | *c_pos = Op::apply(*a_pos, b); | 97 | 3.43M | ++a_pos; | 98 | 3.43M | ++c_pos; | 99 | 3.43M | } | 100 | 5.17k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 45 | PaddedPODArray<UInt8>& c) { | 90 | 45 | size_t size = a.size(); | 91 | 45 | const A* __restrict a_pos = a.data(); | 92 | 45 | UInt8* __restrict c_pos = c.data(); | 93 | 45 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 100k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 45 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7 | PaddedPODArray<UInt8>& c) { | 90 | 7 | size_t size = a.size(); | 91 | 7 | const A* __restrict a_pos = a.data(); | 92 | 7 | UInt8* __restrict c_pos = c.data(); | 93 | 7 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 21 | while (a_pos < a_end) { | 96 | 14 | *c_pos = Op::apply(*a_pos, b); | 97 | 14 | ++a_pos; | 98 | 14 | ++c_pos; | 99 | 14 | } | 100 | 7 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 4 | *c_pos = Op::apply(*a_pos, b); | 97 | 4 | ++a_pos; | 98 | 4 | ++c_pos; | 99 | 4 | } | 100 | 4 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.02k | PaddedPODArray<UInt8>& c) { | 90 | 2.02k | size_t size = a.size(); | 91 | 2.02k | const A* __restrict a_pos = a.data(); | 92 | 2.02k | UInt8* __restrict c_pos = c.data(); | 93 | 2.02k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 68.5k | while (a_pos < a_end) { | 96 | 66.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 66.5k | ++a_pos; | 98 | 66.5k | ++c_pos; | 99 | 66.5k | } | 100 | 2.02k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 611 | PaddedPODArray<UInt8>& c) { | 90 | 611 | size_t size = a.size(); | 91 | 611 | const A* __restrict a_pos = a.data(); | 92 | 611 | UInt8* __restrict c_pos = c.data(); | 93 | 611 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 713k | while (a_pos < a_end) { | 96 | 712k | *c_pos = Op::apply(*a_pos, b); | 97 | 712k | ++a_pos; | 98 | 712k | ++c_pos; | 99 | 712k | } | 100 | 611 | } |
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 | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 82 | while (a_pos < a_end) { | 96 | 51 | *c_pos = Op::apply(*a_pos, b); | 97 | 51 | ++a_pos; | 98 | 51 | ++c_pos; | 99 | 51 | } | 100 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 6 | *c_pos = Op::apply(*a_pos, b); | 97 | 6 | ++a_pos; | 98 | 6 | ++c_pos; | 99 | 6 | } | 100 | 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 | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 78 | while (a_pos < a_end) { | 96 | 50 | *c_pos = Op::apply(*a_pos, b); | 97 | 50 | ++a_pos; | 98 | 50 | ++c_pos; | 99 | 50 | } | 100 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 274 | PaddedPODArray<UInt8>& c) { | 90 | 274 | size_t size = a.size(); | 91 | 274 | const A* __restrict a_pos = a.data(); | 92 | 274 | UInt8* __restrict c_pos = c.data(); | 93 | 274 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.98k | while (a_pos < a_end) { | 96 | 1.71k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.71k | ++a_pos; | 98 | 1.71k | ++c_pos; | 99 | 1.71k | } | 100 | 274 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 790 | PaddedPODArray<UInt8>& c) { | 90 | 790 | size_t size = a.size(); | 91 | 790 | const A* __restrict a_pos = a.data(); | 92 | 790 | UInt8* __restrict c_pos = c.data(); | 93 | 790 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.96k | while (a_pos < a_end) { | 96 | 5.17k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.17k | ++a_pos; | 98 | 5.17k | ++c_pos; | 99 | 5.17k | } | 100 | 790 | } |
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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 70 | while (a_pos < a_end) { | 96 | 42 | *c_pos = Op::apply(*a_pos, b); | 97 | 42 | ++a_pos; | 98 | 42 | ++c_pos; | 99 | 42 | } | 100 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 40 | PaddedPODArray<UInt8>& c) { | 90 | 40 | size_t size = a.size(); | 91 | 40 | const A* __restrict a_pos = a.data(); | 92 | 40 | UInt8* __restrict c_pos = c.data(); | 93 | 40 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 282 | while (a_pos < a_end) { | 96 | 242 | *c_pos = Op::apply(*a_pos, b); | 97 | 242 | ++a_pos; | 98 | 242 | ++c_pos; | 99 | 242 | } | 100 | 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 | 89 | 41 | PaddedPODArray<UInt8>& c) { | 90 | 41 | size_t size = a.size(); | 91 | 41 | const A* __restrict a_pos = a.data(); | 92 | 41 | UInt8* __restrict c_pos = c.data(); | 93 | 41 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 149 | while (a_pos < a_end) { | 96 | 108 | *c_pos = Op::apply(*a_pos, b); | 97 | 108 | ++a_pos; | 98 | 108 | ++c_pos; | 99 | 108 | } | 100 | 41 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 356 | PaddedPODArray<UInt8>& c) { | 90 | 356 | size_t size = a.size(); | 91 | 356 | const A* __restrict a_pos = a.data(); | 92 | 356 | UInt8* __restrict c_pos = c.data(); | 93 | 356 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.34M | while (a_pos < a_end) { | 96 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.34M | ++a_pos; | 98 | 1.34M | ++c_pos; | 99 | 1.34M | } | 100 | 356 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 5 | *c_pos = Op::apply(*a_pos, b); | 97 | 5 | ++a_pos; | 98 | 5 | ++c_pos; | 99 | 5 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 59 | PaddedPODArray<UInt8>& c) { | 90 | 59 | size_t size = a.size(); | 91 | 59 | const A* __restrict a_pos = a.data(); | 92 | 59 | UInt8* __restrict c_pos = c.data(); | 93 | 59 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 263 | while (a_pos < a_end) { | 96 | 204 | *c_pos = Op::apply(*a_pos, b); | 97 | 204 | ++a_pos; | 98 | 204 | ++c_pos; | 99 | 204 | } | 100 | 59 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 37 | PaddedPODArray<UInt8>& c) { | 90 | 37 | size_t size = a.size(); | 91 | 37 | const A* __restrict a_pos = a.data(); | 92 | 37 | UInt8* __restrict c_pos = c.data(); | 93 | 37 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86 | while (a_pos < a_end) { | 96 | 49 | *c_pos = Op::apply(*a_pos, b); | 97 | 49 | ++a_pos; | 98 | 49 | ++c_pos; | 99 | 49 | } | 100 | 37 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 112 | while (a_pos < a_end) { | 96 | 66 | *c_pos = Op::apply(*a_pos, b); | 97 | 66 | ++a_pos; | 98 | 66 | ++c_pos; | 99 | 66 | } | 100 | 46 | } |
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 | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 7 | *c_pos = Op::apply(*a_pos, b); | 97 | 7 | ++a_pos; | 98 | 7 | ++c_pos; | 99 | 7 | } | 100 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.20k | PaddedPODArray<UInt8>& c) { | 90 | 1.20k | size_t size = a.size(); | 91 | 1.20k | const A* __restrict a_pos = a.data(); | 92 | 1.20k | UInt8* __restrict c_pos = c.data(); | 93 | 1.20k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 13.0k | while (a_pos < a_end) { | 96 | 11.8k | *c_pos = Op::apply(*a_pos, b); | 97 | 11.8k | ++a_pos; | 98 | 11.8k | ++c_pos; | 99 | 11.8k | } | 100 | 1.20k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.13k | PaddedPODArray<UInt8>& c) { | 90 | 2.13k | size_t size = a.size(); | 91 | 2.13k | const A* __restrict a_pos = a.data(); | 92 | 2.13k | UInt8* __restrict c_pos = c.data(); | 93 | 2.13k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.97k | while (a_pos < a_end) { | 96 | 3.84k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.84k | ++a_pos; | 98 | 3.84k | ++c_pos; | 99 | 3.84k | } | 100 | 2.13k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.00k | PaddedPODArray<UInt8>& c) { | 90 | 2.00k | size_t size = a.size(); | 91 | 2.00k | const A* __restrict a_pos = a.data(); | 92 | 2.00k | UInt8* __restrict c_pos = c.data(); | 93 | 2.00k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.37k | while (a_pos < a_end) { | 96 | 5.36k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.36k | ++a_pos; | 98 | 5.36k | ++c_pos; | 99 | 5.36k | } | 100 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 212 | PaddedPODArray<UInt8>& c) { | 90 | 212 | size_t size = a.size(); | 91 | 212 | const A* __restrict a_pos = a.data(); | 92 | 212 | UInt8* __restrict c_pos = c.data(); | 93 | 212 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.21k | while (a_pos < a_end) { | 96 | 1.00k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.00k | ++a_pos; | 98 | 1.00k | ++c_pos; | 99 | 1.00k | } | 100 | 212 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.48k | PaddedPODArray<UInt8>& c) { | 90 | 5.48k | size_t size = a.size(); | 91 | 5.48k | const A* __restrict a_pos = a.data(); | 92 | 5.48k | UInt8* __restrict c_pos = c.data(); | 93 | 5.48k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 960k | while (a_pos < a_end) { | 96 | 955k | *c_pos = Op::apply(*a_pos, b); | 97 | 955k | ++a_pos; | 98 | 955k | ++c_pos; | 99 | 955k | } | 100 | 5.48k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 63.4k | PaddedPODArray<UInt8>& c) { | 90 | 63.4k | size_t size = a.size(); | 91 | 63.4k | const A* __restrict a_pos = a.data(); | 92 | 63.4k | UInt8* __restrict c_pos = c.data(); | 93 | 63.4k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.34M | while (a_pos < a_end) { | 96 | 5.28M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.28M | ++a_pos; | 98 | 5.28M | ++c_pos; | 99 | 5.28M | } | 100 | 63.4k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.79k | PaddedPODArray<UInt8>& c) { | 90 | 1.79k | size_t size = a.size(); | 91 | 1.79k | const A* __restrict a_pos = a.data(); | 92 | 1.79k | UInt8* __restrict c_pos = c.data(); | 93 | 1.79k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 99.2k | while (a_pos < a_end) { | 96 | 97.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 97.4k | ++a_pos; | 98 | 97.4k | ++c_pos; | 99 | 97.4k | } | 100 | 1.79k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.06k | PaddedPODArray<UInt8>& c) { | 90 | 1.06k | size_t size = a.size(); | 91 | 1.06k | const A* __restrict a_pos = a.data(); | 92 | 1.06k | UInt8* __restrict c_pos = c.data(); | 93 | 1.06k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 32.8k | while (a_pos < a_end) { | 96 | 31.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 31.7k | ++a_pos; | 98 | 31.7k | ++c_pos; | 99 | 31.7k | } | 100 | 1.06k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 243 | PaddedPODArray<UInt8>& c) { | 90 | 243 | size_t size = a.size(); | 91 | 243 | const A* __restrict a_pos = a.data(); | 92 | 243 | UInt8* __restrict c_pos = c.data(); | 93 | 243 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.86k | while (a_pos < a_end) { | 96 | 1.62k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.62k | ++a_pos; | 98 | 1.62k | ++c_pos; | 99 | 1.62k | } | 100 | 243 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 106 | PaddedPODArray<UInt8>& c) { | 90 | 106 | size_t size = a.size(); | 91 | 106 | const A* __restrict a_pos = a.data(); | 92 | 106 | UInt8* __restrict c_pos = c.data(); | 93 | 106 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86.2k | while (a_pos < a_end) { | 96 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 86.1k | ++a_pos; | 98 | 86.1k | ++c_pos; | 99 | 86.1k | } | 100 | 106 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 31 | while (a_pos < a_end) { | 96 | 28 | *c_pos = Op::apply(*a_pos, b); | 97 | 28 | ++a_pos; | 98 | 28 | ++c_pos; | 99 | 28 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 22 | while (a_pos < a_end) { | 96 | 20 | *c_pos = Op::apply(*a_pos, b); | 97 | 20 | ++a_pos; | 98 | 20 | ++c_pos; | 99 | 20 | } | 100 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 507 | PaddedPODArray<UInt8>& c) { | 90 | 507 | size_t size = a.size(); | 91 | 507 | const A* __restrict a_pos = a.data(); | 92 | 507 | UInt8* __restrict c_pos = c.data(); | 93 | 507 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.12k | while (a_pos < a_end) { | 96 | 3.61k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.61k | ++a_pos; | 98 | 3.61k | ++c_pos; | 99 | 3.61k | } | 100 | 507 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 347 | PaddedPODArray<UInt8>& c) { | 90 | 347 | size_t size = a.size(); | 91 | 347 | const A* __restrict a_pos = a.data(); | 92 | 347 | UInt8* __restrict c_pos = c.data(); | 93 | 347 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.02k | while (a_pos < a_end) { | 96 | 6.67k | *c_pos = Op::apply(*a_pos, b); | 97 | 6.67k | ++a_pos; | 98 | 6.67k | ++c_pos; | 99 | 6.67k | } | 100 | 347 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 401 | PaddedPODArray<UInt8>& c) { | 90 | 401 | size_t size = a.size(); | 91 | 401 | const A* __restrict a_pos = a.data(); | 92 | 401 | UInt8* __restrict c_pos = c.data(); | 93 | 401 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.18k | while (a_pos < a_end) { | 96 | 2.78k | *c_pos = Op::apply(*a_pos, b); | 97 | 2.78k | ++a_pos; | 98 | 2.78k | ++c_pos; | 99 | 2.78k | } | 100 | 401 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 568 | PaddedPODArray<UInt8>& c) { | 90 | 568 | size_t size = a.size(); | 91 | 568 | const A* __restrict a_pos = a.data(); | 92 | 568 | UInt8* __restrict c_pos = c.data(); | 93 | 568 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.04k | while (a_pos < a_end) { | 96 | 8.47k | *c_pos = Op::apply(*a_pos, b); | 97 | 8.47k | ++a_pos; | 98 | 8.47k | ++c_pos; | 99 | 8.47k | } | 100 | 568 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.02k | PaddedPODArray<UInt8>& c) { | 90 | 1.02k | size_t size = a.size(); | 91 | 1.02k | const A* __restrict a_pos = a.data(); | 92 | 1.02k | UInt8* __restrict c_pos = c.data(); | 93 | 1.02k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 284k | while (a_pos < a_end) { | 96 | 283k | *c_pos = Op::apply(*a_pos, b); | 97 | 283k | ++a_pos; | 98 | 283k | ++c_pos; | 99 | 283k | } | 100 | 1.02k | } |
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 | 89 | 32 | PaddedPODArray<UInt8>& c) { | 90 | 32 | size_t size = a.size(); | 91 | 32 | const A* __restrict a_pos = a.data(); | 92 | 32 | UInt8* __restrict c_pos = c.data(); | 93 | 32 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 159k | while (a_pos < a_end) { | 96 | 159k | *c_pos = Op::apply(*a_pos, b); | 97 | 159k | ++a_pos; | 98 | 159k | ++c_pos; | 99 | 159k | } | 100 | 32 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 52 | PaddedPODArray<UInt8>& c) { | 90 | 52 | size_t size = a.size(); | 91 | 52 | const A* __restrict a_pos = a.data(); | 92 | 52 | UInt8* __restrict c_pos = c.data(); | 93 | 52 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 172k | while (a_pos < a_end) { | 96 | 172k | *c_pos = Op::apply(*a_pos, b); | 97 | 172k | ++a_pos; | 98 | 172k | ++c_pos; | 99 | 172k | } | 100 | 52 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 459 | PaddedPODArray<UInt8>& c) { | 90 | 459 | size_t size = a.size(); | 91 | 459 | const A* __restrict a_pos = a.data(); | 92 | 459 | UInt8* __restrict c_pos = c.data(); | 93 | 459 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.51M | while (a_pos < a_end) { | 96 | 1.51M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.51M | ++a_pos; | 98 | 1.51M | ++c_pos; | 99 | 1.51M | } | 100 | 459 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 197 | PaddedPODArray<UInt8>& c) { | 90 | 197 | size_t size = a.size(); | 91 | 197 | const A* __restrict a_pos = a.data(); | 92 | 197 | UInt8* __restrict c_pos = c.data(); | 93 | 197 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 781k | while (a_pos < a_end) { | 96 | 781k | *c_pos = Op::apply(*a_pos, b); | 97 | 781k | ++a_pos; | 98 | 781k | ++c_pos; | 99 | 781k | } | 100 | 197 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 120 | PaddedPODArray<UInt8>& c) { | 90 | 120 | size_t size = a.size(); | 91 | 120 | const A* __restrict a_pos = a.data(); | 92 | 120 | UInt8* __restrict c_pos = c.data(); | 93 | 120 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 437 | while (a_pos < a_end) { | 96 | 317 | *c_pos = Op::apply(*a_pos, b); | 97 | 317 | ++a_pos; | 98 | 317 | ++c_pos; | 99 | 317 | } | 100 | 120 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 95 | PaddedPODArray<UInt8>& c) { | 90 | 95 | size_t size = a.size(); | 91 | 95 | const A* __restrict a_pos = a.data(); | 92 | 95 | UInt8* __restrict c_pos = c.data(); | 93 | 95 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 528 | while (a_pos < a_end) { | 96 | 433 | *c_pos = Op::apply(*a_pos, b); | 97 | 433 | ++a_pos; | 98 | 433 | ++c_pos; | 99 | 433 | } | 100 | 95 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 113 | while (a_pos < a_end) { | 96 | 67 | *c_pos = Op::apply(*a_pos, b); | 97 | 67 | ++a_pos; | 98 | 67 | ++c_pos; | 99 | 67 | } | 100 | 46 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 38 | PaddedPODArray<UInt8>& c) { | 90 | 38 | size_t size = a.size(); | 91 | 38 | const A* __restrict a_pos = a.data(); | 92 | 38 | UInt8* __restrict c_pos = c.data(); | 93 | 38 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 91 | while (a_pos < a_end) { | 96 | 53 | *c_pos = Op::apply(*a_pos, b); | 97 | 53 | ++a_pos; | 98 | 53 | ++c_pos; | 99 | 53 | } | 100 | 38 | } |
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 | 89 | 62 | PaddedPODArray<UInt8>& c) { | 90 | 62 | size_t size = a.size(); | 91 | 62 | const A* __restrict a_pos = a.data(); | 92 | 62 | UInt8* __restrict c_pos = c.data(); | 93 | 62 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 180k | while (a_pos < a_end) { | 96 | 180k | *c_pos = Op::apply(*a_pos, b); | 97 | 180k | ++a_pos; | 98 | 180k | ++c_pos; | 99 | 180k | } | 100 | 62 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 73 | PaddedPODArray<UInt8>& c) { | 90 | 73 | size_t size = a.size(); | 91 | 73 | const A* __restrict a_pos = a.data(); | 92 | 73 | UInt8* __restrict c_pos = c.data(); | 93 | 73 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 180k | while (a_pos < a_end) { | 96 | 180k | *c_pos = Op::apply(*a_pos, b); | 97 | 180k | ++a_pos; | 98 | 180k | ++c_pos; | 99 | 180k | } | 100 | 73 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 101 | PaddedPODArray<UInt8>& c) { | 90 | 101 | size_t size = a.size(); | 91 | 101 | const A* __restrict a_pos = a.data(); | 92 | 101 | UInt8* __restrict c_pos = c.data(); | 93 | 101 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 182k | while (a_pos < a_end) { | 96 | 182k | *c_pos = Op::apply(*a_pos, b); | 97 | 182k | ++a_pos; | 98 | 182k | ++c_pos; | 99 | 182k | } | 100 | 101 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 120 | PaddedPODArray<UInt8>& c) { | 90 | 120 | size_t size = a.size(); | 91 | 120 | const A* __restrict a_pos = a.data(); | 92 | 120 | UInt8* __restrict c_pos = c.data(); | 93 | 120 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 172k | while (a_pos < a_end) { | 96 | 172k | *c_pos = Op::apply(*a_pos, b); | 97 | 172k | ++a_pos; | 98 | 172k | ++c_pos; | 99 | 172k | } | 100 | 120 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 712 | PaddedPODArray<UInt8>& c) { | 90 | 712 | size_t size = a.size(); | 91 | 712 | const A* __restrict a_pos = a.data(); | 92 | 712 | UInt8* __restrict c_pos = c.data(); | 93 | 712 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.05M | while (a_pos < a_end) { | 96 | 2.05M | *c_pos = Op::apply(*a_pos, b); | 97 | 2.05M | ++a_pos; | 98 | 2.05M | ++c_pos; | 99 | 2.05M | } | 100 | 712 | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.93k | PaddedPODArray<UInt8>& c) { | 90 | 5.93k | size_t size = a.size(); | 91 | 5.93k | const A* __restrict a_pos = a.data(); | 92 | 5.93k | UInt8* __restrict c_pos = c.data(); | 93 | 5.93k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 6.03M | while (a_pos < a_end) { | 96 | 6.02M | *c_pos = Op::apply(*a_pos, b); | 97 | 6.02M | ++a_pos; | 98 | 6.02M | ++c_pos; | 99 | 6.02M | } | 100 | 5.93k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 773 | PaddedPODArray<UInt8>& c) { | 90 | 773 | size_t size = a.size(); | 91 | 773 | const A* __restrict a_pos = a.data(); | 92 | 773 | UInt8* __restrict c_pos = c.data(); | 93 | 773 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.13k | while (a_pos < a_end) { | 96 | 3.35k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.35k | ++a_pos; | 98 | 3.35k | ++c_pos; | 99 | 3.35k | } | 100 | 773 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 619 | PaddedPODArray<UInt8>& c) { | 90 | 619 | size_t size = a.size(); | 91 | 619 | const A* __restrict a_pos = a.data(); | 92 | 619 | UInt8* __restrict c_pos = c.data(); | 93 | 619 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 46.5k | while (a_pos < a_end) { | 96 | 45.9k | *c_pos = Op::apply(*a_pos, b); | 97 | 45.9k | ++a_pos; | 98 | 45.9k | ++c_pos; | 99 | 45.9k | } | 100 | 619 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 35 | PaddedPODArray<UInt8>& c) { | 90 | 35 | size_t size = a.size(); | 91 | 35 | const A* __restrict a_pos = a.data(); | 92 | 35 | UInt8* __restrict c_pos = c.data(); | 93 | 35 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 172k | while (a_pos < a_end) { | 96 | 171k | *c_pos = Op::apply(*a_pos, b); | 97 | 171k | ++a_pos; | 98 | 171k | ++c_pos; | 99 | 171k | } | 100 | 35 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 57 | PaddedPODArray<UInt8>& c) { | 90 | 57 | size_t size = a.size(); | 91 | 57 | const A* __restrict a_pos = a.data(); | 92 | 57 | UInt8* __restrict c_pos = c.data(); | 93 | 57 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 180k | while (a_pos < a_end) { | 96 | 180k | *c_pos = Op::apply(*a_pos, b); | 97 | 180k | ++a_pos; | 98 | 180k | ++c_pos; | 99 | 180k | } | 100 | 57 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 475 | PaddedPODArray<UInt8>& c) { | 90 | 475 | size_t size = a.size(); | 91 | 475 | const A* __restrict a_pos = a.data(); | 92 | 475 | UInt8* __restrict c_pos = c.data(); | 93 | 475 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 49.6k | while (a_pos < a_end) { | 96 | 49.2k | *c_pos = Op::apply(*a_pos, b); | 97 | 49.2k | ++a_pos; | 98 | 49.2k | ++c_pos; | 99 | 49.2k | } | 100 | 475 | } |
_ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 319 | PaddedPODArray<UInt8>& c) { | 90 | 319 | size_t size = a.size(); | 91 | 319 | const A* __restrict a_pos = a.data(); | 92 | 319 | UInt8* __restrict c_pos = c.data(); | 93 | 319 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.42k | while (a_pos < a_end) { | 96 | 3.10k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.10k | ++a_pos; | 98 | 3.10k | ++c_pos; | 99 | 3.10k | } | 100 | 319 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 28 | while (a_pos < a_end) { | 96 | 18 | *c_pos = Op::apply(*a_pos, b); | 97 | 18 | ++a_pos; | 98 | 18 | ++c_pos; | 99 | 18 | } | 100 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 111 | PaddedPODArray<UInt8>& c) { | 90 | 111 | size_t size = a.size(); | 91 | 111 | const A* __restrict a_pos = a.data(); | 92 | 111 | UInt8* __restrict c_pos = c.data(); | 93 | 111 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 275k | while (a_pos < a_end) { | 96 | 275k | *c_pos = Op::apply(*a_pos, b); | 97 | 275k | ++a_pos; | 98 | 275k | ++c_pos; | 99 | 275k | } | 100 | 111 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 109 | PaddedPODArray<UInt8>& c) { | 90 | 109 | size_t size = a.size(); | 91 | 109 | const A* __restrict a_pos = a.data(); | 92 | 109 | UInt8* __restrict c_pos = c.data(); | 93 | 109 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 275k | while (a_pos < a_end) { | 96 | 275k | *c_pos = Op::apply(*a_pos, b); | 97 | 275k | ++a_pos; | 98 | 275k | ++c_pos; | 99 | 275k | } | 100 | 109 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
101 | | |
102 | 66.1k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 66.1k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 66.1k | } 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 _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 102 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 12 | } |
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 | 102 | 210 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 210 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 210 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 30 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 30 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 30 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 132 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 132 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 132 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 884 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 884 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 884 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 54 | } |
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_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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 | 102 | 764 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 764 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 764 | } |
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: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_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_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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 | 102 | 186 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 186 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 186 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 198 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 198 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 198 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 62.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 62.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 62.5k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 518 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 518 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 518 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 56 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 56 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15constant_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 | 102 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_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_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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 | 102 | 180 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 180 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 180 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 191 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 191 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 191 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 80 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 80 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 80 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 41 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 41 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 41 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15constant_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 | 102 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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 | 102 | 20 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 20 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 20 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 36 | } |
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: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
105 | | }; |
106 | | |
107 | | /// Generic version, implemented for columns of same type. |
108 | | template <typename Op> |
109 | | struct GenericComparisonImpl { |
110 | 24 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 75 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
112 | 51 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
113 | 51 | } |
114 | 24 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 16 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 46 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 30 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 30 | } | 114 | 16 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 2 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 12 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 10 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 10 | } | 114 | 2 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 13 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 9 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 9 | } | 114 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
115 | | |
116 | 193 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 193 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 724k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 724k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 724k | } |
121 | 193 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 19 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 19 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 60 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 41 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 41 | } | 121 | 19 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 73 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 73 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 359k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 359k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 359k | } | 121 | 73 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 77 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 77 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 364k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 364k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 364k | } | 121 | 77 | } |
|
122 | | |
123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
125 | 1 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); | 125 | 1 | } |
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 |
126 | | }; |
127 | | |
128 | | template <typename Op> |
129 | | struct StringComparisonImpl { |
130 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
131 | | const ColumnString::Offsets& a_offsets, |
132 | | const ColumnString::Chars& b_data, |
133 | | const ColumnString::Offsets& b_offsets, |
134 | 437 | PaddedPODArray<UInt8>& c) { |
135 | 437 | size_t size = a_offsets.size(); |
136 | 437 | ColumnString::Offset prev_a_offset = 0; |
137 | 437 | ColumnString::Offset prev_b_offset = 0; |
138 | 437 | const auto* a_pos = a_data.data(); |
139 | 437 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.60k | for (size_t i = 0; i < size; ++i) { |
142 | 1.16k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.16k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.16k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.16k | 0); |
146 | | |
147 | 1.16k | prev_a_offset = a_offsets[i]; |
148 | 1.16k | prev_b_offset = b_offsets[i]; |
149 | 1.16k | } |
150 | 437 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 2 | PaddedPODArray<UInt8>& c) { | 135 | 2 | size_t size = a_offsets.size(); | 136 | 2 | ColumnString::Offset prev_a_offset = 0; | 137 | 2 | ColumnString::Offset prev_b_offset = 0; | 138 | 2 | const auto* a_pos = a_data.data(); | 139 | 2 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 49 | for (size_t i = 0; i < size; ++i) { | 142 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 47 | 0); | 146 | | | 147 | 47 | prev_a_offset = a_offsets[i]; | 148 | 47 | prev_b_offset = b_offsets[i]; | 149 | 47 | } | 150 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 31 | PaddedPODArray<UInt8>& c) { | 135 | 31 | size_t size = a_offsets.size(); | 136 | 31 | ColumnString::Offset prev_a_offset = 0; | 137 | 31 | ColumnString::Offset prev_b_offset = 0; | 138 | 31 | const auto* a_pos = a_data.data(); | 139 | 31 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 218 | for (size_t i = 0; i < size; ++i) { | 142 | 187 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 187 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 187 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 187 | 0); | 146 | | | 147 | 187 | prev_a_offset = a_offsets[i]; | 148 | 187 | prev_b_offset = b_offsets[i]; | 149 | 187 | } | 150 | 31 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 404 | PaddedPODArray<UInt8>& c) { | 135 | 404 | size_t size = a_offsets.size(); | 136 | 404 | ColumnString::Offset prev_a_offset = 0; | 137 | 404 | ColumnString::Offset prev_b_offset = 0; | 138 | 404 | const auto* a_pos = a_data.data(); | 139 | 404 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.33k | for (size_t i = 0; i < size; ++i) { | 142 | 934 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 934 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 934 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 934 | 0); | 146 | | | 147 | 934 | prev_a_offset = a_offsets[i]; | 148 | 934 | prev_b_offset = b_offsets[i]; | 149 | 934 | } | 150 | 404 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
151 | | |
152 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
153 | | const ColumnString::Offsets& a_offsets, |
154 | | const ColumnString::Chars& b_data, |
155 | | ColumnString::Offset b_size, |
156 | 954 | PaddedPODArray<UInt8>& c) { |
157 | 954 | size_t size = a_offsets.size(); |
158 | 954 | ColumnString::Offset prev_a_offset = 0; |
159 | 954 | const auto* a_pos = a_data.data(); |
160 | 954 | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.88M | for (size_t i = 0; i < size; ++i) { |
163 | 1.88M | c[i] = Op::apply( |
164 | 1.88M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.88M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.88M | 0); |
167 | | |
168 | 1.88M | prev_a_offset = a_offsets[i]; |
169 | 1.88M | } |
170 | 954 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 220 | PaddedPODArray<UInt8>& c) { | 157 | 220 | size_t size = a_offsets.size(); | 158 | 220 | ColumnString::Offset prev_a_offset = 0; | 159 | 220 | const auto* a_pos = a_data.data(); | 160 | 220 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 358k | for (size_t i = 0; i < size; ++i) { | 163 | 358k | c[i] = Op::apply( | 164 | 358k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 358k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 358k | 0); | 167 | | | 168 | 358k | prev_a_offset = a_offsets[i]; | 169 | 358k | } | 170 | 220 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 114 | PaddedPODArray<UInt8>& c) { | 157 | 114 | size_t size = a_offsets.size(); | 158 | 114 | ColumnString::Offset prev_a_offset = 0; | 159 | 114 | const auto* a_pos = a_data.data(); | 160 | 114 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 105k | for (size_t i = 0; i < size; ++i) { | 163 | 105k | c[i] = Op::apply( | 164 | 105k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 105k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 105k | 0); | 167 | | | 168 | 105k | prev_a_offset = a_offsets[i]; | 169 | 105k | } | 170 | 114 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 244 | PaddedPODArray<UInt8>& c) { | 157 | 244 | size_t size = a_offsets.size(); | 158 | 244 | ColumnString::Offset prev_a_offset = 0; | 159 | 244 | const auto* a_pos = a_data.data(); | 160 | 244 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 719k | for (size_t i = 0; i < size; ++i) { | 163 | 718k | c[i] = Op::apply( | 164 | 718k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 718k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 718k | 0); | 167 | | | 168 | 718k | prev_a_offset = a_offsets[i]; | 169 | 718k | } | 170 | 244 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 376 | PaddedPODArray<UInt8>& c) { | 157 | 376 | size_t size = a_offsets.size(); | 158 | 376 | ColumnString::Offset prev_a_offset = 0; | 159 | 376 | const auto* a_pos = a_data.data(); | 160 | 376 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 699k | for (size_t i = 0; i < size; ++i) { | 163 | 699k | c[i] = Op::apply( | 164 | 699k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 699k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 699k | 0); | 167 | | | 168 | 699k | prev_a_offset = a_offsets[i]; | 169 | 699k | } | 170 | 376 | } |
|
171 | | |
172 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
173 | | ColumnString::Offset a_size, |
174 | | const ColumnString::Chars& b_data, |
175 | | const ColumnString::Offsets& b_offsets, |
176 | 62 | PaddedPODArray<UInt8>& c) { |
177 | 62 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
178 | 62 | a_data, a_size, c); |
179 | 62 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 56 | PaddedPODArray<UInt8>& c) { | 177 | 56 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 56 | a_data, a_size, c); | 179 | 56 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 6 | PaddedPODArray<UInt8>& c) { | 177 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 6 | a_data, a_size, c); | 179 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
180 | | }; |
181 | | |
182 | | template <bool positive> |
183 | | struct StringEqualsImpl { |
184 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
185 | | const ColumnString::Offsets& a_offsets, |
186 | | const ColumnString::Chars& b_data, |
187 | | const ColumnString::Offsets& b_offsets, |
188 | 449 | PaddedPODArray<UInt8>& c) { |
189 | 449 | size_t size = a_offsets.size(); |
190 | 449 | ColumnString::Offset prev_a_offset = 0; |
191 | 449 | ColumnString::Offset prev_b_offset = 0; |
192 | 449 | const auto* a_pos = a_data.data(); |
193 | 449 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 13.7k | for (size_t i = 0; i < size; ++i) { |
196 | 13.2k | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 13.2k | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 13.2k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 13.2k | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 13.2k | prev_a_offset = a_offsets[i]; |
203 | 13.2k | prev_b_offset = b_offsets[i]; |
204 | 13.2k | } |
205 | 449 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 432 | PaddedPODArray<UInt8>& c) { | 189 | 432 | size_t size = a_offsets.size(); | 190 | 432 | ColumnString::Offset prev_a_offset = 0; | 191 | 432 | ColumnString::Offset prev_b_offset = 0; | 192 | 432 | const auto* a_pos = a_data.data(); | 193 | 432 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 8.54k | for (size_t i = 0; i < size; ++i) { | 196 | 8.11k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 8.11k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 8.11k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 8.11k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 8.11k | prev_a_offset = a_offsets[i]; | 203 | 8.11k | prev_b_offset = b_offsets[i]; | 204 | 8.11k | } | 205 | 432 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 17 | PaddedPODArray<UInt8>& c) { | 189 | 17 | size_t size = a_offsets.size(); | 190 | 17 | ColumnString::Offset prev_a_offset = 0; | 191 | 17 | ColumnString::Offset prev_b_offset = 0; | 192 | 17 | const auto* a_pos = a_data.data(); | 193 | 17 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 5.15k | for (size_t i = 0; i < size; ++i) { | 196 | 5.14k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 5.14k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 5.14k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 5.14k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 5.14k | prev_a_offset = a_offsets[i]; | 203 | 5.14k | prev_b_offset = b_offsets[i]; | 204 | 5.14k | } | 205 | 17 | } |
|
206 | | |
207 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
208 | | const ColumnString::Offsets& a_offsets, |
209 | | const ColumnString::Chars& b_data, |
210 | | ColumnString::Offset b_size, |
211 | 21.3k | PaddedPODArray<UInt8>& c) { |
212 | 21.3k | size_t size = a_offsets.size(); |
213 | 21.3k | if (b_size == 0) { |
214 | 1 | auto* __restrict data = c.data(); |
215 | 1 | auto* __restrict offsets = a_offsets.data(); |
216 | | |
217 | 1 | ColumnString::Offset prev_a_offset = 0; |
218 | 4 | for (size_t i = 0; i < size; ++i) { |
219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
220 | 3 | prev_a_offset = offsets[i]; |
221 | 3 | } |
222 | 21.3k | } else { |
223 | 21.3k | ColumnString::Offset prev_a_offset = 0; |
224 | 21.3k | const auto* a_pos = a_data.data(); |
225 | 21.3k | const auto* b_pos = b_data.data(); |
226 | 9.57M | for (size_t i = 0; i < size; ++i) { |
227 | 9.54M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 9.54M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 9.54M | b_pos, b_size); |
230 | 9.54M | prev_a_offset = a_offsets[i]; |
231 | 9.54M | } |
232 | 21.3k | } |
233 | 21.3k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 21.2k | PaddedPODArray<UInt8>& c) { | 212 | 21.2k | size_t size = a_offsets.size(); | 213 | 21.2k | if (b_size == 0) { | 214 | 0 | auto* __restrict data = c.data(); | 215 | 0 | auto* __restrict offsets = a_offsets.data(); | 216 | |
| 217 | 0 | ColumnString::Offset prev_a_offset = 0; | 218 | 0 | for (size_t i = 0; i < size; ++i) { | 219 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 0 | prev_a_offset = offsets[i]; | 221 | 0 | } | 222 | 21.2k | } else { | 223 | 21.2k | ColumnString::Offset prev_a_offset = 0; | 224 | 21.2k | const auto* a_pos = a_data.data(); | 225 | 21.2k | const auto* b_pos = b_data.data(); | 226 | 9.50M | for (size_t i = 0; i < size; ++i) { | 227 | 9.48M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 9.48M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 9.48M | b_pos, b_size); | 230 | 9.48M | prev_a_offset = a_offsets[i]; | 231 | 9.48M | } | 232 | 21.2k | } | 233 | 21.2k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 108 | PaddedPODArray<UInt8>& c) { | 212 | 108 | size_t size = a_offsets.size(); | 213 | 108 | if (b_size == 0) { | 214 | 1 | auto* __restrict data = c.data(); | 215 | 1 | auto* __restrict offsets = a_offsets.data(); | 216 | | | 217 | 1 | ColumnString::Offset prev_a_offset = 0; | 218 | 4 | for (size_t i = 0; i < size; ++i) { | 219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 3 | prev_a_offset = offsets[i]; | 221 | 3 | } | 222 | 107 | } else { | 223 | 107 | ColumnString::Offset prev_a_offset = 0; | 224 | 107 | const auto* a_pos = a_data.data(); | 225 | 107 | const auto* b_pos = b_data.data(); | 226 | 61.6k | for (size_t i = 0; i < size; ++i) { | 227 | 61.5k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 61.5k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 61.5k | b_pos, b_size); | 230 | 61.5k | prev_a_offset = a_offsets[i]; | 231 | 61.5k | } | 232 | 107 | } | 233 | 108 | } |
|
234 | | |
235 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
236 | | ColumnString::Offset a_size, |
237 | | const ColumnString::Chars& b_data, |
238 | | const ColumnString::Offsets& b_offsets, |
239 | 19 | PaddedPODArray<UInt8>& c) { |
240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 19 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 19 | PaddedPODArray<UInt8>& c) { | 240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 19 | } |
Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
242 | | }; |
243 | | |
244 | | template <PrimitiveType PT> |
245 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
246 | | |
247 | | template <PrimitiveType PT> |
248 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
249 | | |
250 | | struct NameEquals { |
251 | | static constexpr auto name = "eq"; |
252 | | }; |
253 | | struct NameNotEquals { |
254 | | static constexpr auto name = "ne"; |
255 | | }; |
256 | | struct NameLess { |
257 | | static constexpr auto name = "lt"; |
258 | | }; |
259 | | struct NameGreater { |
260 | | static constexpr auto name = "gt"; |
261 | | }; |
262 | | struct NameLessOrEquals { |
263 | | static constexpr auto name = "le"; |
264 | | }; |
265 | | struct NameGreaterOrEquals { |
266 | | static constexpr auto name = "ge"; |
267 | | }; |
268 | | |
269 | | namespace comparison_zonemap_detail { |
270 | | enum class Op { |
271 | | EQ, |
272 | | NE, |
273 | | LT, |
274 | | LE, |
275 | | GT, |
276 | | GE, |
277 | | }; |
278 | | |
279 | 19 | inline Op symmetric_op(Op op) { |
280 | 19 | switch (op) { |
281 | 0 | case Op::EQ: |
282 | 0 | case Op::NE: |
283 | 0 | return op; |
284 | 11 | case Op::LT: |
285 | 11 | return Op::GT; |
286 | 6 | case Op::LE: |
287 | 6 | return Op::GE; |
288 | 0 | case Op::GT: |
289 | 0 | return Op::LT; |
290 | 2 | case Op::GE: |
291 | 2 | return Op::LE; |
292 | 19 | } |
293 | 0 | __builtin_unreachable(); |
294 | 19 | } |
295 | | |
296 | | // Return true when `L <op> R` cannot be TRUE for any row, given that every non-null value of the |
297 | | // left operand lies in [lmin, lmax] and every non-null value of the right operand lies in |
298 | | // [rmin, rmax]. This only compares the four bounds: callers must already have rejected zone maps |
299 | | // whose bounds are unusable and columns that hold no non-null value at all. |
300 | | // |
301 | | // The slot-vs-literal path passes the literal as the degenerate range [literal, literal], which |
302 | | // reduces every branch below to the plain slot-vs-literal test it replaced. |
303 | | inline bool range_vs_range_no_match(const Field& lmin, const Field& lmax, const Field& rmin, |
304 | 3.74k | const Field& rmax, Op op) { |
305 | 3.74k | switch (op) { |
306 | 1.88k | case Op::EQ: |
307 | | // Disjoint ranges cannot share a value. |
308 | 1.88k | return lmin > rmax || rmin > lmax; |
309 | 173 | case Op::NE: |
310 | | // Only provable when both sides collapse to the same single value. |
311 | 173 | return lmin == lmax && rmin == rmax && lmin == rmin; |
312 | 545 | case Op::LT: |
313 | 545 | return lmin >= rmax; |
314 | 311 | case Op::LE: |
315 | 311 | return lmin > rmax; |
316 | 501 | case Op::GT: |
317 | 501 | return rmin >= lmax; |
318 | 328 | case Op::GE: |
319 | 328 | return rmin > lmax; |
320 | 3.74k | } |
321 | 0 | __builtin_unreachable(); |
322 | 3.74k | } |
323 | | |
324 | | inline ZoneMapFilterResult evaluate_slot_literal(const ZoneMapEvalContext& ctx, |
325 | | const expr_zonemap::SlotLiteral& slot_literal, |
326 | 3.40k | Op op) { |
327 | 3.40k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal.slot_index, |
328 | 3.40k | slot_literal.slot_type); |
329 | 3.40k | if (slot_type == nullptr) { |
330 | 293 | return unsupported_zonemap_filter(ctx); |
331 | 293 | } |
332 | 3.11k | auto zone_map_ptr = ctx.zone_map(slot_literal.slot_index); |
333 | 3.11k | if (zone_map_ptr == nullptr) { |
334 | 46 | return unsupported_zonemap_filter(ctx); |
335 | 46 | } |
336 | 3.06k | const auto& zone_map = *zone_map_ptr; |
337 | 3.06k | if (!zone_map.has_not_null) { |
338 | 49 | return ZoneMapFilterResult::kNoMatch; |
339 | 49 | } |
340 | 3.01k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
341 | 113 | return unsupported_zonemap_filter(ctx); |
342 | 113 | } |
343 | | |
344 | 2.90k | const auto effective_op = slot_literal.literal_on_left ? symmetric_op(op) : op; |
345 | 2.90k | const auto& literal = slot_literal.literal; |
346 | 2.90k | const bool literal_is_nan = literal.is_nan(); |
347 | 2.90k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
348 | 2.90k | (effective_op == Op::NE && !literal_is_nan) || |
349 | 2.90k | (effective_op == Op::GT && !literal_is_nan) || |
350 | 2.90k | effective_op == Op::GE; |
351 | 2.90k | if (ctx.floating_nan_count_unknown(slot_literal.slot_index) && hidden_nan_can_match) { |
352 | | // Parquet bounds omit NaNs, so only operators that cannot match a hidden NaN may prune. |
353 | 52 | return unsupported_zonemap_filter(ctx); |
354 | 52 | } |
355 | 2.85k | return range_vs_range_no_match(zone_map.min_value, zone_map.max_value, literal, literal, |
356 | 2.85k | effective_op) |
357 | 2.85k | ? ZoneMapFilterResult::kNoMatch |
358 | 2.85k | : ZoneMapFilterResult::kMayMatch; |
359 | 2.90k | } |
360 | | |
361 | | inline ZoneMapFilterResult evaluate_slot_slot(const ZoneMapEvalContext& ctx, |
362 | 961 | const expr_zonemap::SlotSlot& slot_slot, Op op) { |
363 | 961 | const auto left_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_slot.left_slot_index, |
364 | 961 | slot_slot.left_type); |
365 | 961 | const auto right_type = expr_zonemap::fetch_compatible_slot_type( |
366 | 961 | ctx, slot_slot.right_slot_index, slot_slot.right_type); |
367 | 961 | if (left_type == nullptr || right_type == nullptr) { |
368 | | // The context skips a slot entirely when the segment cannot apply predicates on it. |
369 | 1 | return unsupported_zonemap_filter(ctx); |
370 | 1 | } |
371 | 960 | const auto left_zone_map = ctx.zone_map(slot_slot.left_slot_index); |
372 | 960 | const auto right_zone_map = ctx.zone_map(slot_slot.right_slot_index); |
373 | 960 | if (left_zone_map == nullptr || right_zone_map == nullptr) { |
374 | | // A slot can be present with a data type but no zone map, so this is a separate check. |
375 | 9 | return unsupported_zonemap_filter(ctx); |
376 | 9 | } |
377 | | // A column holding no non-null value makes the comparison NULL on every row, which never |
378 | | // satisfies a WHERE conjunct. This must run before the range checks below: an all-null zone map |
379 | | // leaves min/max default-constructed as TYPE_NULL, which the range checks would fatal on. |
380 | 951 | if (!left_zone_map->has_not_null || !right_zone_map->has_not_null) { |
381 | 28 | return ZoneMapFilterResult::kNoMatch; |
382 | 28 | } |
383 | 923 | if (!expr_zonemap::range_stats_usable_for_zonemap(*left_zone_map, left_type) || |
384 | 923 | !expr_zonemap::range_stats_usable_for_zonemap(*right_zone_map, right_type)) { |
385 | 9 | return unsupported_zonemap_filter(ctx); |
386 | 9 | } |
387 | | // A native string zone-map max of exactly MAX_ZONE_MAP_INDEX_SIZE bytes was bumped upward, |
388 | | // and may also have been truncated (segments written before the carry fix may hold a bump |
389 | | // that wrapped on 0xff), so a bound of that length is not a reliable fence for a two-sided |
390 | | // proof. A shorter bound is the exact value; the bump never changes the length, so this also |
391 | | // rejects those wrapped bounds. |
392 | | // The test only decides whether to trust the bound as a fence. A Parquet-sourced string bound |
393 | | // shorter than the cap is not necessarily exact, but it is a spec-conservative min/max, which |
394 | | // is all a range proof needs; do not tighten this to assume exactness below the cap. |
395 | | // data_types_compatible pairs strings only with strings, so checking one side's type is enough |
396 | | // to know all four bounds are strings. |
397 | 914 | if (is_string_type(remove_nullable(left_type)->get_primitive_type())) { |
398 | 379 | auto is_untruncated = [](const Field& f) { |
399 | 379 | return f.get<TYPE_STRING>().size() < MAX_ZONE_MAP_INDEX_SIZE; |
400 | 379 | }; |
401 | 99 | if (!is_untruncated(left_zone_map->min_value) || |
402 | 99 | !is_untruncated(left_zone_map->max_value) || |
403 | 99 | !is_untruncated(right_zone_map->min_value) || |
404 | 99 | !is_untruncated(right_zone_map->max_value)) { |
405 | 3 | return unsupported_zonemap_filter(ctx); |
406 | 3 | } |
407 | 99 | } |
408 | | // Parquet bounds omit NaN without recording how many were skipped, so a zone map that looks |
409 | | // like a single point may still hide one, which would flip the NE rule from false to true. The |
410 | | // slot-vs-literal path can reason per operator because it knows whether the literal is NaN; |
411 | | // with two slots there is no literal, so bail out for every operator instead. |
412 | 911 | if (ctx.floating_nan_count_unknown(slot_slot.left_slot_index) || |
413 | 911 | ctx.floating_nan_count_unknown(slot_slot.right_slot_index)) { |
414 | 12 | return unsupported_zonemap_filter(ctx); |
415 | 12 | } |
416 | 899 | return range_vs_range_no_match(left_zone_map->min_value, left_zone_map->max_value, |
417 | 899 | right_zone_map->min_value, right_zone_map->max_value, op) |
418 | 899 | ? ZoneMapFilterResult::kNoMatch |
419 | 899 | : ZoneMapFilterResult::kMayMatch; |
420 | 911 | } |
421 | | |
422 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
423 | 4.35k | Op op) { |
424 | 4.35k | if (auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
425 | 4.35k | slot_literal.has_value()) { |
426 | 3.41k | return evaluate_slot_literal(ctx, *slot_literal, op); |
427 | 3.41k | } |
428 | 941 | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
429 | | // can_evaluate_zonemap_filter accepts exactly the two shapes handled above, so reaching this |
430 | | // point means the capability gate and this evaluator went out of sync. |
431 | 941 | DORIS_CHECK(slot_slot.has_value()); |
432 | 941 | return evaluate_slot_slot(ctx, *slot_slot, op); |
433 | 4.35k | } |
434 | | |
435 | 34.5k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
436 | 34.5k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
437 | 34.5k | if (!slot_literal.has_value()) { |
438 | 19.9k | return false; |
439 | 19.9k | } |
440 | | |
441 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
442 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
443 | | // shape here before evaluate_zonemap_filter is called. |
444 | 14.6k | if (slot_literal->literal.is_null()) { |
445 | 4 | return false; |
446 | 4 | } |
447 | | |
448 | 14.6k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
449 | 14.6k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
450 | 14.6k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
451 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
452 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
453 | | // values without running expression casts, so conservatively skip this optimization. |
454 | 1 | return false; |
455 | 1 | } |
456 | | |
457 | 14.6k | return true; |
458 | 14.6k | } |
459 | | |
460 | | // Accept a comparison whose both operands are slot references. Kept separate from can_evaluate on |
461 | | // purpose: can_evaluate also gates dictionary filtering and can_evaluate_equality, and both of |
462 | | // those dereference extract_slot_and_literal behind a DORIS_CHECK, so widening it would abort on a |
463 | | // slot-vs-slot expression. Only can_evaluate_zonemap_filter ORs this in. |
464 | 19.5k | inline bool can_evaluate_slot_slot(const VExprSPtrs& arguments) { |
465 | 19.5k | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
466 | 19.5k | if (!slot_slot.has_value()) { |
467 | 17.1k | return false; |
468 | 17.1k | } |
469 | 2.40k | DORIS_CHECK(slot_slot->left_type != nullptr); |
470 | 2.40k | DORIS_CHECK(slot_slot->right_type != nullptr); |
471 | | // Reject types whose slot-slot bounds cannot be compared safely: |
472 | | // - VARBINARY: v1 Parquet produces a TYPE_STRING bound for it, which |
473 | | // range_stats_usable_for_zonemap aborts on instead of falling back. |
474 | | // - VARIANT: a segment types a path slot by its inferred leaf type (a typed `v.a` is INT), so |
475 | | // fetch_compatible_slot_type's check against the VARIANT expression type would fail. |
476 | | // - ARRAY/MAP/STRUCT, JSONB, aggregate states: Field orders every pair of them as equal. |
477 | | // A truncated string bound is rejected later, in evaluate_slot_slot, by its length. |
478 | 5.09k | const auto excluded = [](const DataTypePtr& type) { |
479 | 5.09k | const auto primitive_type = remove_nullable(type)->get_primitive_type(); |
480 | 5.14k | return is_varbinary(primitive_type) || primitive_type == TYPE_VARIANT || |
481 | 5.13k | primitive_type == TYPE_JSONB || is_complex_type(primitive_type) || |
482 | 5.12k | is_var_len_object(primitive_type); |
483 | 5.09k | }; |
484 | 2.55k | if (excluded(slot_slot->left_type) || excluded(slot_slot->right_type)) { |
485 | 15 | return false; |
486 | 15 | } |
487 | | // The two zone maps' Fields are compared directly and Field comparison throws on mismatched |
488 | | // non-string types, so reject incompatible column pairs here. A pair differing only by width or |
489 | | // decimal scale never reaches this point anyway, because the optimizer inserts a cast and a |
490 | | // cast is not a VSlotRef. |
491 | 2.38k | return expr_zonemap::data_types_compatible(slot_slot->left_type, slot_slot->right_type); |
492 | 2.40k | } |
493 | | |
494 | 0 | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
495 | 0 | if (op != Op::EQ || !can_evaluate(arguments)) { |
496 | 0 | return false; |
497 | 0 | } |
498 | 0 | const auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
499 | 0 | DORIS_CHECK(slot_literal.has_value()); |
500 | 0 | // Bloom membership cannot disprove Doris NaN equality across different physical encodings. |
501 | 0 | return !slot_literal->literal.is_nan(); |
502 | 0 | } |
503 | | |
504 | 27 | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
505 | 27 | switch (op) { |
506 | 8 | case Op::EQ: |
507 | 8 | return value == literal; |
508 | 0 | case Op::NE: |
509 | 0 | return value != literal; |
510 | 5 | case Op::LT: |
511 | 5 | return value < literal; |
512 | 0 | case Op::LE: |
513 | 0 | return value <= literal; |
514 | 14 | case Op::GT: |
515 | 14 | return value > literal; |
516 | 0 | case Op::GE: |
517 | 0 | return value >= literal; |
518 | 27 | } |
519 | 0 | __builtin_unreachable(); |
520 | 27 | } |
521 | | |
522 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
523 | 14 | const VExprSPtrs& arguments, Op op) { |
524 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
525 | 14 | DORIS_CHECK(slot_literal.has_value()); |
526 | 14 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
527 | 14 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
528 | 0 | return ZoneMapFilterResult::kUnsupported; |
529 | 0 | } |
530 | 14 | DORIS_CHECK( |
531 | 14 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
532 | 14 | if (slot_literal->literal.is_null()) { |
533 | 0 | return ZoneMapFilterResult::kUnsupported; |
534 | 0 | } |
535 | 14 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
536 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
537 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
538 | 14 | return std::ranges::any_of(dictionary->values, |
539 | 27 | [&](const Field& value) { |
540 | 27 | return dictionary_value_matches(value, slot_literal->literal, |
541 | 27 | effective_op); |
542 | 27 | }) |
543 | 14 | ? ZoneMapFilterResult::kMayMatch |
544 | 14 | : ZoneMapFilterResult::kNoMatch; |
545 | 14 | } |
546 | | |
547 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
548 | 19 | const VExprSPtrs& arguments, Op op) { |
549 | 19 | DORIS_CHECK(op == Op::EQ); |
550 | 19 | auto slot_literal = expr_zonemap::extract_bloom_filter_slot_and_literal(arguments); |
551 | 19 | DORIS_CHECK(slot_literal.has_value()); |
552 | 19 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
553 | 19 | } |
554 | | |
555 | 39.3k | inline std::optional<Op> op_from_name(std::string_view name) { |
556 | 39.3k | if (name == NameEquals::name) { |
557 | 18.5k | return Op::EQ; |
558 | 18.5k | } |
559 | 20.7k | if (name == NameNotEquals::name) { |
560 | 1.61k | return Op::NE; |
561 | 1.61k | } |
562 | 19.1k | if (name == NameLess::name) { |
563 | 4.98k | return Op::LT; |
564 | 4.98k | } |
565 | 14.1k | if (name == NameLessOrEquals::name) { |
566 | 2.43k | return Op::LE; |
567 | 2.43k | } |
568 | 11.7k | if (name == NameGreater::name) { |
569 | 6.80k | return Op::GT; |
570 | 6.80k | } |
571 | 5.16k | if (name == NameGreaterOrEquals::name) { |
572 | 5.16k | return Op::GE; |
573 | 5.16k | } |
574 | 18.4E | return std::nullopt; |
575 | 4.93k | } |
576 | | } // namespace comparison_zonemap_detail |
577 | | |
578 | | template <template <PrimitiveType> class Op, typename Name> |
579 | | class FunctionComparison : public IFunction { |
580 | | public: |
581 | | static constexpr auto name = Name::name; |
582 | 288k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 582 | 257k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 582 | 1.30k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 582 | 7.28k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 582 | 9.09k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 582 | 4.08k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 582 | 10.1k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
583 | | |
584 | 288k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 584 | 257k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 584 | 1.31k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 584 | 7.29k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 584 | 9.08k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 584 | 4.09k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 584 | 10.1k | FunctionComparison() = default; |
|
585 | | |
586 | 671k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 586 | 663k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 586 | 612 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 586 | 2.40k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 586 | 2.15k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 586 | 1.27k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 586 | 1.00k | double execute_cost() const override { return 0.5; } |
|
587 | | |
588 | | private: |
589 | | template <PrimitiveType PT> |
590 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
591 | 123k | const ColumnPtr& col_right_ptr) const { |
592 | 123k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
593 | 123k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
594 | | |
595 | 123k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
596 | 123k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
597 | | |
598 | 123k | DCHECK(!(left_is_const && right_is_const)); |
599 | | |
600 | 123k | if (!left_is_const && !right_is_const) { |
601 | 13.6k | auto col_res = ColumnUInt8::create(); |
602 | | |
603 | 13.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
604 | 13.6k | vec_res.resize(col_left->get_data().size()); |
605 | 13.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
606 | 13.6k | typename PrimitiveTypeTraits<PT>::CppType, |
607 | 13.6k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
608 | 13.6k | vec_res); |
609 | | |
610 | 13.6k | block.replace_by_position(result, std::move(col_res)); |
611 | 109k | } else if (!left_is_const && right_is_const) { |
612 | 43.7k | auto col_res = ColumnUInt8::create(); |
613 | | |
614 | 43.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
615 | 43.7k | vec_res.resize(col_left->size()); |
616 | 43.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
617 | 43.7k | typename PrimitiveTypeTraits<PT>::CppType, |
618 | 43.7k | Op<PT>>::vector_constant(col_left->get_data(), |
619 | 43.7k | col_right->get_element(0), vec_res); |
620 | | |
621 | 43.7k | block.replace_by_position(result, std::move(col_res)); |
622 | 66.1k | } else if (left_is_const && !right_is_const) { |
623 | 66.1k | auto col_res = ColumnUInt8::create(); |
624 | | |
625 | 66.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
626 | 66.1k | vec_res.resize(col_right->size()); |
627 | 66.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
628 | 66.1k | typename PrimitiveTypeTraits<PT>::CppType, |
629 | 66.1k | Op<PT>>::constant_vector(col_left->get_element(0), |
630 | 66.1k | col_right->get_data(), vec_res); |
631 | | |
632 | 66.1k | block.replace_by_position(result, std::move(col_res)); |
633 | 66.1k | } |
634 | 123k | return Status::OK(); |
635 | 123k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 111 | const ColumnPtr& col_right_ptr) const { | 592 | 111 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 111 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 111 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 111 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 111 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 111 | if (!left_is_const && !right_is_const) { | 601 | 79 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 79 | vec_res.resize(col_left->get_data().size()); | 605 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 79 | vec_res); | 609 | | | 610 | 79 | block.replace_by_position(result, std::move(col_res)); | 611 | 79 | } else if (!left_is_const && right_is_const) { | 612 | 32 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 32 | vec_res.resize(col_left->size()); | 616 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 32 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 32 | col_right->get_element(0), vec_res); | 620 | | | 621 | 32 | block.replace_by_position(result, std::move(col_res)); | 622 | 32 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 111 | return Status::OK(); | 635 | 111 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 678 | const ColumnPtr& col_right_ptr) const { | 592 | 678 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 678 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 678 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 678 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 678 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 679 | if (!left_is_const && !right_is_const) { | 601 | 209 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 209 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 209 | vec_res.resize(col_left->get_data().size()); | 605 | 209 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 209 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 209 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 209 | vec_res); | 609 | | | 610 | 209 | block.replace_by_position(result, std::move(col_res)); | 611 | 470 | } else if (!left_is_const && right_is_const) { | 612 | 470 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 470 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 470 | vec_res.resize(col_left->size()); | 616 | 470 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 470 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 470 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 470 | col_right->get_element(0), vec_res); | 620 | | | 621 | 470 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 678 | return Status::OK(); | 635 | 678 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 410 | const ColumnPtr& col_right_ptr) const { | 592 | 410 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 410 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 410 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 410 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 410 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 410 | if (!left_is_const && !right_is_const) { | 601 | 215 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 215 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 215 | vec_res.resize(col_left->get_data().size()); | 605 | 215 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 215 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 215 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 215 | vec_res); | 609 | | | 610 | 215 | block.replace_by_position(result, std::move(col_res)); | 611 | 215 | } else if (!left_is_const && right_is_const) { | 612 | 195 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 195 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 195 | vec_res.resize(col_left->size()); | 616 | 195 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 195 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 195 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 195 | col_right->get_element(0), vec_res); | 620 | | | 621 | 195 | block.replace_by_position(result, std::move(col_res)); | 622 | 195 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 410 | return Status::OK(); | 635 | 410 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 215 | const ColumnPtr& col_right_ptr) const { | 592 | 215 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 215 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 215 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 215 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 215 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 215 | if (!left_is_const && !right_is_const) { | 601 | 126 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 126 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 126 | vec_res.resize(col_left->get_data().size()); | 605 | 126 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 126 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 126 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 126 | vec_res); | 609 | | | 610 | 126 | block.replace_by_position(result, std::move(col_res)); | 611 | 126 | } else if (!left_is_const && right_is_const) { | 612 | 77 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 77 | vec_res.resize(col_left->size()); | 616 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 77 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 77 | col_right->get_element(0), vec_res); | 620 | | | 621 | 77 | block.replace_by_position(result, std::move(col_res)); | 622 | 77 | } else if (left_is_const && !right_is_const) { | 623 | 12 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 12 | vec_res.resize(col_right->size()); | 627 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 12 | col_right->get_data(), vec_res); | 631 | | | 632 | 12 | block.replace_by_position(result, std::move(col_res)); | 633 | 12 | } | 634 | 215 | return Status::OK(); | 635 | 215 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 12 | const ColumnPtr& col_right_ptr) const { | 592 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 12 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 12 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 10 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 12 | return Status::OK(); | 635 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.05k | const ColumnPtr& col_right_ptr) const { | 592 | 6.05k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.05k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.05k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.05k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.05k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.05k | if (!left_is_const && !right_is_const) { | 601 | 190 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 190 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 190 | vec_res.resize(col_left->get_data().size()); | 605 | 190 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 190 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 190 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 190 | vec_res); | 609 | | | 610 | 190 | block.replace_by_position(result, std::move(col_res)); | 611 | 5.86k | } else if (!left_is_const && right_is_const) { | 612 | 5.65k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.65k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.65k | vec_res.resize(col_left->size()); | 616 | 5.65k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.65k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.65k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.65k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.65k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.65k | } else if (left_is_const && !right_is_const) { | 623 | 210 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 210 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 210 | vec_res.resize(col_right->size()); | 627 | 210 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 210 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 210 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 210 | col_right->get_data(), vec_res); | 631 | | | 632 | 210 | block.replace_by_position(result, std::move(col_res)); | 633 | 210 | } | 634 | 6.05k | return Status::OK(); | 635 | 6.05k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 395 | const ColumnPtr& col_right_ptr) const { | 592 | 395 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 395 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 395 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 395 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 395 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 395 | if (!left_is_const && !right_is_const) { | 601 | 97 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 97 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 97 | vec_res.resize(col_left->get_data().size()); | 605 | 97 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 97 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 97 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 97 | vec_res); | 609 | | | 610 | 97 | block.replace_by_position(result, std::move(col_res)); | 611 | 298 | } else if (!left_is_const && right_is_const) { | 612 | 269 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 269 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 269 | vec_res.resize(col_left->size()); | 616 | 269 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 269 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 269 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 269 | col_right->get_element(0), vec_res); | 620 | | | 621 | 269 | block.replace_by_position(result, std::move(col_res)); | 622 | 269 | } else if (left_is_const && !right_is_const) { | 623 | 30 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 30 | vec_res.resize(col_right->size()); | 627 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 30 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 30 | col_right->get_data(), vec_res); | 631 | | | 632 | 30 | block.replace_by_position(result, std::move(col_res)); | 633 | 30 | } | 634 | 395 | return Status::OK(); | 635 | 395 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3.30k | const ColumnPtr& col_right_ptr) const { | 592 | 3.30k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3.30k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3.30k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3.30k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3.30k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3.30k | if (!left_is_const && !right_is_const) { | 601 | 1.01k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.01k | vec_res.resize(col_left->get_data().size()); | 605 | 1.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.01k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.01k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.01k | vec_res); | 609 | | | 610 | 1.01k | block.replace_by_position(result, std::move(col_res)); | 611 | 2.28k | } else if (!left_is_const && right_is_const) { | 612 | 2.15k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.15k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.15k | vec_res.resize(col_left->size()); | 616 | 2.15k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.15k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.15k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.15k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.15k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.15k | } else if (left_is_const && !right_is_const) { | 623 | 132 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 132 | vec_res.resize(col_right->size()); | 627 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 132 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 132 | col_right->get_data(), vec_res); | 631 | | | 632 | 132 | block.replace_by_position(result, std::move(col_res)); | 633 | 132 | } | 634 | 3.30k | return Status::OK(); | 635 | 3.30k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 5.36k | const ColumnPtr& col_right_ptr) const { | 592 | 5.36k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 5.36k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 5.36k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 5.36k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 5.36k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 5.36k | if (!left_is_const && !right_is_const) { | 601 | 190 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 190 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 190 | vec_res.resize(col_left->get_data().size()); | 605 | 190 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 190 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 190 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 190 | vec_res); | 609 | | | 610 | 190 | block.replace_by_position(result, std::move(col_res)); | 611 | 5.17k | } else if (!left_is_const && right_is_const) { | 612 | 4.29k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 4.29k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 4.29k | vec_res.resize(col_left->size()); | 616 | 4.29k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 4.29k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 4.29k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 4.29k | col_right->get_element(0), vec_res); | 620 | | | 621 | 4.29k | block.replace_by_position(result, std::move(col_res)); | 622 | 4.29k | } else if (left_is_const && !right_is_const) { | 623 | 884 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 884 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 884 | vec_res.resize(col_right->size()); | 627 | 884 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 884 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 884 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 884 | col_right->get_data(), vec_res); | 631 | | | 632 | 884 | block.replace_by_position(result, std::move(col_res)); | 633 | 884 | } | 634 | 5.36k | return Status::OK(); | 635 | 5.36k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 102 | const ColumnPtr& col_right_ptr) const { | 592 | 102 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 102 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 102 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 102 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 102 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 102 | if (!left_is_const && !right_is_const) { | 601 | 57 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 57 | vec_res.resize(col_left->get_data().size()); | 605 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 57 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 57 | vec_res); | 609 | | | 610 | 57 | block.replace_by_position(result, std::move(col_res)); | 611 | 57 | } else if (!left_is_const && right_is_const) { | 612 | 29 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 29 | vec_res.resize(col_left->size()); | 616 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 29 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 29 | col_right->get_element(0), vec_res); | 620 | | | 621 | 29 | block.replace_by_position(result, std::move(col_res)); | 622 | 29 | } else if (left_is_const && !right_is_const) { | 623 | 16 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 16 | vec_res.resize(col_right->size()); | 627 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 16 | col_right->get_data(), vec_res); | 631 | | | 632 | 16 | block.replace_by_position(result, std::move(col_res)); | 633 | 16 | } | 634 | 102 | return Status::OK(); | 635 | 102 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 12 | const ColumnPtr& col_right_ptr) const { | 592 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 12 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 12 | if (!left_is_const && !right_is_const) { | 601 | 5 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 5 | vec_res.resize(col_left->get_data().size()); | 605 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 5 | vec_res); | 609 | | | 610 | 5 | block.replace_by_position(result, std::move(col_res)); | 611 | 7 | } else if (!left_is_const && right_is_const) { | 612 | 7 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 7 | vec_res.resize(col_left->size()); | 616 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 7 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 7 | col_right->get_element(0), vec_res); | 620 | | | 621 | 7 | block.replace_by_position(result, std::move(col_res)); | 622 | 7 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 12 | return Status::OK(); | 635 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 17 | const ColumnPtr& col_right_ptr) const { | 592 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 17 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 17 | if (!left_is_const && !right_is_const) { | 601 | 13 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 13 | vec_res.resize(col_left->get_data().size()); | 605 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 13 | vec_res); | 609 | | | 610 | 13 | block.replace_by_position(result, std::move(col_res)); | 611 | 13 | } else if (!left_is_const && right_is_const) { | 612 | 4 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 4 | vec_res.resize(col_left->size()); | 616 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 4 | col_right->get_element(0), vec_res); | 620 | | | 621 | 4 | block.replace_by_position(result, std::move(col_res)); | 622 | 4 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 17 | return Status::OK(); | 635 | 17 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.80k | const ColumnPtr& col_right_ptr) const { | 592 | 2.80k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.80k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.80k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.80k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.80k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.80k | if (!left_is_const && !right_is_const) { | 601 | 785 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 785 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 785 | vec_res.resize(col_left->get_data().size()); | 605 | 785 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 785 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 785 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 785 | vec_res); | 609 | | | 610 | 785 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.02k | } else if (!left_is_const && right_is_const) { | 612 | 1.96k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.96k | vec_res.resize(col_left->size()); | 616 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.96k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.96k | } else if (left_is_const && !right_is_const) { | 623 | 54 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 54 | vec_res.resize(col_right->size()); | 627 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 54 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 54 | col_right->get_data(), vec_res); | 631 | | | 632 | 54 | block.replace_by_position(result, std::move(col_res)); | 633 | 54 | } | 634 | 2.80k | return Status::OK(); | 635 | 2.80k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 77 | const ColumnPtr& col_right_ptr) const { | 592 | 77 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 77 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 77 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 77 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 77 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 77 | if (!left_is_const && !right_is_const) { | 601 | 76 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 76 | vec_res.resize(col_left->get_data().size()); | 605 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 76 | vec_res); | 609 | | | 610 | 76 | block.replace_by_position(result, std::move(col_res)); | 611 | 76 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 1 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 77 | return Status::OK(); | 635 | 77 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 703 | const ColumnPtr& col_right_ptr) const { | 592 | 703 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 703 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 703 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 703 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 703 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 703 | if (!left_is_const && !right_is_const) { | 601 | 92 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 92 | vec_res.resize(col_left->get_data().size()); | 605 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 92 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 92 | vec_res); | 609 | | | 610 | 92 | block.replace_by_position(result, std::move(col_res)); | 611 | 611 | } else if (!left_is_const && right_is_const) { | 612 | 611 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 611 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 611 | vec_res.resize(col_left->size()); | 616 | 611 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 611 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 611 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 611 | col_right->get_element(0), vec_res); | 620 | | | 621 | 611 | block.replace_by_position(result, std::move(col_res)); | 622 | 611 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 703 | return Status::OK(); | 635 | 703 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 52 | const ColumnPtr& col_right_ptr) const { | 592 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 52 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 52 | if (!left_is_const && !right_is_const) { | 601 | 52 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 52 | vec_res.resize(col_left->get_data().size()); | 605 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 52 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 52 | vec_res); | 609 | | | 610 | 52 | block.replace_by_position(result, std::move(col_res)); | 611 | 52 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 52 | return Status::OK(); | 635 | 52 | } |
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 | 591 | 70 | const ColumnPtr& col_right_ptr) const { | 592 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 70 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 70 | if (!left_is_const && !right_is_const) { | 601 | 39 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 39 | vec_res.resize(col_left->get_data().size()); | 605 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 39 | vec_res); | 609 | | | 610 | 39 | block.replace_by_position(result, std::move(col_res)); | 611 | 39 | } else if (!left_is_const && right_is_const) { | 612 | 31 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 31 | vec_res.resize(col_left->size()); | 616 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 31 | col_right->get_element(0), vec_res); | 620 | | | 621 | 31 | block.replace_by_position(result, std::move(col_res)); | 622 | 31 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 70 | return Status::OK(); | 635 | 70 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 11 | const ColumnPtr& col_right_ptr) const { | 592 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 11 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 11 | if (!left_is_const && !right_is_const) { | 601 | 9 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 9 | vec_res.resize(col_left->get_data().size()); | 605 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 9 | vec_res); | 609 | | | 610 | 9 | block.replace_by_position(result, std::move(col_res)); | 611 | 9 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 11 | return Status::OK(); | 635 | 11 | } |
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 | 591 | 84 | const ColumnPtr& col_right_ptr) const { | 592 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 84 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 84 | if (!left_is_const && !right_is_const) { | 601 | 56 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 56 | vec_res.resize(col_left->get_data().size()); | 605 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 56 | vec_res); | 609 | | | 610 | 56 | block.replace_by_position(result, std::move(col_res)); | 611 | 56 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 28 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 84 | return Status::OK(); | 635 | 84 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.75k | const ColumnPtr& col_right_ptr) const { | 592 | 2.75k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.75k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.75k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.75k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.75k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.76k | if (!left_is_const && !right_is_const) { | 601 | 2.48k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2.48k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2.48k | vec_res.resize(col_left->get_data().size()); | 605 | 2.48k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2.48k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2.48k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2.48k | vec_res); | 609 | | | 610 | 2.48k | block.replace_by_position(result, std::move(col_res)); | 611 | 2.48k | } else if (!left_is_const && right_is_const) { | 612 | 274 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 274 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 274 | vec_res.resize(col_left->size()); | 616 | 274 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 274 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 274 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 274 | col_right->get_element(0), vec_res); | 620 | | | 621 | 274 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2.75k | return Status::OK(); | 635 | 2.75k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.18k | const ColumnPtr& col_right_ptr) const { | 592 | 1.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.18k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.18k | if (!left_is_const && !right_is_const) { | 601 | 399 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 399 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 399 | vec_res.resize(col_left->get_data().size()); | 605 | 399 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 399 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 399 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 399 | vec_res); | 609 | | | 610 | 399 | block.replace_by_position(result, std::move(col_res)); | 611 | 789 | } else if (!left_is_const && right_is_const) { | 612 | 26 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 26 | vec_res.resize(col_left->size()); | 616 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 26 | col_right->get_element(0), vec_res); | 620 | | | 621 | 26 | block.replace_by_position(result, std::move(col_res)); | 622 | 764 | } else if (left_is_const && !right_is_const) { | 623 | 764 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 764 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 764 | vec_res.resize(col_right->size()); | 627 | 764 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 764 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 764 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 764 | col_right->get_data(), vec_res); | 631 | | | 632 | 764 | block.replace_by_position(result, std::move(col_res)); | 633 | 764 | } | 634 | 1.18k | return Status::OK(); | 635 | 1.18k | } |
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_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 48 | const ColumnPtr& col_right_ptr) const { | 592 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 48 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 48 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 28 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 28 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 48 | return Status::OK(); | 635 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 63 | const ColumnPtr& col_right_ptr) const { | 592 | 63 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 63 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 63 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 63 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 63 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 63 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 40 | } else if (!left_is_const && right_is_const) { | 612 | 40 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 40 | vec_res.resize(col_left->size()); | 616 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 40 | col_right->get_element(0), vec_res); | 620 | | | 621 | 40 | block.replace_by_position(result, std::move(col_res)); | 622 | 40 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 63 | return Status::OK(); | 635 | 63 | } |
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 | 591 | 1.25k | const ColumnPtr& col_right_ptr) const { | 592 | 1.25k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.25k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.25k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.25k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.25k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.25k | if (!left_is_const && !right_is_const) { | 601 | 1.20k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.20k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.20k | vec_res.resize(col_left->get_data().size()); | 605 | 1.20k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.20k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.20k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.20k | vec_res); | 609 | | | 610 | 1.20k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.20k | } else if (!left_is_const && right_is_const) { | 612 | 41 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 41 | vec_res.resize(col_left->size()); | 616 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 41 | col_right->get_element(0), vec_res); | 620 | | | 621 | 41 | block.replace_by_position(result, std::move(col_res)); | 622 | 41 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.25k | return Status::OK(); | 635 | 1.25k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3 | const ColumnPtr& col_right_ptr) const { | 592 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 3 | return Status::OK(); | 635 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 72 | const ColumnPtr& col_right_ptr) const { | 592 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 72 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 72 | if (!left_is_const && !right_is_const) { | 601 | 35 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 35 | vec_res.resize(col_left->get_data().size()); | 605 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 35 | vec_res); | 609 | | | 610 | 35 | block.replace_by_position(result, std::move(col_res)); | 611 | 37 | } else if (!left_is_const && right_is_const) { | 612 | 37 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 37 | vec_res.resize(col_left->size()); | 616 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 37 | col_right->get_element(0), vec_res); | 620 | | | 621 | 37 | block.replace_by_position(result, std::move(col_res)); | 622 | 37 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 72 | return Status::OK(); | 635 | 72 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.27k | const ColumnPtr& col_right_ptr) const { | 592 | 1.27k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.27k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.27k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.27k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.27k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.27k | if (!left_is_const && !right_is_const) { | 601 | 70 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 70 | vec_res.resize(col_left->get_data().size()); | 605 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 70 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 70 | vec_res); | 609 | | | 610 | 70 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.20k | } else if (!left_is_const && right_is_const) { | 612 | 1.02k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.02k | vec_res.resize(col_left->size()); | 616 | 1.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.02k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.02k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.02k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.02k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.02k | } else if (left_is_const && !right_is_const) { | 623 | 186 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 186 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 186 | vec_res.resize(col_right->size()); | 627 | 186 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 186 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 186 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 186 | col_right->get_data(), vec_res); | 631 | | | 632 | 186 | block.replace_by_position(result, std::move(col_res)); | 633 | 186 | } | 634 | 1.27k | return Status::OK(); | 635 | 1.27k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.31k | const ColumnPtr& col_right_ptr) const { | 592 | 2.31k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.31k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.31k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.31k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.31k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.31k | if (!left_is_const && !right_is_const) { | 601 | 112 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 112 | vec_res.resize(col_left->get_data().size()); | 605 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 112 | vec_res); | 609 | | | 610 | 112 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.20k | } else if (!left_is_const && right_is_const) { | 612 | 2.00k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.00k | vec_res.resize(col_left->size()); | 616 | 2.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.00k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.00k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.00k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.00k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.00k | } else if (left_is_const && !right_is_const) { | 623 | 198 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 198 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 198 | vec_res.resize(col_right->size()); | 627 | 198 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 198 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 198 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 198 | col_right->get_data(), vec_res); | 631 | | | 632 | 198 | block.replace_by_position(result, std::move(col_res)); | 633 | 198 | } | 634 | 2.31k | return Status::OK(); | 635 | 2.31k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 67.9k | const ColumnPtr& col_right_ptr) const { | 592 | 67.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 67.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 67.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 67.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 67.9k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 67.9k | if (!left_is_const && !right_is_const) { | 601 | 76 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 76 | vec_res.resize(col_left->get_data().size()); | 605 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 76 | vec_res); | 609 | | | 610 | 76 | block.replace_by_position(result, std::move(col_res)); | 611 | 67.8k | } else if (!left_is_const && right_is_const) { | 612 | 5.28k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.28k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.28k | vec_res.resize(col_left->size()); | 616 | 5.28k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.28k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.28k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.28k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.28k | block.replace_by_position(result, std::move(col_res)); | 622 | 62.5k | } else if (left_is_const && !right_is_const) { | 623 | 62.5k | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 62.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 62.5k | vec_res.resize(col_right->size()); | 627 | 62.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 62.5k | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 62.5k | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 62.5k | col_right->get_data(), vec_res); | 631 | | | 632 | 62.5k | block.replace_by_position(result, std::move(col_res)); | 633 | 62.5k | } | 634 | 67.9k | return Status::OK(); | 635 | 67.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.40k | const ColumnPtr& col_right_ptr) const { | 592 | 2.40k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.40k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.40k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.40k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.40k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.40k | if (!left_is_const && !right_is_const) { | 601 | 180 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 180 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 180 | vec_res.resize(col_left->get_data().size()); | 605 | 180 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 180 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 180 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 180 | vec_res); | 609 | | | 610 | 180 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.22k | } else if (!left_is_const && right_is_const) { | 612 | 1.70k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.70k | vec_res.resize(col_left->size()); | 616 | 1.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.70k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.70k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.70k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.70k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.70k | } else if (left_is_const && !right_is_const) { | 623 | 518 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 518 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 518 | vec_res.resize(col_right->size()); | 627 | 518 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 518 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 518 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 518 | col_right->get_data(), vec_res); | 631 | | | 632 | 518 | block.replace_by_position(result, std::move(col_res)); | 633 | 518 | } | 634 | 2.40k | return Status::OK(); | 635 | 2.40k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 260 | const ColumnPtr& col_right_ptr) const { | 592 | 260 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 260 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 260 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 260 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 260 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 260 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 258 | } else if (!left_is_const && right_is_const) { | 612 | 202 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 202 | vec_res.resize(col_left->size()); | 616 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 202 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 202 | col_right->get_element(0), vec_res); | 620 | | | 621 | 202 | block.replace_by_position(result, std::move(col_res)); | 622 | 202 | } else if (left_is_const && !right_is_const) { | 623 | 56 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 56 | vec_res.resize(col_right->size()); | 627 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 56 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 56 | col_right->get_data(), vec_res); | 631 | | | 632 | 56 | block.replace_by_position(result, std::move(col_res)); | 633 | 56 | } | 634 | 260 | return Status::OK(); | 635 | 260 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 4 | const ColumnPtr& col_right_ptr) const { | 592 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 4 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 4 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 4 | return Status::OK(); | 635 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 611 | const ColumnPtr& col_right_ptr) const { | 592 | 611 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 611 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 611 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 611 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 611 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 611 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 507 | } else if (!left_is_const && right_is_const) { | 612 | 507 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 507 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 507 | vec_res.resize(col_left->size()); | 616 | 507 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 507 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 507 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 507 | col_right->get_element(0), vec_res); | 620 | | | 621 | 507 | block.replace_by_position(result, std::move(col_res)); | 622 | 507 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 611 | return Status::OK(); | 635 | 611 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 420 | const ColumnPtr& col_right_ptr) const { | 592 | 420 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 420 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 420 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 420 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 420 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 420 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 400 | } else if (!left_is_const && right_is_const) { | 612 | 399 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 399 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 399 | vec_res.resize(col_left->size()); | 616 | 399 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 399 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 399 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 399 | col_right->get_element(0), vec_res); | 620 | | | 621 | 399 | block.replace_by_position(result, std::move(col_res)); | 622 | 399 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 420 | return Status::OK(); | 635 | 420 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 593 | const ColumnPtr& col_right_ptr) const { | 592 | 593 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 593 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 593 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 593 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 593 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 597 | if (!left_is_const && !right_is_const) { | 601 | 30 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 30 | vec_res.resize(col_left->get_data().size()); | 605 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 30 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 30 | vec_res); | 609 | | | 610 | 30 | block.replace_by_position(result, std::move(col_res)); | 611 | 567 | } else if (!left_is_const && right_is_const) { | 612 | 566 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 566 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 566 | vec_res.resize(col_left->size()); | 616 | 566 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 566 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 566 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 566 | col_right->get_element(0), vec_res); | 620 | | | 621 | 566 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 593 | return Status::OK(); | 635 | 593 | } |
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 | 591 | 32 | const ColumnPtr& col_right_ptr) const { | 592 | 32 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 32 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 32 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 32 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 32 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 32 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 32 | } else if (!left_is_const && right_is_const) { | 612 | 32 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 32 | vec_res.resize(col_left->size()); | 616 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 32 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 32 | col_right->get_element(0), vec_res); | 620 | | | 621 | 32 | block.replace_by_position(result, std::move(col_res)); | 622 | 32 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 32 | return Status::OK(); | 635 | 32 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 461 | const ColumnPtr& col_right_ptr) const { | 592 | 461 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 461 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 461 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 461 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 461 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 461 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 460 | } else if (!left_is_const && right_is_const) { | 612 | 454 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 454 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 454 | vec_res.resize(col_left->size()); | 616 | 454 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 454 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 454 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 454 | col_right->get_element(0), vec_res); | 620 | | | 621 | 454 | block.replace_by_position(result, std::move(col_res)); | 622 | 454 | } else if (left_is_const && !right_is_const) { | 623 | 6 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 6 | vec_res.resize(col_right->size()); | 627 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 6 | col_right->get_data(), vec_res); | 631 | | | 632 | 6 | block.replace_by_position(result, std::move(col_res)); | 633 | 6 | } | 634 | 461 | return Status::OK(); | 635 | 461 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 126 | const ColumnPtr& col_right_ptr) const { | 592 | 126 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 126 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 126 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 126 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 126 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 127 | if (!left_is_const && !right_is_const) { | 601 | 7 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 7 | vec_res.resize(col_left->get_data().size()); | 605 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 7 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 7 | vec_res); | 609 | | | 610 | 7 | block.replace_by_position(result, std::move(col_res)); | 611 | 120 | } else if (!left_is_const && right_is_const) { | 612 | 120 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 120 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 120 | vec_res.resize(col_left->size()); | 616 | 120 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 120 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 120 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 120 | col_right->get_element(0), vec_res); | 620 | | | 621 | 120 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 126 | return Status::OK(); | 635 | 126 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 407 | const ColumnPtr& col_right_ptr) const { | 592 | 407 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 407 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 407 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 407 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 407 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 407 | if (!left_is_const && !right_is_const) { | 601 | 361 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 361 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 361 | vec_res.resize(col_left->get_data().size()); | 605 | 361 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 361 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 361 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 361 | vec_res); | 609 | | | 610 | 361 | block.replace_by_position(result, std::move(col_res)); | 611 | 361 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 46 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 407 | return Status::OK(); | 635 | 407 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 62 | const ColumnPtr& col_right_ptr) const { | 592 | 62 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 62 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 62 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 62 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 62 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 62 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 62 | } else if (!left_is_const && right_is_const) { | 612 | 62 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 62 | vec_res.resize(col_left->size()); | 616 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 62 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 62 | col_right->get_element(0), vec_res); | 620 | | | 621 | 62 | block.replace_by_position(result, std::move(col_res)); | 622 | 62 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 62 | return Status::OK(); | 635 | 62 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 101 | const ColumnPtr& col_right_ptr) const { | 592 | 101 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 101 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 101 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 101 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 101 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 101 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 101 | } else if (!left_is_const && right_is_const) { | 612 | 101 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 101 | vec_res.resize(col_left->size()); | 616 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 101 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 101 | col_right->get_element(0), vec_res); | 620 | | | 621 | 101 | block.replace_by_position(result, std::move(col_res)); | 622 | 101 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 101 | return Status::OK(); | 635 | 101 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 712 | const ColumnPtr& col_right_ptr) const { | 592 | 712 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 712 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 712 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 712 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 712 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 712 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 692 | } else if (!left_is_const && right_is_const) { | 612 | 692 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 692 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 692 | vec_res.resize(col_left->size()); | 616 | 692 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 692 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 692 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 692 | col_right->get_element(0), vec_res); | 620 | | | 621 | 692 | block.replace_by_position(result, std::move(col_res)); | 622 | 692 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 712 | return Status::OK(); | 635 | 712 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 769 | const ColumnPtr& col_right_ptr) const { | 592 | 769 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 769 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 769 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 769 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 769 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 769 | if (!left_is_const && !right_is_const) { | 601 | 32 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 32 | vec_res.resize(col_left->get_data().size()); | 605 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 32 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 32 | vec_res); | 609 | | | 610 | 32 | block.replace_by_position(result, std::move(col_res)); | 611 | 737 | } else if (!left_is_const && right_is_const) { | 612 | 737 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 737 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 737 | vec_res.resize(col_left->size()); | 616 | 737 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 737 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 737 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 737 | col_right->get_element(0), vec_res); | 620 | | | 621 | 737 | block.replace_by_position(result, std::move(col_res)); | 622 | 737 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 769 | return Status::OK(); | 635 | 769 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 35 | const ColumnPtr& col_right_ptr) const { | 592 | 35 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 35 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 35 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 35 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 35 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 35 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 35 | } else if (!left_is_const && right_is_const) { | 612 | 35 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 35 | vec_res.resize(col_left->size()); | 616 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 35 | col_right->get_element(0), vec_res); | 620 | | | 621 | 35 | block.replace_by_position(result, std::move(col_res)); | 622 | 35 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 35 | return Status::OK(); | 635 | 35 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 583 | const ColumnPtr& col_right_ptr) const { | 592 | 583 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 583 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 583 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 583 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 583 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 583 | if (!left_is_const && !right_is_const) { | 601 | 108 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 108 | vec_res.resize(col_left->get_data().size()); | 605 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 108 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 108 | vec_res); | 609 | | | 610 | 108 | block.replace_by_position(result, std::move(col_res)); | 611 | 475 | } else if (!left_is_const && right_is_const) { | 612 | 475 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 475 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 475 | vec_res.resize(col_left->size()); | 616 | 475 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 475 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 475 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 475 | col_right->get_element(0), vec_res); | 620 | | | 621 | 475 | block.replace_by_position(result, std::move(col_res)); | 622 | 475 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 583 | return Status::OK(); | 635 | 583 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 30 | const ColumnPtr& col_right_ptr) const { | 592 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 30 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 30 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 30 | return Status::OK(); | 635 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 135 | const ColumnPtr& col_right_ptr) const { | 592 | 135 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 135 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 135 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 135 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 135 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 135 | if (!left_is_const && !right_is_const) { | 601 | 24 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 24 | vec_res.resize(col_left->get_data().size()); | 605 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 24 | vec_res); | 609 | | | 610 | 24 | block.replace_by_position(result, std::move(col_res)); | 611 | 111 | } else if (!left_is_const && right_is_const) { | 612 | 111 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 111 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 111 | vec_res.resize(col_left->size()); | 616 | 111 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 111 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 111 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 111 | col_right->get_element(0), vec_res); | 620 | | | 621 | 111 | block.replace_by_position(result, std::move(col_res)); | 622 | 111 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 135 | return Status::OK(); | 635 | 135 | } |
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 | 591 | 98 | const ColumnPtr& col_right_ptr) const { | 592 | 98 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 98 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 98 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 98 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 98 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 98 | if (!left_is_const && !right_is_const) { | 601 | 98 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 98 | vec_res.resize(col_left->get_data().size()); | 605 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 98 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 98 | vec_res); | 609 | | | 610 | 98 | block.replace_by_position(result, std::move(col_res)); | 611 | 98 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 98 | return Status::OK(); | 635 | 98 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.11k | const ColumnPtr& col_right_ptr) const { | 592 | 2.11k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.11k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.11k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.11k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.11k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.11k | if (!left_is_const && !right_is_const) { | 601 | 1.75k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.75k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.75k | vec_res.resize(col_left->get_data().size()); | 605 | 1.75k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.75k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.75k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.75k | vec_res); | 609 | | | 610 | 1.75k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.75k | } else if (!left_is_const && right_is_const) { | 612 | 356 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 356 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 356 | vec_res.resize(col_left->size()); | 616 | 356 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 356 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 356 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 356 | col_right->get_element(0), vec_res); | 620 | | | 621 | 356 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2.11k | return Status::OK(); | 635 | 2.11k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 308 | const ColumnPtr& col_right_ptr) const { | 592 | 308 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 308 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 308 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 308 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 308 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 308 | if (!left_is_const && !right_is_const) { | 601 | 249 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 249 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 249 | vec_res.resize(col_left->get_data().size()); | 605 | 249 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 249 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 249 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 249 | vec_res); | 609 | | | 610 | 249 | block.replace_by_position(result, std::move(col_res)); | 611 | 249 | } else if (!left_is_const && right_is_const) { | 612 | 59 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 59 | vec_res.resize(col_left->size()); | 616 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 59 | col_right->get_element(0), vec_res); | 620 | | | 621 | 59 | block.replace_by_position(result, std::move(col_res)); | 622 | 59 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 308 | return Status::OK(); | 635 | 308 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 158 | const ColumnPtr& col_right_ptr) const { | 592 | 158 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 158 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 158 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 158 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 158 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 158 | if (!left_is_const && !right_is_const) { | 601 | 112 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 112 | vec_res.resize(col_left->get_data().size()); | 605 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 112 | vec_res); | 609 | | | 610 | 112 | block.replace_by_position(result, std::move(col_res)); | 611 | 112 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 46 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 158 | return Status::OK(); | 635 | 158 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 1 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1 | vec_res.resize(col_left->size()); | 616 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1 | col_right->get_element(0), vec_res); | 620 | | | 621 | 1 | block.replace_by_position(result, std::move(col_res)); | 622 | 1 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.34k | const ColumnPtr& col_right_ptr) const { | 592 | 2.34k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.34k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.34k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.34k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.34k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.34k | if (!left_is_const && !right_is_const) { | 601 | 215 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 215 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 215 | vec_res.resize(col_left->get_data().size()); | 605 | 215 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 215 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 215 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 215 | vec_res); | 609 | | | 610 | 215 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.12k | } else if (!left_is_const && right_is_const) { | 612 | 1.94k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.94k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.94k | vec_res.resize(col_left->size()); | 616 | 1.94k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.94k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.94k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.94k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.94k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.94k | } else if (left_is_const && !right_is_const) { | 623 | 180 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 180 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 180 | vec_res.resize(col_right->size()); | 627 | 180 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 180 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 180 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 180 | col_right->get_data(), vec_res); | 631 | | | 632 | 180 | block.replace_by_position(result, std::move(col_res)); | 633 | 180 | } | 634 | 2.34k | return Status::OK(); | 635 | 2.34k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 173 | const ColumnPtr& col_right_ptr) const { | 592 | 173 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 173 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 173 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 173 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 173 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 173 | if (!left_is_const && !right_is_const) { | 601 | 159 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 159 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 159 | vec_res.resize(col_left->get_data().size()); | 605 | 159 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 159 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 159 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 159 | vec_res); | 609 | | | 610 | 159 | block.replace_by_position(result, std::move(col_res)); | 611 | 159 | } else if (!left_is_const && right_is_const) { | 612 | 14 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 14 | vec_res.resize(col_left->size()); | 616 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 14 | col_right->get_element(0), vec_res); | 620 | | | 621 | 14 | block.replace_by_position(result, std::move(col_res)); | 622 | 14 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 173 | return Status::OK(); | 635 | 173 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.99k | const ColumnPtr& col_right_ptr) const { | 592 | 1.99k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.99k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.99k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.99k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.99k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.99k | if (!left_is_const && !right_is_const) { | 601 | 901 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 901 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 901 | vec_res.resize(col_left->get_data().size()); | 605 | 901 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 901 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 901 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 901 | vec_res); | 609 | | | 610 | 901 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.09k | } else if (!left_is_const && right_is_const) { | 612 | 900 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 900 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 900 | vec_res.resize(col_left->size()); | 616 | 900 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 900 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 900 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 900 | col_right->get_element(0), vec_res); | 620 | | | 621 | 900 | block.replace_by_position(result, std::move(col_res)); | 622 | 900 | } else if (left_is_const && !right_is_const) { | 623 | 191 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 191 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 191 | vec_res.resize(col_right->size()); | 627 | 191 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 191 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 191 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 191 | col_right->get_data(), vec_res); | 631 | | | 632 | 191 | block.replace_by_position(result, std::move(col_res)); | 633 | 191 | } | 634 | 1.99k | return Status::OK(); | 635 | 1.99k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 906 | const ColumnPtr& col_right_ptr) const { | 592 | 906 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 906 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 906 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 906 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 906 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 906 | if (!left_is_const && !right_is_const) { | 601 | 275 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 275 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 275 | vec_res.resize(col_left->get_data().size()); | 605 | 275 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 275 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 275 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 275 | vec_res); | 609 | | | 610 | 275 | block.replace_by_position(result, std::move(col_res)); | 611 | 631 | } else if (!left_is_const && right_is_const) { | 612 | 551 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 551 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 551 | vec_res.resize(col_left->size()); | 616 | 551 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 551 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 551 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 551 | col_right->get_element(0), vec_res); | 620 | | | 621 | 551 | block.replace_by_position(result, std::move(col_res)); | 622 | 551 | } else if (left_is_const && !right_is_const) { | 623 | 80 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 80 | vec_res.resize(col_right->size()); | 627 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 80 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 80 | col_right->get_data(), vec_res); | 631 | | | 632 | 80 | block.replace_by_position(result, std::move(col_res)); | 633 | 80 | } | 634 | 906 | return Status::OK(); | 635 | 906 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 232 | const ColumnPtr& col_right_ptr) const { | 592 | 232 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 232 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 232 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 232 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 232 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 232 | if (!left_is_const && !right_is_const) { | 601 | 141 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 141 | vec_res.resize(col_left->get_data().size()); | 605 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 141 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 141 | vec_res); | 609 | | | 610 | 141 | block.replace_by_position(result, std::move(col_res)); | 611 | 141 | } else if (!left_is_const && right_is_const) { | 612 | 50 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 50 | vec_res.resize(col_left->size()); | 616 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 50 | col_right->get_element(0), vec_res); | 620 | | | 621 | 50 | block.replace_by_position(result, std::move(col_res)); | 622 | 50 | } else if (left_is_const && !right_is_const) { | 623 | 41 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 41 | vec_res.resize(col_right->size()); | 627 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 41 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 41 | col_right->get_data(), vec_res); | 631 | | | 632 | 41 | block.replace_by_position(result, std::move(col_res)); | 633 | 41 | } | 634 | 232 | return Status::OK(); | 635 | 232 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 17 | const ColumnPtr& col_right_ptr) const { | 592 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 17 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 17 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 17 | return Status::OK(); | 635 | 17 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 14 | const ColumnPtr& col_right_ptr) const { | 592 | 14 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 14 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 14 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 14 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 14 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 14 | if (!left_is_const && !right_is_const) { | 601 | 14 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 14 | vec_res.resize(col_left->get_data().size()); | 605 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 14 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 14 | vec_res); | 609 | | | 610 | 14 | block.replace_by_position(result, std::move(col_res)); | 611 | 14 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 14 | return Status::OK(); | 635 | 14 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 457 | const ColumnPtr& col_right_ptr) const { | 592 | 457 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 457 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 457 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 457 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 457 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 457 | if (!left_is_const && !right_is_const) { | 601 | 110 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 110 | vec_res.resize(col_left->get_data().size()); | 605 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 110 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 110 | vec_res); | 609 | | | 610 | 110 | block.replace_by_position(result, std::move(col_res)); | 611 | 347 | } else if (!left_is_const && right_is_const) { | 612 | 347 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 347 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 347 | vec_res.resize(col_left->size()); | 616 | 347 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 347 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 347 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 347 | col_right->get_element(0), vec_res); | 620 | | | 621 | 347 | block.replace_by_position(result, std::move(col_res)); | 622 | 347 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 457 | return Status::OK(); | 635 | 457 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 135 | const ColumnPtr& col_right_ptr) const { | 592 | 135 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 135 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 135 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 135 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 135 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 135 | if (!left_is_const && !right_is_const) { | 601 | 135 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 135 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 135 | vec_res.resize(col_left->get_data().size()); | 605 | 135 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 135 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 135 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 135 | vec_res); | 609 | | | 610 | 135 | block.replace_by_position(result, std::move(col_res)); | 611 | 135 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 135 | return Status::OK(); | 635 | 135 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.16k | const ColumnPtr& col_right_ptr) const { | 592 | 1.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.16k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.16k | if (!left_is_const && !right_is_const) { | 601 | 137 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 137 | vec_res.resize(col_left->get_data().size()); | 605 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 137 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 137 | vec_res); | 609 | | | 610 | 137 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.03k | } else if (!left_is_const && right_is_const) { | 612 | 1.02k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.02k | vec_res.resize(col_left->size()); | 616 | 1.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.02k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.02k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.02k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.02k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.02k | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.16k | return Status::OK(); | 635 | 1.16k | } |
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 | 591 | 52 | const ColumnPtr& col_right_ptr) const { | 592 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 52 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 52 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 52 | } else if (!left_is_const && right_is_const) { | 612 | 52 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 52 | vec_res.resize(col_left->size()); | 616 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 52 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 52 | col_right->get_element(0), vec_res); | 620 | | | 621 | 52 | block.replace_by_position(result, std::move(col_res)); | 622 | 52 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 52 | return Status::OK(); | 635 | 52 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 593 | const ColumnPtr& col_right_ptr) const { | 592 | 593 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 593 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 593 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 593 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 593 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 593 | if (!left_is_const && !right_is_const) { | 601 | 399 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 399 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 399 | vec_res.resize(col_left->get_data().size()); | 605 | 399 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 399 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 399 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 399 | vec_res); | 609 | | | 610 | 399 | block.replace_by_position(result, std::move(col_res)); | 611 | 399 | } else if (!left_is_const && right_is_const) { | 612 | 191 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 191 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 191 | vec_res.resize(col_left->size()); | 616 | 191 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 191 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 191 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 191 | col_right->get_element(0), vec_res); | 620 | | | 621 | 191 | block.replace_by_position(result, std::move(col_res)); | 622 | 191 | } else if (left_is_const && !right_is_const) { | 623 | 5 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 5 | vec_res.resize(col_right->size()); | 627 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 5 | col_right->get_data(), vec_res); | 631 | | | 632 | 5 | block.replace_by_position(result, std::move(col_res)); | 633 | 5 | } | 634 | 593 | return Status::OK(); | 635 | 593 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 95 | const ColumnPtr& col_right_ptr) const { | 592 | 95 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 95 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 95 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 95 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 95 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 95 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 95 | } else if (!left_is_const && right_is_const) { | 612 | 95 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 95 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 95 | vec_res.resize(col_left->size()); | 616 | 95 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 95 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 95 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 95 | col_right->get_element(0), vec_res); | 620 | | | 621 | 95 | block.replace_by_position(result, std::move(col_res)); | 622 | 95 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 95 | return Status::OK(); | 635 | 95 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 64 | const ColumnPtr& col_right_ptr) const { | 592 | 64 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 64 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 64 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 64 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 64 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 64 | if (!left_is_const && !right_is_const) { | 601 | 26 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 26 | vec_res.resize(col_left->get_data().size()); | 605 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 26 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 26 | vec_res); | 609 | | | 610 | 26 | block.replace_by_position(result, std::move(col_res)); | 611 | 38 | } else if (!left_is_const && right_is_const) { | 612 | 38 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 38 | vec_res.resize(col_left->size()); | 616 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 38 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 38 | col_right->get_element(0), vec_res); | 620 | | | 621 | 38 | block.replace_by_position(result, std::move(col_res)); | 622 | 38 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 64 | return Status::OK(); | 635 | 64 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 74 | const ColumnPtr& col_right_ptr) const { | 592 | 74 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 74 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 74 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 74 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 74 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 74 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 73 | } else if (!left_is_const && right_is_const) { | 612 | 73 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 73 | vec_res.resize(col_left->size()); | 616 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 73 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 73 | col_right->get_element(0), vec_res); | 620 | | | 621 | 73 | block.replace_by_position(result, std::move(col_res)); | 622 | 73 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 74 | return Status::OK(); | 635 | 74 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 120 | const ColumnPtr& col_right_ptr) const { | 592 | 120 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 120 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 120 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 120 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 120 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 120 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 120 | } else if (!left_is_const && right_is_const) { | 612 | 120 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 120 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 120 | vec_res.resize(col_left->size()); | 616 | 120 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 120 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 120 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 120 | col_right->get_element(0), vec_res); | 620 | | | 621 | 120 | block.replace_by_position(result, std::move(col_res)); | 622 | 120 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 120 | return Status::OK(); | 635 | 120 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 5.97k | const ColumnPtr& col_right_ptr) const { | 592 | 5.97k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 5.97k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 5.97k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 5.97k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 5.97k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 5.97k | if (!left_is_const && !right_is_const) { | 601 | 47 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 47 | vec_res.resize(col_left->get_data().size()); | 605 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 47 | vec_res); | 609 | | | 610 | 47 | block.replace_by_position(result, std::move(col_res)); | 611 | 5.92k | } else if (!left_is_const && right_is_const) { | 612 | 5.91k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.91k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.91k | vec_res.resize(col_left->size()); | 616 | 5.91k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.91k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.91k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.91k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.91k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.91k | } else if (left_is_const && !right_is_const) { | 623 | 20 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 20 | vec_res.resize(col_right->size()); | 627 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 20 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 20 | col_right->get_data(), vec_res); | 631 | | | 632 | 20 | block.replace_by_position(result, std::move(col_res)); | 633 | 20 | } | 634 | 5.97k | return Status::OK(); | 635 | 5.97k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 730 | const ColumnPtr& col_right_ptr) const { | 592 | 730 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 730 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 730 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 730 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 730 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 730 | if (!left_is_const && !right_is_const) { | 601 | 75 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 75 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 75 | vec_res.resize(col_left->get_data().size()); | 605 | 75 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 75 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 75 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 75 | vec_res); | 609 | | | 610 | 75 | block.replace_by_position(result, std::move(col_res)); | 611 | 655 | } else if (!left_is_const && right_is_const) { | 612 | 619 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 619 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 619 | vec_res.resize(col_left->size()); | 616 | 619 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 619 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 619 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 619 | col_right->get_element(0), vec_res); | 620 | | | 621 | 619 | block.replace_by_position(result, std::move(col_res)); | 622 | 619 | } else if (left_is_const && !right_is_const) { | 623 | 36 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 36 | vec_res.resize(col_right->size()); | 627 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 36 | col_right->get_data(), vec_res); | 631 | | | 632 | 36 | block.replace_by_position(result, std::move(col_res)); | 633 | 36 | } | 634 | 730 | return Status::OK(); | 635 | 730 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 57 | const ColumnPtr& col_right_ptr) const { | 592 | 57 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 57 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 57 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 57 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 57 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 57 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 57 | } else if (!left_is_const && right_is_const) { | 612 | 57 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 57 | vec_res.resize(col_left->size()); | 616 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 57 | col_right->get_element(0), vec_res); | 620 | | | 621 | 57 | block.replace_by_position(result, std::move(col_res)); | 622 | 57 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 57 | return Status::OK(); | 635 | 57 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 423 | const ColumnPtr& col_right_ptr) const { | 592 | 423 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 423 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 423 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 423 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 423 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 423 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 319 | } else if (!left_is_const && right_is_const) { | 612 | 319 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 319 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 319 | vec_res.resize(col_left->size()); | 616 | 319 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 319 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 319 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 319 | col_right->get_element(0), vec_res); | 620 | | | 621 | 319 | block.replace_by_position(result, std::move(col_res)); | 622 | 319 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 423 | return Status::OK(); | 635 | 423 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 20 | const ColumnPtr& col_right_ptr) const { | 592 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 20 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 20 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 20 | return Status::OK(); | 635 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 129 | const ColumnPtr& col_right_ptr) const { | 592 | 129 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 129 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 129 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 129 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 129 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 129 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 109 | } else if (!left_is_const && right_is_const) { | 612 | 109 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 109 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 109 | vec_res.resize(col_left->size()); | 616 | 109 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 109 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 109 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 109 | col_right->get_element(0), vec_res); | 620 | | | 621 | 109 | block.replace_by_position(result, std::move(col_res)); | 622 | 109 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 129 | return Status::OK(); | 635 | 129 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
636 | | |
637 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
638 | 3.15k | const ColumnWithTypeAndName& col_right) const { |
639 | 3.15k | auto call = [&](const auto& type) -> bool { |
640 | 3.15k | using DispatchType = std::decay_t<decltype(type)>; |
641 | 3.15k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
642 | 3.15k | block, result, col_left, col_right); |
643 | 3.15k | return true; |
644 | 3.15k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 109 | auto call = [&](const auto& type) -> bool { | 640 | 109 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 109 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 109 | block, result, col_left, col_right); | 643 | 109 | return true; | 644 | 109 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 116 | auto call = [&](const auto& type) -> bool { | 640 | 116 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 116 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 116 | block, result, col_left, col_right); | 643 | 116 | return true; | 644 | 116 | }; |
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 | 639 | 851 | auto call = [&](const auto& type) -> bool { | 640 | 851 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 851 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 851 | block, result, col_left, col_right); | 643 | 851 | return true; | 644 | 851 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 14 | auto call = [&](const auto& type) -> bool { | 640 | 14 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 14 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 14 | block, result, col_left, col_right); | 643 | 14 | return true; | 644 | 14 | }; |
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 | 639 | 70 | auto call = [&](const auto& type) -> bool { | 640 | 70 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 70 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 70 | block, result, col_left, col_right); | 643 | 70 | return true; | 644 | 70 | }; |
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 | 639 | 28 | auto call = [&](const auto& type) -> bool { | 640 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 28 | block, result, col_left, col_right); | 643 | 28 | return true; | 644 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 30 | auto call = [&](const auto& type) -> bool { | 640 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 30 | block, result, col_left, col_right); | 643 | 30 | return true; | 644 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 8 | auto call = [&](const auto& type) -> bool { | 640 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 8 | block, result, col_left, col_right); | 643 | 8 | return true; | 644 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 67 | auto call = [&](const auto& type) -> bool { | 640 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 67 | block, result, col_left, col_right); | 643 | 67 | return true; | 644 | 67 | }; |
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 | 639 | 679 | auto call = [&](const auto& type) -> bool { | 640 | 679 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 679 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 679 | block, result, col_left, col_right); | 643 | 679 | return true; | 644 | 679 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 2 | auto call = [&](const auto& type) -> bool { | 640 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 2 | block, result, col_left, col_right); | 643 | 2 | return true; | 644 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 1 | auto call = [&](const auto& type) -> bool { | 640 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1 | block, result, col_left, col_right); | 643 | 1 | return true; | 644 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 75 | auto call = [&](const auto& type) -> bool { | 640 | 75 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 75 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 75 | block, result, col_left, col_right); | 643 | 75 | return true; | 644 | 75 | }; |
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 | 639 | 63 | auto call = [&](const auto& type) -> bool { | 640 | 63 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 63 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 63 | block, result, col_left, col_right); | 643 | 63 | return true; | 644 | 63 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 11 | auto call = [&](const auto& type) -> bool { | 640 | 11 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 11 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 11 | block, result, col_left, col_right); | 643 | 11 | return true; | 644 | 11 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 167 | auto call = [&](const auto& type) -> bool { | 640 | 167 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 167 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 167 | block, result, col_left, col_right); | 643 | 167 | return true; | 644 | 167 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 195 | auto call = [&](const auto& type) -> bool { | 640 | 195 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 195 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 195 | block, result, col_left, col_right); | 643 | 195 | return true; | 644 | 195 | }; |
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 | 639 | 461 | auto call = [&](const auto& type) -> bool { | 640 | 461 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 461 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 461 | block, result, col_left, col_right); | 643 | 461 | return true; | 644 | 461 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 1 | auto call = [&](const auto& type) -> bool { | 640 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1 | block, result, col_left, col_right); | 643 | 1 | return true; | 644 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 7 | auto call = [&](const auto& type) -> bool { | 640 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 7 | block, result, col_left, col_right); | 643 | 7 | return true; | 644 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 87 | auto call = [&](const auto& type) -> bool { | 640 | 87 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 87 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 87 | block, result, col_left, col_right); | 643 | 87 | return true; | 644 | 87 | }; |
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 | 639 | 101 | auto call = [&](const auto& type) -> bool { | 640 | 101 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 101 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 101 | block, result, col_left, col_right); | 643 | 101 | return true; | 644 | 101 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 9 | auto call = [&](const auto& type) -> bool { | 640 | 9 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 9 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 9 | block, result, col_left, col_right); | 643 | 9 | return true; | 644 | 9 | }; |
|
645 | | |
646 | 3.15k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
647 | 0 | return Status::RuntimeError( |
648 | 0 | "type of left column {} is not equal to type of right column {}", |
649 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
650 | 0 | } |
651 | | |
652 | 3.15k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
654 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
655 | 0 | } |
656 | 3.15k | return Status::OK(); |
657 | 3.15k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 1.09k | const ColumnWithTypeAndName& col_right) const { | 639 | 1.09k | auto call = [&](const auto& type) -> bool { | 640 | 1.09k | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1.09k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1.09k | block, result, col_left, col_right); | 643 | 1.09k | return true; | 644 | 1.09k | }; | 645 | | | 646 | 1.09k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 1.09k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 1.09k | return Status::OK(); | 657 | 1.09k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 127 | const ColumnWithTypeAndName& col_right) const { | 639 | 127 | auto call = [&](const auto& type) -> bool { | 640 | 127 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 127 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 127 | block, result, col_left, col_right); | 643 | 127 | return true; | 644 | 127 | }; | 645 | | | 646 | 127 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 127 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 127 | return Status::OK(); | 657 | 127 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 756 | const ColumnWithTypeAndName& col_right) const { | 639 | 756 | auto call = [&](const auto& type) -> bool { | 640 | 756 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 756 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 756 | block, result, col_left, col_right); | 643 | 756 | return true; | 644 | 756 | }; | 645 | | | 646 | 756 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 756 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 756 | return Status::OK(); | 657 | 756 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 150 | const ColumnWithTypeAndName& col_right) const { | 639 | 150 | auto call = [&](const auto& type) -> bool { | 640 | 150 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 150 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 150 | block, result, col_left, col_right); | 643 | 150 | return true; | 644 | 150 | }; | 645 | | | 646 | 150 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 150 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 150 | return Status::OK(); | 657 | 150 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 823 | const ColumnWithTypeAndName& col_right) const { | 639 | 823 | auto call = [&](const auto& type) -> bool { | 640 | 823 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 823 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 823 | block, result, col_left, col_right); | 643 | 823 | return true; | 644 | 823 | }; | 645 | | | 646 | 823 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 823 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 823 | return Status::OK(); | 657 | 823 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 204 | const ColumnWithTypeAndName& col_right) const { | 639 | 204 | auto call = [&](const auto& type) -> bool { | 640 | 204 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 204 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 204 | block, result, col_left, col_right); | 643 | 204 | return true; | 644 | 204 | }; | 645 | | | 646 | 204 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 204 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 204 | return Status::OK(); | 657 | 204 | } |
|
658 | | |
659 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
660 | 23.2k | const IColumn* c1) const { |
661 | 23.2k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
662 | 23.2k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
663 | 23.2k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
664 | 23.2k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
665 | 23.2k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
667 | 0 | c0->get_name(), c1->get_name(), name); |
668 | 0 | } |
669 | 23.2k | DCHECK(!(c0_const && c1_const)); |
670 | 23.2k | const ColumnString::Chars* c0_const_chars = nullptr; |
671 | 23.2k | const ColumnString::Chars* c1_const_chars = nullptr; |
672 | 23.2k | ColumnString::Offset c0_const_size = 0; |
673 | 23.2k | ColumnString::Offset c1_const_size = 0; |
674 | | |
675 | 23.2k | if (c0_const) { |
676 | 81 | const ColumnString* c0_const_string = |
677 | 81 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
678 | | |
679 | 81 | if (c0_const_string) { |
680 | 81 | c0_const_chars = &c0_const_string->get_chars(); |
681 | 81 | c0_const_size = c0_const_string->get_offsets()[0]; |
682 | 81 | } else { |
683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
684 | 0 | c0->get_name(), name); |
685 | 0 | } |
686 | 81 | } |
687 | | |
688 | 23.2k | if (c1_const) { |
689 | 22.2k | const ColumnString* c1_const_string = |
690 | 22.2k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
691 | | |
692 | 22.2k | if (c1_const_string) { |
693 | 22.2k | c1_const_chars = &c1_const_string->get_chars(); |
694 | 22.2k | c1_const_size = c1_const_string->get_offsets()[0]; |
695 | 18.4E | } else { |
696 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
697 | 18.4E | c1->get_name(), name); |
698 | 18.4E | } |
699 | 22.2k | } |
700 | | |
701 | 23.2k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
702 | | |
703 | 23.2k | auto c_res = ColumnUInt8::create(); |
704 | 23.2k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
705 | 23.2k | vec_res.resize(c0->size()); |
706 | | |
707 | 23.2k | if (c0_string && c1_string) { |
708 | 886 | StringImpl::string_vector_string_vector( |
709 | 886 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
710 | 886 | c1_string->get_offsets(), vec_res); |
711 | 22.3k | } else if (c0_string && c1_const) { |
712 | 22.2k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
713 | 22.2k | *c1_const_chars, c1_const_size, vec_res); |
714 | 22.2k | } else if (c0_const && c1_string) { |
715 | 81 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
716 | 81 | c1_string->get_chars(), c1_string->get_offsets(), |
717 | 81 | vec_res); |
718 | 18.4E | } else { |
719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
720 | 18.4E | c0->get_name(), c1->get_name(), name); |
721 | 18.4E | } |
722 | 23.2k | block.replace_by_position(result, std::move(c_res)); |
723 | 23.2k | return Status::OK(); |
724 | 23.2k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 21.7k | const IColumn* c1) const { | 661 | 21.7k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 21.7k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 21.7k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 21.7k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 21.7k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 21.7k | DCHECK(!(c0_const && c1_const)); | 670 | 21.7k | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 21.7k | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 21.7k | ColumnString::Offset c0_const_size = 0; | 673 | 21.7k | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 21.7k | if (c0_const) { | 676 | 19 | const ColumnString* c0_const_string = | 677 | 19 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 19 | if (c0_const_string) { | 680 | 19 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 19 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 19 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 19 | } | 687 | | | 688 | 21.7k | if (c1_const) { | 689 | 21.2k | const ColumnString* c1_const_string = | 690 | 21.2k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 21.2k | if (c1_const_string) { | 693 | 21.2k | c1_const_chars = &c1_const_string->get_chars(); | 694 | 21.2k | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 18.4E | } else { | 696 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 18.4E | c1->get_name(), name); | 698 | 18.4E | } | 699 | 21.2k | } | 700 | | | 701 | 21.7k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 21.7k | auto c_res = ColumnUInt8::create(); | 704 | 21.7k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 21.7k | vec_res.resize(c0->size()); | 706 | | | 707 | 21.7k | if (c0_string && c1_string) { | 708 | 432 | StringImpl::string_vector_string_vector( | 709 | 432 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 432 | c1_string->get_offsets(), vec_res); | 711 | 21.2k | } else if (c0_string && c1_const) { | 712 | 21.2k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 21.2k | *c1_const_chars, c1_const_size, vec_res); | 714 | 21.2k | } else if (c0_const && c1_string) { | 715 | 19 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 19 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 19 | vec_res); | 718 | 19 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 21.7k | block.replace_by_position(result, std::move(c_res)); | 723 | 21.7k | return Status::OK(); | 724 | 21.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 125 | const IColumn* c1) const { | 661 | 125 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 125 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 125 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 125 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 125 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 125 | DCHECK(!(c0_const && c1_const)); | 670 | 125 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 125 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 125 | ColumnString::Offset c0_const_size = 0; | 673 | 125 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 125 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 125 | if (c1_const) { | 689 | 108 | const ColumnString* c1_const_string = | 690 | 108 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 108 | if (c1_const_string) { | 693 | 108 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 108 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 108 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 108 | } | 700 | | | 701 | 125 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 125 | auto c_res = ColumnUInt8::create(); | 704 | 125 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 125 | vec_res.resize(c0->size()); | 706 | | | 707 | 125 | if (c0_string && c1_string) { | 708 | 17 | StringImpl::string_vector_string_vector( | 709 | 17 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 17 | c1_string->get_offsets(), vec_res); | 711 | 108 | } else if (c0_string && c1_const) { | 712 | 108 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 108 | *c1_const_chars, c1_const_size, vec_res); | 714 | 108 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 125 | block.replace_by_position(result, std::move(c_res)); | 723 | 125 | return Status::OK(); | 724 | 125 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 215 | const IColumn* c1) const { | 661 | 215 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 215 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 215 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 215 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 215 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 215 | DCHECK(!(c0_const && c1_const)); | 670 | 215 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 215 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 215 | ColumnString::Offset c0_const_size = 0; | 673 | 215 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 215 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 215 | if (c1_const) { | 689 | 213 | const ColumnString* c1_const_string = | 690 | 213 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 213 | if (c1_const_string) { | 693 | 213 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 213 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 213 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 213 | } | 700 | | | 701 | 215 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 215 | auto c_res = ColumnUInt8::create(); | 704 | 215 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 215 | vec_res.resize(c0->size()); | 706 | | | 707 | 216 | if (c0_string && c1_string) { | 708 | 2 | StringImpl::string_vector_string_vector( | 709 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 2 | c1_string->get_offsets(), vec_res); | 711 | 214 | } else if (c0_string && c1_const) { | 712 | 214 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 214 | *c1_const_chars, c1_const_size, vec_res); | 714 | 18.4E | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 18.4E | } else { | 719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 18.4E | c0->get_name(), c1->get_name(), name); | 721 | 18.4E | } | 722 | 216 | block.replace_by_position(result, std::move(c_res)); | 723 | 216 | return Status::OK(); | 724 | 215 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 331 | const IColumn* c1) const { | 661 | 331 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 331 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 331 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 331 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 331 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 331 | DCHECK(!(c0_const && c1_const)); | 670 | 331 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 331 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 331 | ColumnString::Offset c0_const_size = 0; | 673 | 331 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 331 | if (c0_const) { | 676 | 56 | const ColumnString* c0_const_string = | 677 | 56 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 56 | if (c0_const_string) { | 680 | 56 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 56 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 56 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 56 | } | 687 | | | 688 | 331 | if (c1_const) { | 689 | 244 | const ColumnString* c1_const_string = | 690 | 244 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 244 | if (c1_const_string) { | 693 | 244 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 244 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 244 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 244 | } | 700 | | | 701 | 331 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 331 | auto c_res = ColumnUInt8::create(); | 704 | 331 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 331 | vec_res.resize(c0->size()); | 706 | | | 707 | 331 | if (c0_string && c1_string) { | 708 | 31 | StringImpl::string_vector_string_vector( | 709 | 31 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 31 | c1_string->get_offsets(), vec_res); | 711 | 300 | } else if (c0_string && c1_const) { | 712 | 244 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 244 | *c1_const_chars, c1_const_size, vec_res); | 714 | 244 | } else if (c0_const && c1_string) { | 715 | 56 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 56 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 56 | vec_res); | 718 | 56 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 331 | block.replace_by_position(result, std::move(c_res)); | 723 | 331 | return Status::OK(); | 724 | 331 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 524 | const IColumn* c1) const { | 661 | 524 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 524 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 524 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 524 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 524 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 524 | DCHECK(!(c0_const && c1_const)); | 670 | 524 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 524 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 524 | ColumnString::Offset c0_const_size = 0; | 673 | 524 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 524 | if (c0_const) { | 676 | 6 | const ColumnString* c0_const_string = | 677 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 6 | if (c0_const_string) { | 680 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 6 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 6 | } | 687 | | | 688 | 524 | if (c1_const) { | 689 | 114 | const ColumnString* c1_const_string = | 690 | 114 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 114 | if (c1_const_string) { | 693 | 114 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 114 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 114 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 114 | } | 700 | | | 701 | 524 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 524 | auto c_res = ColumnUInt8::create(); | 704 | 524 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 524 | vec_res.resize(c0->size()); | 706 | | | 707 | 524 | if (c0_string && c1_string) { | 708 | 404 | StringImpl::string_vector_string_vector( | 709 | 404 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 404 | c1_string->get_offsets(), vec_res); | 711 | 404 | } else if (c0_string && c1_const) { | 712 | 114 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 114 | *c1_const_chars, c1_const_size, vec_res); | 714 | 114 | } else if (c0_const && c1_string) { | 715 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 6 | vec_res); | 718 | 6 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 524 | block.replace_by_position(result, std::move(c_res)); | 723 | 524 | return Status::OK(); | 724 | 524 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 320 | const IColumn* c1) const { | 661 | 320 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 320 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 320 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 320 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 320 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 320 | DCHECK(!(c0_const && c1_const)); | 670 | 320 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 320 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 320 | ColumnString::Offset c0_const_size = 0; | 673 | 320 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 320 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 320 | if (c1_const) { | 689 | 320 | const ColumnString* c1_const_string = | 690 | 320 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 320 | if (c1_const_string) { | 693 | 320 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 320 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 320 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 320 | } | 700 | | | 701 | 320 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 320 | auto c_res = ColumnUInt8::create(); | 704 | 320 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 320 | vec_res.resize(c0->size()); | 706 | | | 707 | 320 | if (c0_string && c1_string) { | 708 | 0 | StringImpl::string_vector_string_vector( | 709 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 0 | c1_string->get_offsets(), vec_res); | 711 | 320 | } else if (c0_string && c1_const) { | 712 | 320 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 320 | *c1_const_chars, c1_const_size, vec_res); | 714 | 320 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 320 | block.replace_by_position(result, std::move(c_res)); | 723 | 320 | return Status::OK(); | 724 | 320 | } |
|
725 | | |
726 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
727 | 217 | const IColumn* c1) const { |
728 | 217 | bool c0_const = is_column_const(*c0); |
729 | 217 | bool c1_const = is_column_const(*c1); |
730 | | |
731 | 217 | DCHECK(!(c0_const && c1_const)); |
732 | | |
733 | 217 | auto c_res = ColumnUInt8::create(); |
734 | 217 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
735 | 217 | vec_res.resize(c0->size()); |
736 | | |
737 | 217 | if (c0_const) { |
738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
739 | 216 | } else if (c1_const) { |
740 | 192 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
741 | 192 | } else { |
742 | 24 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
743 | 24 | } |
744 | | |
745 | 217 | block.replace_by_position(result, std::move(c_res)); |
746 | 217 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 35 | const IColumn* c1) const { | 728 | 35 | bool c0_const = is_column_const(*c0); | 729 | 35 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 35 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 35 | auto c_res = ColumnUInt8::create(); | 734 | 35 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 35 | vec_res.resize(c0->size()); | 736 | | | 737 | 35 | if (c0_const) { | 738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 34 | } else if (c1_const) { | 740 | 18 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 18 | } else { | 742 | 16 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 16 | } | 744 | | | 745 | 35 | block.replace_by_position(result, std::move(c_res)); | 746 | 35 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 10 | const IColumn* c1) const { | 728 | 10 | bool c0_const = is_column_const(*c0); | 729 | 10 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 10 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 10 | auto c_res = ColumnUInt8::create(); | 734 | 10 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 10 | vec_res.resize(c0->size()); | 736 | | | 737 | 10 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 10 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 2 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 2 | } | 744 | | | 745 | 10 | block.replace_by_position(result, std::move(c_res)); | 746 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 9 | const IColumn* c1) const { | 728 | 9 | bool c0_const = is_column_const(*c0); | 729 | 9 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 9 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 9 | auto c_res = ColumnUInt8::create(); | 734 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 9 | vec_res.resize(c0->size()); | 736 | | | 737 | 9 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 9 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 9 | block.replace_by_position(result, std::move(c_res)); | 746 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 78 | const IColumn* c1) const { | 728 | 78 | bool c0_const = is_column_const(*c0); | 729 | 78 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 78 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 78 | auto c_res = ColumnUInt8::create(); | 734 | 78 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 78 | vec_res.resize(c0->size()); | 736 | | | 737 | 78 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 78 | } else if (c1_const) { | 740 | 77 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 77 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 78 | block.replace_by_position(result, std::move(c_res)); | 746 | 78 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 12 | const IColumn* c1) const { | 728 | 12 | bool c0_const = is_column_const(*c0); | 729 | 12 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 12 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 12 | auto c_res = ColumnUInt8::create(); | 734 | 12 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 12 | vec_res.resize(c0->size()); | 736 | | | 737 | 12 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 12 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 4 | } | 744 | | | 745 | 12 | block.replace_by_position(result, std::move(c_res)); | 746 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 73 | const IColumn* c1) const { | 728 | 73 | bool c0_const = is_column_const(*c0); | 729 | 73 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 73 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 73 | auto c_res = ColumnUInt8::create(); | 734 | 73 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 73 | vec_res.resize(c0->size()); | 736 | | | 737 | 73 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 73 | } else if (c1_const) { | 740 | 73 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 73 | } else { | 742 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 0 | } | 744 | | | 745 | 73 | block.replace_by_position(result, std::move(c_res)); | 746 | 73 | } |
|
747 | | |
748 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
749 | 217 | const ColumnWithTypeAndName& c1) const { |
750 | 217 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
751 | 217 | return Status::OK(); |
752 | 217 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 35 | const ColumnWithTypeAndName& c1) const { | 750 | 35 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 35 | return Status::OK(); | 752 | 35 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 10 | const ColumnWithTypeAndName& c1) const { | 750 | 10 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 10 | return Status::OK(); | 752 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 9 | const ColumnWithTypeAndName& c1) const { | 750 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 9 | return Status::OK(); | 752 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 78 | const ColumnWithTypeAndName& c1) const { | 750 | 78 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 78 | return Status::OK(); | 752 | 78 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 12 | const ColumnWithTypeAndName& c1) const { | 750 | 12 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 12 | return Status::OK(); | 752 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 73 | const ColumnWithTypeAndName& c1) const { | 750 | 73 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 73 | return Status::OK(); | 752 | 73 | } |
|
753 | | |
754 | | public: |
755 | 262 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 83 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 41 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 43 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 73 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
|
756 | | |
757 | 288k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 256k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 1.29k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 757 | 7.27k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 9.04k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 757 | 4.07k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 10.0k | size_t get_number_of_arguments() const override { return 2; } |
|
758 | | |
759 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
760 | 4.31k | const VExprSPtrs& arguments) const override { |
761 | 4.31k | auto op = comparison_zonemap_detail::op_from_name(name); |
762 | 4.31k | DORIS_CHECK(op.has_value()); |
763 | 4.31k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
764 | 4.31k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 2.10k | const VExprSPtrs& arguments) const override { | 761 | 2.10k | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 2.10k | DORIS_CHECK(op.has_value()); | 763 | 2.10k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 2.10k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 221 | const VExprSPtrs& arguments) const override { | 761 | 221 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 221 | DORIS_CHECK(op.has_value()); | 763 | 221 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 221 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 534 | const VExprSPtrs& arguments) const override { | 761 | 534 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 534 | DORIS_CHECK(op.has_value()); | 763 | 534 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 534 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 457 | const VExprSPtrs& arguments) const override { | 761 | 457 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 457 | DORIS_CHECK(op.has_value()); | 763 | 457 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 457 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 669 | const VExprSPtrs& arguments) const override { | 761 | 669 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 669 | DORIS_CHECK(op.has_value()); | 763 | 669 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 669 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 322 | const VExprSPtrs& arguments) const override { | 761 | 322 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 322 | DORIS_CHECK(op.has_value()); | 763 | 322 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 322 | } |
|
765 | | |
766 | 33.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
767 | 33.8k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { |
768 | 0 | return false; |
769 | 0 | } |
770 | 33.8k | return comparison_zonemap_detail::can_evaluate(arguments) || |
771 | 33.8k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); |
772 | 33.8k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 15.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 15.9k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 15.9k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 15.9k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 15.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.37k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.37k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.37k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.37k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.37k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 6.07k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 6.07k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 6.07k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 6.07k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 6.07k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.36k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.36k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.36k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.36k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.36k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.08k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.08k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.08k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.08k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.08k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 2.06k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 2.06k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 2.06k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 2.06k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 2.06k | } |
|
773 | | |
774 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
775 | 14 | const VExprSPtrs& arguments) const override { |
776 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
777 | 14 | DORIS_CHECK(op.has_value()); |
778 | 14 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
779 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 4 | const VExprSPtrs& arguments) const override { | 776 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 4 | DORIS_CHECK(op.has_value()); | 778 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 3 | const VExprSPtrs& arguments) const override { | 776 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 3 | DORIS_CHECK(op.has_value()); | 778 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 3 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 7 | const VExprSPtrs& arguments) const override { | 776 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 7 | DORIS_CHECK(op.has_value()); | 778 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 7 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
780 | | |
781 | 838 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
782 | 838 | auto op = comparison_zonemap_detail::op_from_name(name); |
783 | 838 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
784 | 838 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 366 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 366 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 366 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 366 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 3 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 3 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 100 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 100 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 100 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 100 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 223 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 223 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 223 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 223 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 137 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 137 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 137 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 137 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 9 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 9 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 9 | } |
|
785 | | |
786 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
787 | 19 | const VExprSPtrs& arguments) const override { |
788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); |
789 | 19 | DORIS_CHECK(op.has_value()); |
790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
791 | 19 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 787 | 19 | const VExprSPtrs& arguments) const override { | 788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); | 789 | 19 | DORIS_CHECK(op.has_value()); | 790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 791 | 19 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
792 | | |
793 | 342 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
794 | 342 | auto op = comparison_zonemap_detail::op_from_name(name); |
795 | 342 | return op == comparison_zonemap_detail::Op::EQ && |
796 | 342 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
797 | 342 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 173 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 173 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 173 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 173 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 173 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 1 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 1 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 1 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 1 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 30 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 30 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 30 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 30 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 76 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 76 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 76 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 76 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 76 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 58 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 58 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 58 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 58 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 58 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 4 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 4 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 4 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 4 | } |
|
798 | | |
799 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
800 | 287k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
801 | 287k | return std::make_shared<DataTypeUInt8>(); |
802 | 287k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 256k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 256k | return std::make_shared<DataTypeUInt8>(); | 802 | 256k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 1.29k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 1.29k | return std::make_shared<DataTypeUInt8>(); | 802 | 1.29k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 7.27k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 7.27k | return std::make_shared<DataTypeUInt8>(); | 802 | 7.27k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 9.06k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 9.06k | return std::make_shared<DataTypeUInt8>(); | 802 | 9.06k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 4.07k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 4.07k | return std::make_shared<DataTypeUInt8>(); | 802 | 4.07k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 10.0k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 10.0k | return std::make_shared<DataTypeUInt8>(); | 802 | 10.0k | } |
|
803 | | |
804 | | Status evaluate_inverted_index( |
805 | | const ColumnsWithTypeAndName& arguments, |
806 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
807 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
808 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
809 | 1.30k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
810 | 1.30k | DCHECK(arguments.size() == 1); |
811 | 1.30k | DCHECK(data_type_with_names.size() == 1); |
812 | 1.30k | DCHECK(iterators.size() == 1); |
813 | 1.30k | auto* iter = iterators[0]; |
814 | 1.30k | auto data_type_with_name = data_type_with_names[0]; |
815 | 1.30k | if (iter == nullptr) { |
816 | 0 | return Status::OK(); |
817 | 0 | } |
818 | 1.30k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
819 | 303 | return Status::OK(); |
820 | 303 | } |
821 | 999 | segment_v2::InvertedIndexQueryType query_type; |
822 | 999 | std::string_view name_view(name); |
823 | 999 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
824 | 693 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
825 | 693 | } else if (name_view == NameLess::name) { |
826 | 70 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
827 | 236 | } else if (name_view == NameLessOrEquals::name) { |
828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
829 | 155 | } else if (name_view == NameGreater::name) { |
830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
831 | 92 | } else if (name_view == NameGreaterOrEquals::name) { |
832 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
833 | 18.4E | } else { |
834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
835 | 18.4E | } |
836 | | |
837 | 1.00k | if (segment_v2::is_range_query(query_type) && |
838 | 1.00k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
840 | 133 | return Status::OK(); |
841 | 133 | } |
842 | 870 | Field param_value; |
843 | 870 | arguments[0].column->get(0, param_value); |
844 | 870 | if (param_value.is_null()) { |
845 | 2 | return Status::OK(); |
846 | 2 | } |
847 | 868 | segment_v2::InvertedIndexParam param; |
848 | 868 | param.column_name = data_type_with_name.first; |
849 | 868 | param.column_type = data_type_with_name.second; |
850 | 868 | param.query_value = param_value; |
851 | 868 | param.query_type = query_type; |
852 | 868 | param.num_rows = num_rows; |
853 | 868 | param.roaring = std::make_shared<roaring::Roaring>(); |
854 | 868 | param.analyzer_ctx = analyzer_ctx; |
855 | 868 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
856 | 727 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
857 | 727 | if (iter->has_null()) { |
858 | 723 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
859 | 723 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
860 | 723 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
861 | 723 | } |
862 | 727 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
863 | 727 | bitmap_result = result; |
864 | 727 | bitmap_result.mask_out_null(); |
865 | | |
866 | 727 | if (name_view == NameNotEquals::name) { |
867 | 58 | roaring::Roaring full_result; |
868 | 58 | full_result.addRange(0, num_rows); |
869 | 58 | bitmap_result.op_not(&full_result); |
870 | 58 | } |
871 | | |
872 | 727 | return Status::OK(); |
873 | 727 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 659 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 659 | DCHECK(arguments.size() == 1); | 811 | 659 | DCHECK(data_type_with_names.size() == 1); | 812 | 659 | DCHECK(iterators.size() == 1); | 813 | 659 | auto* iter = iterators[0]; | 814 | 659 | auto data_type_with_name = data_type_with_names[0]; | 815 | 659 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 659 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 33 | return Status::OK(); | 820 | 33 | } | 821 | 626 | segment_v2::InvertedIndexQueryType query_type; | 822 | 626 | std::string_view name_view(name); | 823 | 628 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 628 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 18.4E | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 18.4E | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 628 | if (segment_v2::is_range_query(query_type) && | 838 | 628 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 628 | Field param_value; | 843 | 628 | arguments[0].column->get(0, param_value); | 844 | 628 | if (param_value.is_null()) { | 845 | 2 | return Status::OK(); | 846 | 2 | } | 847 | 626 | segment_v2::InvertedIndexParam param; | 848 | 626 | param.column_name = data_type_with_name.first; | 849 | 626 | param.column_type = data_type_with_name.second; | 850 | 626 | param.query_value = param_value; | 851 | 626 | param.query_type = query_type; | 852 | 626 | param.num_rows = num_rows; | 853 | 626 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 626 | param.analyzer_ctx = analyzer_ctx; | 855 | 626 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 590 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 590 | if (iter->has_null()) { | 858 | 588 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 588 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 588 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 588 | } | 862 | 590 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 590 | bitmap_result = result; | 864 | 590 | bitmap_result.mask_out_null(); | 865 | | | 866 | 590 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 590 | return Status::OK(); | 873 | 590 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 75 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 75 | DCHECK(arguments.size() == 1); | 811 | 75 | DCHECK(data_type_with_names.size() == 1); | 812 | 75 | DCHECK(iterators.size() == 1); | 813 | 75 | auto* iter = iterators[0]; | 814 | 75 | auto data_type_with_name = data_type_with_names[0]; | 815 | 75 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 75 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 10 | return Status::OK(); | 820 | 10 | } | 821 | 65 | segment_v2::InvertedIndexQueryType query_type; | 822 | 65 | std::string_view name_view(name); | 823 | 65 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 65 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 65 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 0 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 0 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 65 | if (segment_v2::is_range_query(query_type) && | 838 | 65 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 65 | Field param_value; | 843 | 65 | arguments[0].column->get(0, param_value); | 844 | 65 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 65 | segment_v2::InvertedIndexParam param; | 848 | 65 | param.column_name = data_type_with_name.first; | 849 | 65 | param.column_type = data_type_with_name.second; | 850 | 65 | param.query_value = param_value; | 851 | 65 | param.query_type = query_type; | 852 | 65 | param.num_rows = num_rows; | 853 | 65 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 65 | param.analyzer_ctx = analyzer_ctx; | 855 | 65 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 58 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 58 | if (iter->has_null()) { | 858 | 56 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 56 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 56 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 56 | } | 862 | 58 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 58 | bitmap_result = result; | 864 | 58 | bitmap_result.mask_out_null(); | 865 | | | 866 | 58 | if (name_view == NameNotEquals::name) { | 867 | 58 | roaring::Roaring full_result; | 868 | 58 | full_result.addRange(0, num_rows); | 869 | 58 | bitmap_result.op_not(&full_result); | 870 | 58 | } | 871 | | | 872 | 58 | return Status::OK(); | 873 | 58 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 106 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 106 | DCHECK(arguments.size() == 1); | 811 | 106 | DCHECK(data_type_with_names.size() == 1); | 812 | 106 | DCHECK(iterators.size() == 1); | 813 | 106 | auto* iter = iterators[0]; | 814 | 106 | auto data_type_with_name = data_type_with_names[0]; | 815 | 106 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 106 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 39 | return Status::OK(); | 820 | 39 | } | 821 | 67 | segment_v2::InvertedIndexQueryType query_type; | 822 | 67 | std::string_view name_view(name); | 823 | 67 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 67 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 67 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 67 | } else if (name_view == NameGreater::name) { | 830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 67 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 67 | if (segment_v2::is_range_query(query_type) && | 838 | 67 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 17 | return Status::OK(); | 841 | 17 | } | 842 | 50 | Field param_value; | 843 | 50 | arguments[0].column->get(0, param_value); | 844 | 50 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 50 | segment_v2::InvertedIndexParam param; | 848 | 50 | param.column_name = data_type_with_name.first; | 849 | 50 | param.column_type = data_type_with_name.second; | 850 | 50 | param.query_value = param_value; | 851 | 50 | param.query_type = query_type; | 852 | 50 | param.num_rows = num_rows; | 853 | 50 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 50 | param.analyzer_ctx = analyzer_ctx; | 855 | 50 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 31 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 31 | if (iter->has_null()) { | 858 | 31 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 31 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 31 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 31 | } | 862 | 31 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 31 | bitmap_result = result; | 864 | 31 | bitmap_result.mask_out_null(); | 865 | | | 866 | 31 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 31 | return Status::OK(); | 873 | 31 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 176 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 176 | DCHECK(arguments.size() == 1); | 811 | 176 | DCHECK(data_type_with_names.size() == 1); | 812 | 176 | DCHECK(iterators.size() == 1); | 813 | 176 | auto* iter = iterators[0]; | 814 | 176 | auto data_type_with_name = data_type_with_names[0]; | 815 | 176 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 176 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 86 | return Status::OK(); | 820 | 86 | } | 821 | 90 | segment_v2::InvertedIndexQueryType query_type; | 822 | 90 | std::string_view name_view(name); | 823 | 92 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 90 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 90 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 90 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 92 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 92 | if (segment_v2::is_range_query(query_type) && | 838 | 92 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 47 | return Status::OK(); | 841 | 47 | } | 842 | 45 | Field param_value; | 843 | 45 | arguments[0].column->get(0, param_value); | 844 | 45 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 45 | segment_v2::InvertedIndexParam param; | 848 | 45 | param.column_name = data_type_with_name.first; | 849 | 45 | param.column_type = data_type_with_name.second; | 850 | 45 | param.query_value = param_value; | 851 | 45 | param.query_type = query_type; | 852 | 45 | param.num_rows = num_rows; | 853 | 45 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 45 | param.analyzer_ctx = analyzer_ctx; | 855 | 45 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 4 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 4 | if (iter->has_null()) { | 858 | 4 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 4 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 4 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 4 | } | 862 | 4 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 4 | bitmap_result = result; | 864 | 4 | bitmap_result.mask_out_null(); | 865 | | | 866 | 4 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 4 | return Status::OK(); | 873 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 113 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 113 | DCHECK(arguments.size() == 1); | 811 | 113 | DCHECK(data_type_with_names.size() == 1); | 812 | 113 | DCHECK(iterators.size() == 1); | 813 | 113 | auto* iter = iterators[0]; | 814 | 113 | auto data_type_with_name = data_type_with_names[0]; | 815 | 113 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 113 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 43 | return Status::OK(); | 820 | 43 | } | 821 | 70 | segment_v2::InvertedIndexQueryType query_type; | 822 | 70 | std::string_view name_view(name); | 823 | 70 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 70 | } else if (name_view == NameLess::name) { | 826 | 70 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 70 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 0 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 70 | if (segment_v2::is_range_query(query_type) && | 838 | 70 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 18 | return Status::OK(); | 841 | 18 | } | 842 | 52 | Field param_value; | 843 | 52 | arguments[0].column->get(0, param_value); | 844 | 52 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 52 | segment_v2::InvertedIndexParam param; | 848 | 52 | param.column_name = data_type_with_name.first; | 849 | 52 | param.column_type = data_type_with_name.second; | 850 | 52 | param.query_value = param_value; | 851 | 52 | param.query_type = query_type; | 852 | 52 | param.num_rows = num_rows; | 853 | 52 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 52 | param.analyzer_ctx = analyzer_ctx; | 855 | 52 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 35 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 35 | if (iter->has_null()) { | 858 | 35 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 35 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 35 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 35 | } | 862 | 35 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 35 | bitmap_result = result; | 864 | 35 | bitmap_result.mask_out_null(); | 865 | | | 866 | 35 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 35 | return Status::OK(); | 873 | 35 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 173 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 173 | DCHECK(arguments.size() == 1); | 811 | 173 | DCHECK(data_type_with_names.size() == 1); | 812 | 173 | DCHECK(iterators.size() == 1); | 813 | 173 | auto* iter = iterators[0]; | 814 | 173 | auto data_type_with_name = data_type_with_names[0]; | 815 | 173 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 173 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 92 | return Status::OK(); | 820 | 92 | } | 821 | 81 | segment_v2::InvertedIndexQueryType query_type; | 822 | 81 | std::string_view name_view(name); | 823 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 81 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 81 | } else if (name_view == NameLessOrEquals::name) { | 828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 81 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 81 | if (segment_v2::is_range_query(query_type) && | 838 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 51 | return Status::OK(); | 841 | 51 | } | 842 | 30 | Field param_value; | 843 | 30 | arguments[0].column->get(0, param_value); | 844 | 30 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 30 | segment_v2::InvertedIndexParam param; | 848 | 30 | param.column_name = data_type_with_name.first; | 849 | 30 | param.column_type = data_type_with_name.second; | 850 | 30 | param.query_value = param_value; | 851 | 30 | param.query_type = query_type; | 852 | 30 | param.num_rows = num_rows; | 853 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 30 | param.analyzer_ctx = analyzer_ctx; | 855 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 9 | if (iter->has_null()) { | 858 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 9 | } | 862 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 9 | bitmap_result = result; | 864 | 9 | bitmap_result.mask_out_null(); | 865 | | | 866 | 9 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 9 | return Status::OK(); | 873 | 9 | } |
|
874 | | |
875 | | // NOLINTNEXTLINE(readability-function-size) |
876 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
877 | 150k | uint32_t result, size_t input_rows_count) const override { |
878 | 150k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
879 | 150k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
880 | | |
881 | 150k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
882 | 150k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
883 | 150k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
884 | 150k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
885 | | |
886 | 150k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
887 | 150k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
888 | | |
889 | | /// The case when arguments are the same (tautological comparison). Return constant. |
890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
892 | 150k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
893 | 150k | col_left_untyped == col_right_untyped) { |
894 | | /// Always true: =, <=, >= |
895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
899 | 6 | block.get_by_position(result).column = |
900 | 6 | DataTypeUInt8() |
901 | 6 | .create_column_const(input_rows_count, |
902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) |
903 | 6 | ->convert_to_full_column_if_const(); |
904 | 6 | return Status::OK(); |
905 | 6 | } else { |
906 | 0 | block.get_by_position(result).column = |
907 | 0 | DataTypeUInt8() |
908 | 0 | .create_column_const(input_rows_count, |
909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
910 | 0 | ->convert_to_full_column_if_const(); |
911 | 0 | return Status::OK(); |
912 | 0 | } |
913 | 6 | } |
914 | | |
915 | 269k | auto can_compare = [](PrimitiveType t) -> bool { |
916 | 269k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
917 | 269k | is_timestamp_ns_type(t) || is_timestamptz_type(t); |
918 | 269k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 60.6k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 60.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 60.6k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 60.6k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 8.73k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 8.73k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 8.73k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 8.73k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 154k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 154k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 154k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 154k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 6.98k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 6.98k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 6.98k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 6.98k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 21.1k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 21.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 21.1k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 21.1k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 16.9k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 16.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 16.9k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 16.9k | }; |
|
919 | | |
920 | 150k | if (can_compare(left_type->get_primitive_type()) && |
921 | 150k | can_compare(right_type->get_primitive_type())) { |
922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
923 | 118k | if (!left_type->equals_ignore_precision(*right_type)) { |
924 | 70 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
925 | 70 | get_name(), left_type->get_name(), |
926 | 70 | right_type->get_name()); |
927 | 70 | } |
928 | 118k | } |
929 | | |
930 | 150k | auto compare_type = left_type->get_primitive_type(); |
931 | 150k | switch (compare_type) { |
932 | 293 | case TYPE_BOOLEAN: |
933 | 293 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
934 | 5.16k | case TYPE_DATEV2: |
935 | 5.16k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
936 | 942 | case TYPE_DATETIMEV2: |
937 | 942 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
938 | 927 | case TYPE_TIMESTAMP_NS: |
939 | 927 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
940 | 17 | case TYPE_TIMESTAMPTZ: |
941 | 17 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
942 | 9.88k | case TYPE_TINYINT: |
943 | 9.88k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
944 | 3.10k | case TYPE_SMALLINT: |
945 | 3.10k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
946 | 82.6k | case TYPE_INT: |
947 | 82.6k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
948 | 11.3k | case TYPE_BIGINT: |
949 | 11.3k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
950 | 686 | case TYPE_LARGEINT: |
951 | 686 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
952 | 34 | case TYPE_IPV4: |
953 | 34 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
954 | 33 | case TYPE_IPV6: |
955 | 33 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
956 | 4.87k | case TYPE_UUID: |
957 | 4.87k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
958 | 730 | case TYPE_FLOAT: |
959 | 730 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
960 | 2.78k | case TYPE_DOUBLE: |
961 | 2.78k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
962 | 52 | case TYPE_TIMEV2: |
963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
964 | 0 | case TYPE_DECIMALV2: |
965 | 292 | case TYPE_DECIMAL32: |
966 | 902 | case TYPE_DECIMAL64: |
967 | 3.08k | case TYPE_DECIMAL128I: |
968 | 3.15k | case TYPE_DECIMAL256: |
969 | 3.15k | return execute_decimal(block, result, col_with_type_and_name_left, |
970 | 3.15k | col_with_type_and_name_right); |
971 | 967 | case TYPE_CHAR: |
972 | 8.55k | case TYPE_VARCHAR: |
973 | 23.2k | case TYPE_STRING: |
974 | 23.2k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
975 | 217 | default: |
976 | 217 | return execute_generic(block, result, col_with_type_and_name_left, |
977 | 217 | col_with_type_and_name_right); |
978 | 150k | } |
979 | 0 | return Status::OK(); |
980 | 150k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 43.1k | uint32_t result, size_t input_rows_count) const override { | 878 | 43.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 43.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 43.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 43.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 43.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 43.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 43.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 43.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 43.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 43.1k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 6 | block.get_by_position(result).column = | 900 | 6 | DataTypeUInt8() | 901 | 6 | .create_column_const(input_rows_count, | 902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 6 | ->convert_to_full_column_if_const(); | 904 | 6 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 6 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 43.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 43.1k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 43.1k | }; | 919 | | | 920 | 43.1k | if (can_compare(left_type->get_primitive_type()) && | 921 | 43.1k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 17.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 20 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 20 | get_name(), left_type->get_name(), | 926 | 20 | right_type->get_name()); | 927 | 20 | } | 928 | 17.4k | } | 929 | | | 930 | 43.1k | auto compare_type = left_type->get_primitive_type(); | 931 | 43.1k | switch (compare_type) { | 932 | 111 | case TYPE_BOOLEAN: | 933 | 111 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 679 | case TYPE_DATEV2: | 935 | 679 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 410 | case TYPE_DATETIMEV2: | 937 | 410 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 215 | case TYPE_TIMESTAMP_NS: | 939 | 215 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 12 | case TYPE_TIMESTAMPTZ: | 941 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 6.05k | case TYPE_TINYINT: | 943 | 6.05k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 394 | case TYPE_SMALLINT: | 945 | 394 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 3.30k | case TYPE_INT: | 947 | 3.30k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 5.36k | case TYPE_BIGINT: | 949 | 5.36k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 102 | case TYPE_LARGEINT: | 951 | 102 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 12 | case TYPE_IPV4: | 953 | 12 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 17 | case TYPE_IPV6: | 955 | 17 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 2.80k | case TYPE_UUID: | 957 | 2.80k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 77 | case TYPE_FLOAT: | 959 | 77 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 703 | case TYPE_DOUBLE: | 961 | 703 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 52 | case TYPE_TIMEV2: | 963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 109 | case TYPE_DECIMAL32: | 966 | 225 | case TYPE_DECIMAL64: | 967 | 1.07k | case TYPE_DECIMAL128I: | 968 | 1.09k | case TYPE_DECIMAL256: | 969 | 1.09k | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 1.09k | col_with_type_and_name_right); | 971 | 675 | case TYPE_CHAR: | 972 | 7.52k | case TYPE_VARCHAR: | 973 | 21.7k | case TYPE_STRING: | 974 | 21.7k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 35 | default: | 976 | 35 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 35 | col_with_type_and_name_right); | 978 | 43.1k | } | 979 | 0 | return Status::OK(); | 980 | 43.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 4.49k | uint32_t result, size_t input_rows_count) const override { | 878 | 4.49k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 4.49k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 4.49k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 4.49k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 4.49k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 4.49k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 4.49k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 4.49k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 4.49k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 4.49k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 4.49k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 4.49k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 4.49k | }; | 919 | | | 920 | 4.49k | if (can_compare(left_type->get_primitive_type()) && | 921 | 4.49k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 4.23k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 4.23k | } | 929 | | | 930 | 4.48k | auto compare_type = left_type->get_primitive_type(); | 931 | 4.48k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 70 | case TYPE_DATEV2: | 935 | 70 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 0 | case TYPE_DATETIMEV2: | 937 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 11 | case TYPE_TIMESTAMP_NS: | 939 | 11 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 0 | case TYPE_TIMESTAMPTZ: | 941 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 84 | case TYPE_TINYINT: | 943 | 84 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 0 | case TYPE_SMALLINT: | 945 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 2.75k | case TYPE_INT: | 947 | 2.75k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 1.18k | case TYPE_BIGINT: | 949 | 1.18k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 0 | case TYPE_LARGEINT: | 951 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 0 | case TYPE_UUID: | 957 | 0 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 48 | case TYPE_FLOAT: | 959 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 63 | case TYPE_DOUBLE: | 961 | 63 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 0 | case TYPE_DECIMAL32: | 966 | 70 | case TYPE_DECIMAL64: | 967 | 98 | case TYPE_DECIMAL128I: | 968 | 128 | case TYPE_DECIMAL256: | 969 | 128 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 128 | col_with_type_and_name_right); | 971 | 1 | case TYPE_CHAR: | 972 | 58 | case TYPE_VARCHAR: | 973 | 125 | case TYPE_STRING: | 974 | 125 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 10 | default: | 976 | 10 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 10 | col_with_type_and_name_right); | 978 | 4.48k | } | 979 | 0 | return Status::OK(); | 980 | 4.48k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 78.1k | uint32_t result, size_t input_rows_count) const override { | 878 | 78.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 78.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 78.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 78.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 78.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 78.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 78.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 78.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 78.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 78.1k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 78.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 78.1k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 78.1k | }; | 919 | | | 920 | 78.1k | if (can_compare(left_type->get_primitive_type()) && | 921 | 78.1k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 76.5k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 76.5k | } | 929 | | | 930 | 78.0k | auto compare_type = left_type->get_primitive_type(); | 931 | 78.0k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 1.24k | case TYPE_DATEV2: | 935 | 1.24k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 3 | case TYPE_DATETIMEV2: | 937 | 3 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 72 | case TYPE_TIMESTAMP_NS: | 939 | 72 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 1 | case TYPE_TIMESTAMPTZ: | 941 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 1.27k | case TYPE_TINYINT: | 943 | 1.27k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 2.31k | case TYPE_SMALLINT: | 945 | 2.31k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 67.9k | case TYPE_INT: | 947 | 67.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 2.40k | case TYPE_BIGINT: | 949 | 2.40k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 260 | case TYPE_LARGEINT: | 951 | 260 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 4 | case TYPE_IPV4: | 953 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 611 | case TYPE_UUID: | 957 | 611 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 420 | case TYPE_FLOAT: | 959 | 420 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 593 | case TYPE_DOUBLE: | 961 | 593 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 8 | case TYPE_DECIMAL32: | 966 | 75 | case TYPE_DECIMAL64: | 967 | 754 | case TYPE_DECIMAL128I: | 968 | 756 | case TYPE_DECIMAL256: | 969 | 756 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 756 | col_with_type_and_name_right); | 971 | 14 | case TYPE_CHAR: | 972 | 108 | case TYPE_VARCHAR: | 973 | 215 | case TYPE_STRING: | 974 | 215 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 9 | default: | 976 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 9 | col_with_type_and_name_right); | 978 | 78.0k | } | 979 | 0 | return Status::OK(); | 980 | 78.0k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 4.02k | uint32_t result, size_t input_rows_count) const override { | 878 | 4.02k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 4.02k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 4.02k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 4.02k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 4.02k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 4.02k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 4.02k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 4.02k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 4.02k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 4.02k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 4.02k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 4.02k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 4.02k | }; | 919 | | | 920 | 4.02k | if (can_compare(left_type->get_primitive_type()) && | 921 | 4.02k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 2.96k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 2.96k | } | 929 | | | 930 | 4.01k | auto compare_type = left_type->get_primitive_type(); | 931 | 4.01k | switch (compare_type) { | 932 | 32 | case TYPE_BOOLEAN: | 933 | 32 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 461 | case TYPE_DATEV2: | 935 | 461 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 126 | case TYPE_DATETIMEV2: | 937 | 126 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 407 | case TYPE_TIMESTAMP_NS: | 939 | 407 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 1 | case TYPE_TIMESTAMPTZ: | 941 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 62 | case TYPE_TINYINT: | 943 | 62 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 101 | case TYPE_SMALLINT: | 945 | 101 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 712 | case TYPE_INT: | 947 | 712 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 769 | case TYPE_BIGINT: | 949 | 769 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 35 | case TYPE_LARGEINT: | 951 | 35 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 1 | case TYPE_IPV4: | 953 | 1 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 583 | case TYPE_UUID: | 957 | 583 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 30 | case TYPE_FLOAT: | 959 | 30 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 135 | case TYPE_DOUBLE: | 961 | 135 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 1 | case TYPE_DECIMAL32: | 966 | 76 | case TYPE_DECIMAL64: | 967 | 139 | case TYPE_DECIMAL128I: | 968 | 150 | case TYPE_DECIMAL256: | 969 | 150 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 150 | col_with_type_and_name_right); | 971 | 44 | case TYPE_CHAR: | 972 | 259 | case TYPE_VARCHAR: | 973 | 331 | case TYPE_STRING: | 974 | 331 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 78 | default: | 976 | 78 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 78 | col_with_type_and_name_right); | 978 | 4.01k | } | 979 | 0 | return Status::OK(); | 980 | 4.01k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 11.4k | uint32_t result, size_t input_rows_count) const override { | 878 | 11.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 11.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 11.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 11.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 11.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 11.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 11.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 11.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 11.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 11.4k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 11.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 11.4k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 11.4k | }; | 919 | | | 920 | 11.4k | if (can_compare(left_type->get_primitive_type()) && | 921 | 11.4k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 9.66k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 9.66k | } | 929 | | | 930 | 11.4k | auto compare_type = left_type->get_primitive_type(); | 931 | 11.4k | switch (compare_type) { | 932 | 98 | case TYPE_BOOLEAN: | 933 | 98 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 2.11k | case TYPE_DATEV2: | 935 | 2.11k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 308 | case TYPE_DATETIMEV2: | 937 | 308 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 158 | case TYPE_TIMESTAMP_NS: | 939 | 158 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 2.34k | case TYPE_TINYINT: | 943 | 2.34k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 173 | case TYPE_SMALLINT: | 945 | 173 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 1.99k | case TYPE_INT: | 947 | 1.99k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 906 | case TYPE_BIGINT: | 949 | 906 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 232 | case TYPE_LARGEINT: | 951 | 232 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 17 | case TYPE_IPV4: | 953 | 17 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 14 | case TYPE_IPV6: | 955 | 14 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 457 | case TYPE_UUID: | 957 | 457 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 135 | case TYPE_FLOAT: | 959 | 135 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 1.16k | case TYPE_DOUBLE: | 961 | 1.16k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 167 | case TYPE_DECIMAL32: | 966 | 362 | case TYPE_DECIMAL64: | 967 | 823 | case TYPE_DECIMAL128I: | 968 | 824 | case TYPE_DECIMAL256: | 969 | 824 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 824 | col_with_type_and_name_right); | 971 | 175 | case TYPE_CHAR: | 972 | 376 | case TYPE_VARCHAR: | 973 | 524 | case TYPE_STRING: | 974 | 524 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 12 | default: | 976 | 12 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 12 | col_with_type_and_name_right); | 978 | 11.4k | } | 979 | 0 | return Status::OK(); | 980 | 11.4k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 8.94k | uint32_t result, size_t input_rows_count) const override { | 878 | 8.94k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 8.94k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 8.94k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 8.94k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 8.94k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 8.94k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 8.94k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 8.94k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 8.94k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 8.94k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 8.94k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 8.94k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 8.94k | }; | 919 | | | 920 | 8.94k | if (can_compare(left_type->get_primitive_type()) && | 921 | 8.94k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 8.01k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 8.01k | } | 929 | | | 930 | 8.93k | auto compare_type = left_type->get_primitive_type(); | 931 | 8.93k | switch (compare_type) { | 932 | 52 | case TYPE_BOOLEAN: | 933 | 52 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 594 | case TYPE_DATEV2: | 935 | 594 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 95 | case TYPE_DATETIMEV2: | 937 | 95 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 64 | case TYPE_TIMESTAMP_NS: | 939 | 64 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 1 | case TYPE_TIMESTAMPTZ: | 941 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 74 | case TYPE_TINYINT: | 943 | 74 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 120 | case TYPE_SMALLINT: | 945 | 120 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 5.98k | case TYPE_INT: | 947 | 5.98k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 730 | case TYPE_BIGINT: | 949 | 730 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 57 | case TYPE_LARGEINT: | 951 | 57 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 423 | case TYPE_UUID: | 957 | 423 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 20 | case TYPE_FLOAT: | 959 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 128 | case TYPE_DOUBLE: | 961 | 128 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 7 | case TYPE_DECIMAL32: | 966 | 94 | case TYPE_DECIMAL64: | 967 | 195 | case TYPE_DECIMAL128I: | 968 | 204 | case TYPE_DECIMAL256: | 969 | 204 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 204 | col_with_type_and_name_right); | 971 | 58 | case TYPE_CHAR: | 972 | 228 | case TYPE_VARCHAR: | 973 | 320 | case TYPE_STRING: | 974 | 320 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 73 | default: | 976 | 73 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 73 | col_with_type_and_name_right); | 978 | 8.93k | } | 979 | 0 | return Status::OK(); | 980 | 8.93k | } |
|
981 | | }; |
982 | | |
983 | | } // namespace doris |