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 | 12.6k | PaddedPODArray<UInt8>& c) { |
74 | 12.6k | size_t size = a.size(); |
75 | 12.6k | const A* __restrict a_pos = a.data(); |
76 | 12.6k | const B* __restrict b_pos = b.data(); |
77 | 12.6k | UInt8* __restrict c_pos = c.data(); |
78 | 12.6k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 6.93M | while (a_pos < a_end) { |
81 | 6.92M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 6.92M | ++a_pos; |
83 | 6.92M | ++b_pos; |
84 | 6.92M | ++c_pos; |
85 | 6.92M | } |
86 | 12.6k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 71 | PaddedPODArray<UInt8>& c) { | 74 | 71 | size_t size = a.size(); | 75 | 71 | const A* __restrict a_pos = a.data(); | 76 | 71 | const B* __restrict b_pos = b.data(); | 77 | 71 | UInt8* __restrict c_pos = c.data(); | 78 | 71 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 146 | while (a_pos < a_end) { | 81 | 75 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 75 | ++a_pos; | 83 | 75 | ++b_pos; | 84 | 75 | ++c_pos; | 85 | 75 | } | 86 | 71 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_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 | 438 | while (a_pos < a_end) { | 81 | 223 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 223 | ++a_pos; | 83 | 223 | ++b_pos; | 84 | 223 | ++c_pos; | 85 | 223 | } | 86 | 215 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 251 | PaddedPODArray<UInt8>& c) { | 74 | 251 | size_t size = a.size(); | 75 | 251 | const A* __restrict a_pos = a.data(); | 76 | 251 | const B* __restrict b_pos = b.data(); | 77 | 251 | UInt8* __restrict c_pos = c.data(); | 78 | 251 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 518 | while (a_pos < a_end) { | 81 | 267 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 267 | ++a_pos; | 83 | 267 | ++b_pos; | 84 | 267 | ++c_pos; | 85 | 267 | } | 86 | 251 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 146 | PaddedPODArray<UInt8>& c) { | 74 | 146 | size_t size = a.size(); | 75 | 146 | const A* __restrict a_pos = a.data(); | 76 | 146 | const B* __restrict b_pos = b.data(); | 77 | 146 | UInt8* __restrict c_pos = c.data(); | 78 | 146 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 365 | while (a_pos < a_end) { | 81 | 219 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 219 | ++a_pos; | 83 | 219 | ++b_pos; | 84 | 219 | ++c_pos; | 85 | 219 | } | 86 | 146 | } |
_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 | 164 | PaddedPODArray<UInt8>& c) { | 74 | 164 | size_t size = a.size(); | 75 | 164 | const A* __restrict a_pos = a.data(); | 76 | 164 | const B* __restrict b_pos = b.data(); | 77 | 164 | UInt8* __restrict c_pos = c.data(); | 78 | 164 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 469 | while (a_pos < a_end) { | 81 | 305 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 305 | ++a_pos; | 83 | 305 | ++b_pos; | 84 | 305 | ++c_pos; | 85 | 305 | } | 86 | 164 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 118 | PaddedPODArray<UInt8>& c) { | 74 | 118 | size_t size = a.size(); | 75 | 118 | const A* __restrict a_pos = a.data(); | 76 | 118 | const B* __restrict b_pos = b.data(); | 77 | 118 | UInt8* __restrict c_pos = c.data(); | 78 | 118 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 236 | while (a_pos < a_end) { | 81 | 118 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 118 | ++a_pos; | 83 | 118 | ++b_pos; | 84 | 118 | ++c_pos; | 85 | 118 | } | 86 | 118 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1.09k | PaddedPODArray<UInt8>& c) { | 74 | 1.09k | size_t size = a.size(); | 75 | 1.09k | const A* __restrict a_pos = a.data(); | 76 | 1.09k | const B* __restrict b_pos = b.data(); | 77 | 1.09k | UInt8* __restrict c_pos = c.data(); | 78 | 1.09k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 20.0k | while (a_pos < a_end) { | 81 | 18.9k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.9k | ++a_pos; | 83 | 18.9k | ++b_pos; | 84 | 18.9k | ++c_pos; | 85 | 18.9k | } | 86 | 1.09k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 211 | PaddedPODArray<UInt8>& c) { | 74 | 211 | size_t size = a.size(); | 75 | 211 | const A* __restrict a_pos = a.data(); | 76 | 211 | const B* __restrict b_pos = b.data(); | 77 | 211 | UInt8* __restrict c_pos = c.data(); | 78 | 211 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.66k | while (a_pos < a_end) { | 81 | 1.45k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.45k | ++a_pos; | 83 | 1.45k | ++b_pos; | 84 | 1.45k | ++c_pos; | 85 | 1.45k | } | 86 | 211 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 80 | PaddedPODArray<UInt8>& c) { | 74 | 80 | size_t size = a.size(); | 75 | 80 | const A* __restrict a_pos = a.data(); | 76 | 80 | const B* __restrict b_pos = b.data(); | 77 | 80 | UInt8* __restrict c_pos = c.data(); | 78 | 80 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 160 | while (a_pos < a_end) { | 81 | 80 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 80 | ++a_pos; | 83 | 80 | ++b_pos; | 84 | 80 | ++c_pos; | 85 | 80 | } | 86 | 80 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_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_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_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 | 46 | while (a_pos < a_end) { | 81 | 23 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 23 | ++a_pos; | 83 | 23 | ++b_pos; | 84 | 23 | ++c_pos; | 85 | 23 | } | 86 | 23 | } |
_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 | 96 | PaddedPODArray<UInt8>& c) { | 74 | 96 | size_t size = a.size(); | 75 | 96 | const A* __restrict a_pos = a.data(); | 76 | 96 | const B* __restrict b_pos = b.data(); | 77 | 96 | UInt8* __restrict c_pos = c.data(); | 78 | 96 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 211 | while (a_pos < a_end) { | 81 | 115 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 115 | ++a_pos; | 83 | 115 | ++b_pos; | 84 | 115 | ++c_pos; | 85 | 115 | } | 86 | 96 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 115 | PaddedPODArray<UInt8>& c) { | 74 | 115 | size_t size = a.size(); | 75 | 115 | const A* __restrict a_pos = a.data(); | 76 | 115 | const B* __restrict b_pos = b.data(); | 77 | 115 | UInt8* __restrict c_pos = c.data(); | 78 | 115 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 301 | while (a_pos < a_end) { | 81 | 186 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 186 | ++a_pos; | 83 | 186 | ++b_pos; | 84 | 186 | ++c_pos; | 85 | 186 | } | 86 | 115 | } |
_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 | 1.47k | PaddedPODArray<UInt8>& c) { | 74 | 1.47k | size_t size = a.size(); | 75 | 1.47k | const A* __restrict a_pos = a.data(); | 76 | 1.47k | const B* __restrict b_pos = b.data(); | 77 | 1.47k | UInt8* __restrict c_pos = c.data(); | 78 | 1.47k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 313k | while (a_pos < a_end) { | 81 | 312k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 312k | ++a_pos; | 83 | 312k | ++b_pos; | 84 | 312k | ++c_pos; | 85 | 312k | } | 86 | 1.47k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_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 | 6.64k | while (a_pos < a_end) { | 81 | 6.28k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6.28k | ++a_pos; | 83 | 6.28k | ++b_pos; | 84 | 6.28k | ++c_pos; | 85 | 6.28k | } | 86 | 361 | } |
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.05k | PaddedPODArray<UInt8>& c) { | 74 | 1.05k | size_t size = a.size(); | 75 | 1.05k | const A* __restrict a_pos = a.data(); | 76 | 1.05k | const B* __restrict b_pos = b.data(); | 77 | 1.05k | UInt8* __restrict c_pos = c.data(); | 78 | 1.05k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.66M | while (a_pos < a_end) { | 81 | 2.66M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.66M | ++a_pos; | 83 | 2.66M | ++b_pos; | 84 | 2.66M | ++c_pos; | 85 | 2.66M | } | 86 | 1.05k | } |
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 | 86 | PaddedPODArray<UInt8>& c) { | 74 | 86 | size_t size = a.size(); | 75 | 86 | const A* __restrict a_pos = a.data(); | 76 | 86 | const B* __restrict b_pos = b.data(); | 77 | 86 | UInt8* __restrict c_pos = c.data(); | 78 | 86 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 414 | 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 | 86 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 129 | PaddedPODArray<UInt8>& c) { | 74 | 129 | size_t size = a.size(); | 75 | 129 | const A* __restrict a_pos = a.data(); | 76 | 129 | const B* __restrict b_pos = b.data(); | 77 | 129 | UInt8* __restrict c_pos = c.data(); | 78 | 129 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 385 | while (a_pos < a_end) { | 81 | 256 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 256 | ++a_pos; | 83 | 256 | ++b_pos; | 84 | 256 | ++c_pos; | 85 | 256 | } | 86 | 129 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 74 | PaddedPODArray<UInt8>& c) { | 74 | 74 | size_t size = a.size(); | 75 | 74 | const A* __restrict a_pos = a.data(); | 76 | 74 | const B* __restrict b_pos = b.data(); | 77 | 74 | UInt8* __restrict c_pos = c.data(); | 78 | 74 | 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 | 74 | } |
_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 | 6 | PaddedPODArray<UInt8>& c) { | 74 | 6 | size_t size = a.size(); | 75 | 6 | const A* __restrict a_pos = a.data(); | 76 | 6 | const B* __restrict b_pos = b.data(); | 77 | 6 | UInt8* __restrict c_pos = c.data(); | 78 | 6 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 65 | 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 | 6 | } |
_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 | 18 | PaddedPODArray<UInt8>& c) { | 74 | 18 | size_t size = a.size(); | 75 | 18 | const A* __restrict a_pos = a.data(); | 76 | 18 | const B* __restrict b_pos = b.data(); | 77 | 18 | UInt8* __restrict c_pos = c.data(); | 78 | 18 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 4.15k | while (a_pos < a_end) { | 81 | 4.13k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4.13k | ++a_pos; | 83 | 4.13k | ++b_pos; | 84 | 4.13k | ++c_pos; | 85 | 4.13k | } | 86 | 18 | } |
_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 | 90 | PaddedPODArray<UInt8>& c) { | 74 | 90 | size_t size = a.size(); | 75 | 90 | const A* __restrict a_pos = a.data(); | 76 | 90 | const B* __restrict b_pos = b.data(); | 77 | 90 | UInt8* __restrict c_pos = c.data(); | 78 | 90 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 354 | 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 | 90 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.71k | PaddedPODArray<UInt8>& c) { | 74 | 1.71k | size_t size = a.size(); | 75 | 1.71k | const A* __restrict a_pos = a.data(); | 76 | 1.71k | const B* __restrict b_pos = b.data(); | 77 | 1.71k | UInt8* __restrict c_pos = c.data(); | 78 | 1.71k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.66M | while (a_pos < a_end) { | 81 | 2.65M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.65M | ++a_pos; | 83 | 2.65M | ++b_pos; | 84 | 2.65M | ++c_pos; | 85 | 2.65M | } | 86 | 1.71k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 233 | PaddedPODArray<UInt8>& c) { | 74 | 233 | size_t size = a.size(); | 75 | 233 | const A* __restrict a_pos = a.data(); | 76 | 233 | const B* __restrict b_pos = b.data(); | 77 | 233 | UInt8* __restrict c_pos = c.data(); | 78 | 233 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 814 | while (a_pos < a_end) { | 81 | 581 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 581 | ++a_pos; | 83 | 581 | ++b_pos; | 84 | 581 | ++c_pos; | 85 | 581 | } | 86 | 233 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 113 | PaddedPODArray<UInt8>& c) { | 74 | 113 | size_t size = a.size(); | 75 | 113 | const A* __restrict a_pos = a.data(); | 76 | 113 | const B* __restrict b_pos = b.data(); | 77 | 113 | UInt8* __restrict c_pos = c.data(); | 78 | 113 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 243 | while (a_pos < a_end) { | 81 | 130 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 130 | ++a_pos; | 83 | 130 | ++b_pos; | 84 | 130 | ++c_pos; | 85 | 130 | } | 86 | 113 | } |
_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 | 230 | PaddedPODArray<UInt8>& c) { | 74 | 230 | size_t size = a.size(); | 75 | 230 | const A* __restrict a_pos = a.data(); | 76 | 230 | const B* __restrict b_pos = b.data(); | 77 | 230 | UInt8* __restrict c_pos = c.data(); | 78 | 230 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 634 | while (a_pos < a_end) { | 81 | 404 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 404 | ++a_pos; | 83 | 404 | ++b_pos; | 84 | 404 | ++c_pos; | 85 | 404 | } | 86 | 230 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 158 | PaddedPODArray<UInt8>& c) { | 74 | 158 | size_t size = a.size(); | 75 | 158 | const A* __restrict a_pos = a.data(); | 76 | 158 | const B* __restrict b_pos = b.data(); | 77 | 158 | UInt8* __restrict c_pos = c.data(); | 78 | 158 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 491 | while (a_pos < a_end) { | 81 | 333 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 333 | ++a_pos; | 83 | 333 | ++b_pos; | 84 | 333 | ++c_pos; | 85 | 333 | } | 86 | 158 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 928 | PaddedPODArray<UInt8>& c) { | 74 | 928 | size_t size = a.size(); | 75 | 928 | const A* __restrict a_pos = a.data(); | 76 | 928 | const B* __restrict b_pos = b.data(); | 77 | 928 | UInt8* __restrict c_pos = c.data(); | 78 | 928 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 18.9k | while (a_pos < a_end) { | 81 | 17.9k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 17.9k | ++a_pos; | 83 | 17.9k | ++b_pos; | 84 | 17.9k | ++c_pos; | 85 | 17.9k | } | 86 | 928 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 267 | PaddedPODArray<UInt8>& c) { | 74 | 267 | size_t size = a.size(); | 75 | 267 | const A* __restrict a_pos = a.data(); | 76 | 267 | const B* __restrict b_pos = b.data(); | 77 | 267 | UInt8* __restrict c_pos = c.data(); | 78 | 267 | 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 | 267 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_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 | 454 | 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 | 140 | } |
_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 | 132 | PaddedPODArray<UInt8>& c) { | 74 | 132 | size_t size = a.size(); | 75 | 132 | const A* __restrict a_pos = a.data(); | 76 | 132 | const B* __restrict b_pos = b.data(); | 77 | 132 | UInt8* __restrict c_pos = c.data(); | 78 | 132 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 457 | while (a_pos < a_end) { | 81 | 325 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 325 | ++a_pos; | 83 | 325 | ++b_pos; | 84 | 325 | ++c_pos; | 85 | 325 | } | 86 | 132 | } |
_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 | 496 | while (a_pos < a_end) { | 81 | 356 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 356 | ++a_pos; | 83 | 356 | ++b_pos; | 84 | 356 | ++c_pos; | 85 | 356 | } | 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 | 384 | PaddedPODArray<UInt8>& c) { | 74 | 384 | size_t size = a.size(); | 75 | 384 | const A* __restrict a_pos = a.data(); | 76 | 384 | const B* __restrict b_pos = b.data(); | 77 | 384 | UInt8* __restrict c_pos = c.data(); | 78 | 384 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 5.95k | while (a_pos < a_end) { | 81 | 5.57k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.57k | ++a_pos; | 83 | 5.57k | ++b_pos; | 84 | 5.57k | ++c_pos; | 85 | 5.57k | } | 86 | 384 | } |
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 | 37 | PaddedPODArray<UInt8>& c) { | 74 | 37 | size_t size = a.size(); | 75 | 37 | const A* __restrict a_pos = a.data(); | 76 | 37 | const B* __restrict b_pos = b.data(); | 77 | 37 | UInt8* __restrict c_pos = c.data(); | 78 | 37 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 82 | 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 | 37 | } |
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 | 113k | PaddedPODArray<UInt8>& c) { |
90 | 113k | size_t size = a.size(); |
91 | 113k | const A* __restrict a_pos = a.data(); |
92 | 113k | UInt8* __restrict c_pos = c.data(); |
93 | 113k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 42.3M | while (a_pos < a_end) { |
96 | 42.1M | *c_pos = Op::apply(*a_pos, b); |
97 | 42.1M | ++a_pos; |
98 | 42.1M | ++c_pos; |
99 | 42.1M | } |
100 | 113k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 30 | PaddedPODArray<UInt8>& c) { | 90 | 30 | size_t size = a.size(); | 91 | 30 | const A* __restrict a_pos = a.data(); | 92 | 30 | UInt8* __restrict c_pos = c.data(); | 93 | 30 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 184 | while (a_pos < a_end) { | 96 | 154 | *c_pos = Op::apply(*a_pos, b); | 97 | 154 | ++a_pos; | 98 | 154 | ++c_pos; | 99 | 154 | } | 100 | 30 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 428 | PaddedPODArray<UInt8>& c) { | 90 | 428 | size_t size = a.size(); | 91 | 428 | const A* __restrict a_pos = a.data(); | 92 | 428 | UInt8* __restrict c_pos = c.data(); | 93 | 428 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 202k | while (a_pos < a_end) { | 96 | 202k | *c_pos = Op::apply(*a_pos, b); | 97 | 202k | ++a_pos; | 98 | 202k | ++c_pos; | 99 | 202k | } | 100 | 428 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 192 | PaddedPODArray<UInt8>& c) { | 90 | 192 | size_t size = a.size(); | 91 | 192 | const A* __restrict a_pos = a.data(); | 92 | 192 | UInt8* __restrict c_pos = c.data(); | 93 | 192 | 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 | 192 | } |
_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 | 6.07k | PaddedPODArray<UInt8>& c) { | 90 | 6.07k | size_t size = a.size(); | 91 | 6.07k | const A* __restrict a_pos = a.data(); | 92 | 6.07k | UInt8* __restrict c_pos = c.data(); | 93 | 6.07k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.10M | while (a_pos < a_end) { | 96 | 9.09M | *c_pos = Op::apply(*a_pos, b); | 97 | 9.09M | ++a_pos; | 98 | 9.09M | ++c_pos; | 99 | 9.09M | } | 100 | 6.07k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 317 | PaddedPODArray<UInt8>& c) { | 90 | 317 | size_t size = a.size(); | 91 | 317 | const A* __restrict a_pos = a.data(); | 92 | 317 | UInt8* __restrict c_pos = c.data(); | 93 | 317 | 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 | 317 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.25k | PaddedPODArray<UInt8>& c) { | 90 | 2.25k | size_t size = a.size(); | 91 | 2.25k | const A* __restrict a_pos = a.data(); | 92 | 2.25k | UInt8* __restrict c_pos = c.data(); | 93 | 2.25k | 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.25k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.85k | PaddedPODArray<UInt8>& c) { | 90 | 6.85k | size_t size = a.size(); | 91 | 6.85k | const A* __restrict a_pos = a.data(); | 92 | 6.85k | UInt8* __restrict c_pos = c.data(); | 93 | 6.85k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.09M | while (a_pos < a_end) { | 96 | 5.08M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.08M | ++a_pos; | 98 | 5.08M | ++c_pos; | 99 | 5.08M | } | 100 | 6.85k | } |
_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 | 842 | PaddedPODArray<UInt8>& c) { | 90 | 842 | size_t size = a.size(); | 91 | 842 | const A* __restrict a_pos = a.data(); | 92 | 842 | UInt8* __restrict c_pos = c.data(); | 93 | 842 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 719k | while (a_pos < a_end) { | 96 | 718k | *c_pos = Op::apply(*a_pos, b); | 97 | 718k | ++a_pos; | 98 | 718k | ++c_pos; | 99 | 718k | } | 100 | 842 | } |
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 | 156 | PaddedPODArray<UInt8>& c) { | 90 | 156 | size_t size = a.size(); | 91 | 156 | const A* __restrict a_pos = a.data(); | 92 | 156 | UInt8* __restrict c_pos = c.data(); | 93 | 156 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.87k | while (a_pos < a_end) { | 96 | 1.72k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.72k | ++a_pos; | 98 | 1.72k | ++c_pos; | 99 | 1.72k | } | 100 | 156 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 166 | PaddedPODArray<UInt8>& c) { | 90 | 166 | size_t size = a.size(); | 91 | 166 | const A* __restrict a_pos = a.data(); | 92 | 166 | UInt8* __restrict c_pos = c.data(); | 93 | 166 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.48k | while (a_pos < a_end) { | 96 | 5.31k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.31k | ++a_pos; | 98 | 5.31k | ++c_pos; | 99 | 5.31k | } | 100 | 166 | } |
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 | 380 | PaddedPODArray<UInt8>& c) { | 90 | 380 | size_t size = a.size(); | 91 | 380 | const A* __restrict a_pos = a.data(); | 92 | 380 | UInt8* __restrict c_pos = c.data(); | 93 | 380 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.10M | while (a_pos < a_end) { | 96 | 2.10M | *c_pos = Op::apply(*a_pos, b); | 97 | 2.10M | ++a_pos; | 98 | 2.10M | ++c_pos; | 99 | 2.10M | } | 100 | 380 | } |
_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.26k | PaddedPODArray<UInt8>& c) { | 90 | 1.26k | size_t size = a.size(); | 91 | 1.26k | const A* __restrict a_pos = a.data(); | 92 | 1.26k | UInt8* __restrict c_pos = c.data(); | 93 | 1.26k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 13.1k | 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.26k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.11k | PaddedPODArray<UInt8>& c) { | 90 | 2.11k | size_t size = a.size(); | 91 | 2.11k | const A* __restrict a_pos = a.data(); | 92 | 2.11k | UInt8* __restrict c_pos = c.data(); | 93 | 2.11k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.82k | while (a_pos < a_end) { | 96 | 3.70k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.70k | ++a_pos; | 98 | 3.70k | ++c_pos; | 99 | 3.70k | } | 100 | 2.11k | } |
_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.36k | while (a_pos < a_end) { | 96 | 5.35k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.35k | ++a_pos; | 98 | 5.35k | ++c_pos; | 99 | 5.35k | } | 100 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 254 | PaddedPODArray<UInt8>& c) { | 90 | 254 | size_t size = a.size(); | 91 | 254 | const A* __restrict a_pos = a.data(); | 92 | 254 | UInt8* __restrict c_pos = c.data(); | 93 | 254 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.19k | while (a_pos < a_end) { | 96 | 937 | *c_pos = Op::apply(*a_pos, b); | 97 | 937 | ++a_pos; | 98 | 937 | ++c_pos; | 99 | 937 | } | 100 | 254 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.42k | PaddedPODArray<UInt8>& c) { | 90 | 5.42k | size_t size = a.size(); | 91 | 5.42k | const A* __restrict a_pos = a.data(); | 92 | 5.42k | UInt8* __restrict c_pos = c.data(); | 93 | 5.42k | 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.42k | } |
_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.96k | PaddedPODArray<UInt8>& c) { | 90 | 1.96k | size_t size = a.size(); | 91 | 1.96k | const A* __restrict a_pos = a.data(); | 92 | 1.96k | UInt8* __restrict c_pos = c.data(); | 93 | 1.96k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 99.3k | while (a_pos < a_end) { | 96 | 97.3k | *c_pos = Op::apply(*a_pos, b); | 97 | 97.3k | ++a_pos; | 98 | 97.3k | ++c_pos; | 99 | 97.3k | } | 100 | 1.96k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_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 | 32.7k | 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.02k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 290 | PaddedPODArray<UInt8>& c) { | 90 | 290 | size_t size = a.size(); | 91 | 290 | const A* __restrict a_pos = a.data(); | 92 | 290 | UInt8* __restrict c_pos = c.data(); | 93 | 290 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.92k | while (a_pos < a_end) { | 96 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.63k | ++a_pos; | 98 | 1.63k | ++c_pos; | 99 | 1.63k | } | 100 | 290 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_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 | 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 | 101 | } |
_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 | 556 | PaddedPODArray<UInt8>& c) { | 90 | 556 | size_t size = a.size(); | 91 | 556 | const A* __restrict a_pos = a.data(); | 92 | 556 | UInt8* __restrict c_pos = c.data(); | 93 | 556 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.01k | while (a_pos < a_end) { | 96 | 8.45k | *c_pos = Op::apply(*a_pos, b); | 97 | 8.45k | ++a_pos; | 98 | 8.45k | ++c_pos; | 99 | 8.45k | } | 100 | 556 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 923 | PaddedPODArray<UInt8>& c) { | 90 | 923 | size_t size = a.size(); | 91 | 923 | const A* __restrict a_pos = a.data(); | 92 | 923 | UInt8* __restrict c_pos = c.data(); | 93 | 923 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 609k | while (a_pos < a_end) { | 96 | 608k | *c_pos = Op::apply(*a_pos, b); | 97 | 608k | ++a_pos; | 98 | 608k | ++c_pos; | 99 | 608k | } | 100 | 923 | } |
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 | 20 | PaddedPODArray<UInt8>& c) { | 90 | 20 | size_t size = a.size(); | 91 | 20 | const A* __restrict a_pos = a.data(); | 92 | 20 | UInt8* __restrict c_pos = c.data(); | 93 | 20 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 87.5k | while (a_pos < a_end) { | 96 | 87.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 87.5k | ++a_pos; | 98 | 87.5k | ++c_pos; | 99 | 87.5k | } | 100 | 20 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 33 | PaddedPODArray<UInt8>& c) { | 90 | 33 | size_t size = a.size(); | 91 | 33 | const A* __restrict a_pos = a.data(); | 92 | 33 | UInt8* __restrict c_pos = c.data(); | 93 | 33 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 150k | while (a_pos < a_end) { | 96 | 150k | *c_pos = Op::apply(*a_pos, b); | 97 | 150k | ++a_pos; | 98 | 150k | ++c_pos; | 99 | 150k | } | 100 | 33 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 482 | PaddedPODArray<UInt8>& c) { | 90 | 482 | size_t size = a.size(); | 91 | 482 | const A* __restrict a_pos = a.data(); | 92 | 482 | UInt8* __restrict c_pos = c.data(); | 93 | 482 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.23M | while (a_pos < a_end) { | 96 | 2.23M | *c_pos = Op::apply(*a_pos, b); | 97 | 2.23M | ++a_pos; | 98 | 2.23M | ++c_pos; | 99 | 2.23M | } | 100 | 482 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 150 | PaddedPODArray<UInt8>& c) { | 90 | 150 | size_t size = a.size(); | 91 | 150 | const A* __restrict a_pos = a.data(); | 92 | 150 | UInt8* __restrict c_pos = c.data(); | 93 | 150 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 710k | while (a_pos < a_end) { | 96 | 710k | *c_pos = Op::apply(*a_pos, b); | 97 | 710k | ++a_pos; | 98 | 710k | ++c_pos; | 99 | 710k | } | 100 | 150 | } |
_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 | 435 | while (a_pos < a_end) { | 96 | 315 | *c_pos = Op::apply(*a_pos, b); | 97 | 315 | ++a_pos; | 98 | 315 | ++c_pos; | 99 | 315 | } | 100 | 120 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 71 | PaddedPODArray<UInt8>& c) { | 90 | 71 | size_t size = a.size(); | 91 | 71 | const A* __restrict a_pos = a.data(); | 92 | 71 | UInt8* __restrict c_pos = c.data(); | 93 | 71 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 278 | while (a_pos < a_end) { | 96 | 207 | *c_pos = Op::apply(*a_pos, b); | 97 | 207 | ++a_pos; | 98 | 207 | ++c_pos; | 99 | 207 | } | 100 | 71 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 47 | PaddedPODArray<UInt8>& c) { | 90 | 47 | size_t size = a.size(); | 91 | 47 | const A* __restrict a_pos = a.data(); | 92 | 47 | UInt8* __restrict c_pos = c.data(); | 93 | 47 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 116 | while (a_pos < a_end) { | 96 | 69 | *c_pos = Op::apply(*a_pos, b); | 97 | 69 | ++a_pos; | 98 | 69 | ++c_pos; | 99 | 69 | } | 100 | 47 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 39 | PaddedPODArray<UInt8>& c) { | 90 | 39 | size_t size = a.size(); | 91 | 39 | const A* __restrict a_pos = a.data(); | 92 | 39 | UInt8* __restrict c_pos = c.data(); | 93 | 39 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 94 | while (a_pos < a_end) { | 96 | 55 | *c_pos = Op::apply(*a_pos, b); | 97 | 55 | ++a_pos; | 98 | 55 | ++c_pos; | 99 | 55 | } | 100 | 39 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_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 | 3 | while (a_pos < a_end) { | 96 | 2 | *c_pos = Op::apply(*a_pos, b); | 97 | 2 | ++a_pos; | 98 | 2 | ++c_pos; | 99 | 2 | } | 100 | 1 | } |
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 | 96 | PaddedPODArray<UInt8>& c) { | 90 | 96 | size_t size = a.size(); | 91 | 96 | const A* __restrict a_pos = a.data(); | 92 | 96 | UInt8* __restrict c_pos = c.data(); | 93 | 96 | 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 | 96 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 84 | PaddedPODArray<UInt8>& c) { | 90 | 84 | size_t size = a.size(); | 91 | 84 | const A* __restrict a_pos = a.data(); | 92 | 84 | UInt8* __restrict c_pos = c.data(); | 93 | 84 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 127k | while (a_pos < a_end) { | 96 | 127k | *c_pos = Op::apply(*a_pos, b); | 97 | 127k | ++a_pos; | 98 | 127k | ++c_pos; | 99 | 127k | } | 100 | 84 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 138 | PaddedPODArray<UInt8>& c) { | 90 | 138 | size_t size = a.size(); | 91 | 138 | const A* __restrict a_pos = a.data(); | 92 | 138 | UInt8* __restrict c_pos = c.data(); | 93 | 138 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 116k | while (a_pos < a_end) { | 96 | 116k | *c_pos = Op::apply(*a_pos, b); | 97 | 116k | ++a_pos; | 98 | 116k | ++c_pos; | 99 | 116k | } | 100 | 138 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 146 | PaddedPODArray<UInt8>& c) { | 90 | 146 | size_t size = a.size(); | 91 | 146 | const A* __restrict a_pos = a.data(); | 92 | 146 | UInt8* __restrict c_pos = c.data(); | 93 | 146 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 114k | while (a_pos < a_end) { | 96 | 114k | *c_pos = Op::apply(*a_pos, b); | 97 | 114k | ++a_pos; | 98 | 114k | ++c_pos; | 99 | 114k | } | 100 | 146 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.92k | PaddedPODArray<UInt8>& c) { | 90 | 1.92k | size_t size = a.size(); | 91 | 1.92k | const A* __restrict a_pos = a.data(); | 92 | 1.92k | UInt8* __restrict c_pos = c.data(); | 93 | 1.92k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.98M | while (a_pos < a_end) { | 96 | 3.98M | *c_pos = Op::apply(*a_pos, b); | 97 | 3.98M | ++a_pos; | 98 | 3.98M | ++c_pos; | 99 | 3.98M | } | 100 | 1.92k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.92k | PaddedPODArray<UInt8>& c) { | 90 | 6.92k | size_t size = a.size(); | 91 | 6.92k | const A* __restrict a_pos = a.data(); | 92 | 6.92k | UInt8* __restrict c_pos = c.data(); | 93 | 6.92k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8.01M | while (a_pos < a_end) { | 96 | 8.00M | *c_pos = Op::apply(*a_pos, b); | 97 | 8.00M | ++a_pos; | 98 | 8.00M | ++c_pos; | 99 | 8.00M | } | 100 | 6.92k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 816 | PaddedPODArray<UInt8>& c) { | 90 | 816 | size_t size = a.size(); | 91 | 816 | const A* __restrict a_pos = a.data(); | 92 | 816 | UInt8* __restrict c_pos = c.data(); | 93 | 816 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.25k | while (a_pos < a_end) { | 96 | 3.43k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.43k | ++a_pos; | 98 | 3.43k | ++c_pos; | 99 | 3.43k | } | 100 | 816 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 612 | PaddedPODArray<UInt8>& c) { | 90 | 612 | size_t size = a.size(); | 91 | 612 | const A* __restrict a_pos = a.data(); | 92 | 612 | UInt8* __restrict c_pos = c.data(); | 93 | 612 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 46.4k | while (a_pos < a_end) { | 96 | 45.8k | *c_pos = Op::apply(*a_pos, b); | 97 | 45.8k | ++a_pos; | 98 | 45.8k | ++c_pos; | 99 | 45.8k | } | 100 | 612 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 29 | PaddedPODArray<UInt8>& c) { | 90 | 29 | size_t size = a.size(); | 91 | 29 | const A* __restrict a_pos = a.data(); | 92 | 29 | UInt8* __restrict c_pos = c.data(); | 93 | 29 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 111k | while (a_pos < a_end) { | 96 | 110k | *c_pos = Op::apply(*a_pos, b); | 97 | 110k | ++a_pos; | 98 | 110k | ++c_pos; | 99 | 110k | } | 100 | 29 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 42 | PaddedPODArray<UInt8>& c) { | 90 | 42 | size_t size = a.size(); | 91 | 42 | const A* __restrict a_pos = a.data(); | 92 | 42 | UInt8* __restrict c_pos = c.data(); | 93 | 42 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 152k | while (a_pos < a_end) { | 96 | 151k | *c_pos = Op::apply(*a_pos, b); | 97 | 151k | ++a_pos; | 98 | 151k | ++c_pos; | 99 | 151k | } | 100 | 42 | } |
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 | 469 | PaddedPODArray<UInt8>& c) { | 90 | 469 | size_t size = a.size(); | 91 | 469 | const A* __restrict a_pos = a.data(); | 92 | 469 | UInt8* __restrict c_pos = c.data(); | 93 | 469 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 49.6k | while (a_pos < a_end) { | 96 | 49.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 49.1k | ++a_pos; | 98 | 49.1k | ++c_pos; | 99 | 49.1k | } | 100 | 469 | } |
_ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 313 | PaddedPODArray<UInt8>& c) { | 90 | 313 | size_t size = a.size(); | 91 | 313 | const A* __restrict a_pos = a.data(); | 92 | 313 | UInt8* __restrict c_pos = c.data(); | 93 | 313 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.40k | while (a_pos < a_end) { | 96 | 3.09k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.09k | ++a_pos; | 98 | 3.09k | ++c_pos; | 99 | 3.09k | } | 100 | 313 | } |
_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 | 112 | PaddedPODArray<UInt8>& c) { | 90 | 112 | size_t size = a.size(); | 91 | 112 | const A* __restrict a_pos = a.data(); | 92 | 112 | UInt8* __restrict c_pos = c.data(); | 93 | 112 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 600k | while (a_pos < a_end) { | 96 | 600k | *c_pos = Op::apply(*a_pos, b); | 97 | 600k | ++a_pos; | 98 | 600k | ++c_pos; | 99 | 600k | } | 100 | 112 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 104 | PaddedPODArray<UInt8>& c) { | 90 | 104 | size_t size = a.size(); | 91 | 104 | const A* __restrict a_pos = a.data(); | 92 | 104 | UInt8* __restrict c_pos = c.data(); | 93 | 104 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 600k | while (a_pos < a_end) { | 96 | 600k | *c_pos = Op::apply(*a_pos, b); | 97 | 600k | ++a_pos; | 98 | 600k | ++c_pos; | 99 | 600k | } | 100 | 104 | } |
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.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 66.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 66.5k | } 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 | 312 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 312 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 312 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 48 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 142 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 142 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 142 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 994 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 994 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 994 | } |
_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 _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_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 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 90 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 90 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 90 | } |
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 | 246 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 246 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 246 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 240 | } |
_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 | 508 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 508 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 508 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 55 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 55 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 55 | } |
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 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 264 | } |
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 | 58 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 58 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 58 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 88 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 88 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 88 | } |
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 | 584 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 584 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 584 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _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 | 22 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 73 | 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 | 22 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 14 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 44 | 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 | 14 | } |
_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 | 176 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 176 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 634k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 634k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 634k | } |
121 | 176 | } _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 | 65 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 65 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 321k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 321k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 321k | } | 121 | 65 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 68 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 68 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 313k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 313k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 313k | } | 121 | 68 | } |
|
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 | 420 | PaddedPODArray<UInt8>& c) { |
135 | 420 | size_t size = a_offsets.size(); |
136 | 420 | ColumnString::Offset prev_a_offset = 0; |
137 | 420 | ColumnString::Offset prev_b_offset = 0; |
138 | 420 | const auto* a_pos = a_data.data(); |
139 | 420 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.56k | for (size_t i = 0; i < size; ++i) { |
142 | 1.14k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.14k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.14k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.14k | 0); |
146 | | |
147 | 1.14k | prev_a_offset = a_offsets[i]; |
148 | 1.14k | prev_b_offset = b_offsets[i]; |
149 | 1.14k | } |
150 | 420 | } _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 | 387 | PaddedPODArray<UInt8>& c) { | 135 | 387 | size_t size = a_offsets.size(); | 136 | 387 | ColumnString::Offset prev_a_offset = 0; | 137 | 387 | ColumnString::Offset prev_b_offset = 0; | 138 | 387 | const auto* a_pos = a_data.data(); | 139 | 387 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.30k | for (size_t i = 0; i < size; ++i) { | 142 | 913 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 913 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 913 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 913 | 0); | 146 | | | 147 | 913 | prev_a_offset = a_offsets[i]; | 148 | 913 | prev_b_offset = b_offsets[i]; | 149 | 913 | } | 150 | 387 | } |
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 | 927 | PaddedPODArray<UInt8>& c) { |
157 | 927 | size_t size = a_offsets.size(); |
158 | 927 | ColumnString::Offset prev_a_offset = 0; |
159 | 927 | const auto* a_pos = a_data.data(); |
160 | 927 | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.87M | for (size_t i = 0; i < size; ++i) { |
163 | 1.87M | c[i] = Op::apply( |
164 | 1.87M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.87M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.87M | 0); |
167 | | |
168 | 1.87M | prev_a_offset = a_offsets[i]; |
169 | 1.87M | } |
170 | 927 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 202 | PaddedPODArray<UInt8>& c) { | 157 | 202 | size_t size = a_offsets.size(); | 158 | 202 | ColumnString::Offset prev_a_offset = 0; | 159 | 202 | const auto* a_pos = a_data.data(); | 160 | 202 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 634k | for (size_t i = 0; i < size; ++i) { | 163 | 634k | c[i] = Op::apply( | 164 | 634k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 634k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 634k | 0); | 167 | | | 168 | 634k | prev_a_offset = a_offsets[i]; | 169 | 634k | } | 170 | 202 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 108 | PaddedPODArray<UInt8>& c) { | 157 | 108 | size_t size = a_offsets.size(); | 158 | 108 | ColumnString::Offset prev_a_offset = 0; | 159 | 108 | const auto* a_pos = a_data.data(); | 160 | 108 | 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 | 108 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 262 | PaddedPODArray<UInt8>& c) { | 157 | 262 | size_t size = a_offsets.size(); | 158 | 262 | ColumnString::Offset prev_a_offset = 0; | 159 | 262 | const auto* a_pos = a_data.data(); | 160 | 262 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 598k | for (size_t i = 0; i < size; ++i) { | 163 | 597k | c[i] = Op::apply( | 164 | 597k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 597k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 597k | 0); | 167 | | | 168 | 597k | prev_a_offset = a_offsets[i]; | 169 | 597k | } | 170 | 262 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 355 | PaddedPODArray<UInt8>& c) { | 157 | 355 | size_t size = a_offsets.size(); | 158 | 355 | ColumnString::Offset prev_a_offset = 0; | 159 | 355 | const auto* a_pos = a_data.data(); | 160 | 355 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 537k | for (size_t i = 0; i < size; ++i) { | 163 | 537k | c[i] = Op::apply( | 164 | 537k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 537k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 537k | 0); | 167 | | | 168 | 537k | prev_a_offset = a_offsets[i]; | 169 | 537k | } | 170 | 355 | } |
|
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 | 494 | PaddedPODArray<UInt8>& c) { |
189 | 494 | size_t size = a_offsets.size(); |
190 | 494 | ColumnString::Offset prev_a_offset = 0; |
191 | 494 | ColumnString::Offset prev_b_offset = 0; |
192 | 494 | const auto* a_pos = a_data.data(); |
193 | 494 | 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 | 494 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 477 | PaddedPODArray<UInt8>& c) { | 189 | 477 | size_t size = a_offsets.size(); | 190 | 477 | ColumnString::Offset prev_a_offset = 0; | 191 | 477 | ColumnString::Offset prev_b_offset = 0; | 192 | 477 | const auto* a_pos = a_data.data(); | 193 | 477 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 8.62k | for (size_t i = 0; i < size; ++i) { | 196 | 8.14k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 8.14k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 8.14k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 8.14k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 8.14k | prev_a_offset = a_offsets[i]; | 203 | 8.14k | prev_b_offset = b_offsets[i]; | 204 | 8.14k | } | 205 | 477 | } |
_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.16k | 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.7k | PaddedPODArray<UInt8>& c) { |
212 | 21.7k | size_t size = a_offsets.size(); |
213 | 21.7k | 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.7k | } else { |
223 | 21.7k | ColumnString::Offset prev_a_offset = 0; |
224 | 21.7k | const auto* a_pos = a_data.data(); |
225 | 21.7k | const auto* b_pos = b_data.data(); |
226 | 9.69M | for (size_t i = 0; i < size; ++i) { |
227 | 9.66M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 9.66M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 9.66M | b_pos, b_size); |
230 | 9.66M | prev_a_offset = a_offsets[i]; |
231 | 9.66M | } |
232 | 21.7k | } |
233 | 21.7k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 21.6k | PaddedPODArray<UInt8>& c) { | 212 | 21.6k | size_t size = a_offsets.size(); | 213 | 21.6k | 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.6k | } else { | 223 | 21.6k | ColumnString::Offset prev_a_offset = 0; | 224 | 21.6k | const auto* a_pos = a_data.data(); | 225 | 21.6k | const auto* b_pos = b_data.data(); | 226 | 9.63M | for (size_t i = 0; i < size; ++i) { | 227 | 9.60M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 9.60M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 9.60M | b_pos, b_size); | 230 | 9.60M | prev_a_offset = a_offsets[i]; | 231 | 9.60M | } | 232 | 21.6k | } | 233 | 21.6k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 116 | PaddedPODArray<UInt8>& c) { | 212 | 116 | size_t size = a_offsets.size(); | 213 | 116 | 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 | 115 | } else { | 223 | 115 | ColumnString::Offset prev_a_offset = 0; | 224 | 115 | const auto* a_pos = a_data.data(); | 225 | 115 | const auto* b_pos = b_data.data(); | 226 | 60.8k | for (size_t i = 0; i < size; ++i) { | 227 | 60.7k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 60.7k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 60.7k | b_pos, b_size); | 230 | 60.7k | prev_a_offset = a_offsets[i]; | 231 | 60.7k | } | 232 | 115 | } | 233 | 116 | } |
|
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 | 16 | PaddedPODArray<UInt8>& c) { |
240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 16 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 16 | PaddedPODArray<UInt8>& c) { | 240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 16 | } |
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.88k | const Field& rmax, Op op) { |
305 | 3.88k | switch (op) { |
306 | 1.96k | case Op::EQ: |
307 | | // Disjoint ranges cannot share a value. |
308 | 1.96k | return lmin > rmax || rmin > lmax; |
309 | 183 | case Op::NE: |
310 | | // Only provable when both sides collapse to the same single value. |
311 | 183 | return lmin == lmax && rmin == rmax && lmin == rmin; |
312 | 537 | case Op::LT: |
313 | 537 | return lmin >= rmax; |
314 | 332 | case Op::LE: |
315 | 332 | return lmin > rmax; |
316 | 524 | case Op::GT: |
317 | 524 | return rmin >= lmax; |
318 | 335 | case Op::GE: |
319 | 335 | return rmin > lmax; |
320 | 3.88k | } |
321 | 0 | __builtin_unreachable(); |
322 | 3.88k | } |
323 | | |
324 | | inline ZoneMapFilterResult evaluate_slot_literal(const ZoneMapEvalContext& ctx, |
325 | | const expr_zonemap::SlotLiteral& slot_literal, |
326 | 3.48k | Op op) { |
327 | 3.48k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal.slot_index, |
328 | 3.48k | slot_literal.slot_type); |
329 | 3.48k | if (slot_type == nullptr) { |
330 | 293 | return unsupported_zonemap_filter(ctx); |
331 | 293 | } |
332 | 3.18k | auto zone_map_ptr = ctx.zone_map(slot_literal.slot_index); |
333 | 3.18k | if (zone_map_ptr == nullptr) { |
334 | 46 | return unsupported_zonemap_filter(ctx); |
335 | 46 | } |
336 | 3.14k | const auto& zone_map = *zone_map_ptr; |
337 | 3.14k | if (!zone_map.has_not_null) { |
338 | 60 | return ZoneMapFilterResult::kNoMatch; |
339 | 60 | } |
340 | 3.08k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
341 | 125 | return unsupported_zonemap_filter(ctx); |
342 | 125 | } |
343 | | |
344 | 2.95k | const auto effective_op = slot_literal.literal_on_left ? symmetric_op(op) : op; |
345 | 2.95k | const auto& literal = slot_literal.literal; |
346 | 2.95k | const bool literal_is_nan = literal.is_nan(); |
347 | 2.95k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
348 | 2.95k | (effective_op == Op::NE && !literal_is_nan) || |
349 | 2.95k | (effective_op == Op::GT && !literal_is_nan) || |
350 | 2.95k | effective_op == Op::GE; |
351 | 2.95k | 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.90k | return range_vs_range_no_match(zone_map.min_value, zone_map.max_value, literal, literal, |
356 | 2.90k | effective_op) |
357 | 2.90k | ? ZoneMapFilterResult::kNoMatch |
358 | 2.90k | : ZoneMapFilterResult::kMayMatch; |
359 | 2.95k | } |
360 | | |
361 | | inline ZoneMapFilterResult evaluate_slot_slot(const ZoneMapEvalContext& ctx, |
362 | 1.05k | const expr_zonemap::SlotSlot& slot_slot, Op op) { |
363 | 1.05k | const auto left_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_slot.left_slot_index, |
364 | 1.05k | slot_slot.left_type); |
365 | 1.05k | const auto right_type = expr_zonemap::fetch_compatible_slot_type( |
366 | 1.05k | ctx, slot_slot.right_slot_index, slot_slot.right_type); |
367 | 1.05k | 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 | 1.05k | const auto left_zone_map = ctx.zone_map(slot_slot.left_slot_index); |
372 | 1.05k | const auto right_zone_map = ctx.zone_map(slot_slot.right_slot_index); |
373 | 1.05k | 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 | 1.04k | if (!left_zone_map->has_not_null || !right_zone_map->has_not_null) { |
381 | 35 | return ZoneMapFilterResult::kNoMatch; |
382 | 35 | } |
383 | 1.00k | if (!expr_zonemap::range_stats_usable_for_zonemap(*left_zone_map, left_type) || |
384 | 1.00k | !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 | 998 | if (is_string_type(remove_nullable(left_type)->get_primitive_type())) { |
398 | 388 | auto is_untruncated = [](const Field& f) { |
399 | 388 | return f.get<TYPE_STRING>().size() < MAX_ZONE_MAP_INDEX_SIZE; |
400 | 388 | }; |
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 | 995 | if (ctx.floating_nan_count_unknown(slot_slot.left_slot_index) || |
413 | 995 | ctx.floating_nan_count_unknown(slot_slot.right_slot_index)) { |
414 | 12 | return unsupported_zonemap_filter(ctx); |
415 | 12 | } |
416 | 983 | return range_vs_range_no_match(left_zone_map->min_value, left_zone_map->max_value, |
417 | 983 | right_zone_map->min_value, right_zone_map->max_value, op) |
418 | 983 | ? ZoneMapFilterResult::kNoMatch |
419 | 983 | : ZoneMapFilterResult::kMayMatch; |
420 | 995 | } |
421 | | |
422 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
423 | 4.51k | Op op) { |
424 | 4.51k | if (auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
425 | 4.51k | slot_literal.has_value()) { |
426 | 3.49k | return evaluate_slot_literal(ctx, *slot_literal, op); |
427 | 3.49k | } |
428 | 1.02k | 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 | 1.02k | DORIS_CHECK(slot_slot.has_value()); |
432 | 1.02k | return evaluate_slot_slot(ctx, *slot_slot, op); |
433 | 4.51k | } |
434 | | |
435 | 36.3k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
436 | 36.3k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
437 | 36.3k | if (!slot_literal.has_value()) { |
438 | 21.2k | return false; |
439 | 21.2k | } |
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 | 15.0k | if (slot_literal->literal.is_null()) { |
445 | 4 | return false; |
446 | 4 | } |
447 | | |
448 | 15.0k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
449 | 15.0k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
450 | 15.0k | 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 | 15.0k | return true; |
458 | 15.0k | } |
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 | 21.0k | inline bool can_evaluate_slot_slot(const VExprSPtrs& arguments) { |
465 | 21.0k | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
466 | 21.0k | if (!slot_slot.has_value()) { |
467 | 18.3k | return false; |
468 | 18.3k | } |
469 | 2.69k | DORIS_CHECK(slot_slot->left_type != nullptr); |
470 | 2.69k | 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.61k | const auto excluded = [](const DataTypePtr& type) { |
479 | 5.61k | const auto primitive_type = remove_nullable(type)->get_primitive_type(); |
480 | 5.63k | return is_varbinary(primitive_type) || primitive_type == TYPE_VARIANT || |
481 | 5.62k | primitive_type == TYPE_JSONB || is_complex_type(primitive_type) || |
482 | 5.61k | is_var_len_object(primitive_type); |
483 | 5.61k | }; |
484 | 2.80k | 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.68k | return expr_zonemap::data_types_compatible(slot_slot->left_type, slot_slot->right_type); |
492 | 2.69k | } |
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 | 41.2k | inline std::optional<Op> op_from_name(std::string_view name) { |
556 | 41.2k | if (name == NameEquals::name) { |
557 | 19.3k | return Op::EQ; |
558 | 19.3k | } |
559 | 21.8k | if (name == NameNotEquals::name) { |
560 | 1.69k | return Op::NE; |
561 | 1.69k | } |
562 | 20.1k | if (name == NameLess::name) { |
563 | 5.20k | return Op::LT; |
564 | 5.20k | } |
565 | 14.9k | if (name == NameLessOrEquals::name) { |
566 | 2.67k | return Op::LE; |
567 | 2.67k | } |
568 | 12.3k | if (name == NameGreater::name) { |
569 | 6.93k | return Op::GT; |
570 | 6.93k | } |
571 | 5.53k | if (name == NameGreaterOrEquals::name) { |
572 | 5.53k | return Op::GE; |
573 | 5.53k | } |
574 | 18.4E | return std::nullopt; |
575 | 5.37k | } |
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 | 305k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 582 | 272k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 582 | 1.27k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 582 | 7.22k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 582 | 8.68k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 582 | 4.05k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 582 | 10.9k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
583 | | |
584 | 305k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 584 | 272k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 584 | 1.28k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 584 | 7.23k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 584 | 8.67k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 584 | 4.06k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 584 | 10.9k | FunctionComparison() = default; |
|
585 | | |
586 | 688k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 586 | 681k | 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.35k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 586 | 2.11k | 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 | 984 | 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 | 126k | const ColumnPtr& col_right_ptr) const { |
592 | 126k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
593 | 126k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
594 | | |
595 | 126k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
596 | 126k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
597 | | |
598 | 126k | DCHECK(!(left_is_const && right_is_const)); |
599 | | |
600 | 126k | if (!left_is_const && !right_is_const) { |
601 | 12.6k | auto col_res = ColumnUInt8::create(); |
602 | | |
603 | 12.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
604 | 12.6k | vec_res.resize(col_left->get_data().size()); |
605 | 12.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
606 | 12.6k | typename PrimitiveTypeTraits<PT>::CppType, |
607 | 12.6k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
608 | 12.6k | vec_res); |
609 | | |
610 | 12.6k | block.replace_by_position(result, std::move(col_res)); |
611 | 113k | } else if (!left_is_const && right_is_const) { |
612 | 47.0k | auto col_res = ColumnUInt8::create(); |
613 | | |
614 | 47.0k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
615 | 47.0k | vec_res.resize(col_left->size()); |
616 | 47.0k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
617 | 47.0k | typename PrimitiveTypeTraits<PT>::CppType, |
618 | 47.0k | Op<PT>>::vector_constant(col_left->get_data(), |
619 | 47.0k | col_right->get_element(0), vec_res); |
620 | | |
621 | 47.0k | block.replace_by_position(result, std::move(col_res)); |
622 | 66.5k | } else if (left_is_const && !right_is_const) { |
623 | 66.5k | auto col_res = ColumnUInt8::create(); |
624 | | |
625 | 66.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
626 | 66.5k | vec_res.resize(col_right->size()); |
627 | 66.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
628 | 66.5k | typename PrimitiveTypeTraits<PT>::CppType, |
629 | 66.5k | Op<PT>>::constant_vector(col_left->get_element(0), |
630 | 66.5k | col_right->get_data(), vec_res); |
631 | | |
632 | 66.5k | block.replace_by_position(result, std::move(col_res)); |
633 | 66.5k | } |
634 | 126k | return Status::OK(); |
635 | 126k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_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 | 71 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 71 | vec_res.resize(col_left->get_data().size()); | 605 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 71 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 71 | vec_res); | 609 | | | 610 | 71 | block.replace_by_position(result, std::move(col_res)); | 611 | 71 | } else if (!left_is_const && right_is_const) { | 612 | 30 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 30 | vec_res.resize(col_left->size()); | 616 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 30 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 30 | col_right->get_element(0), vec_res); | 620 | | | 621 | 30 | block.replace_by_position(result, std::move(col_res)); | 622 | 30 | } 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_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 642 | const ColumnPtr& col_right_ptr) const { | 592 | 642 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 642 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 642 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 642 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 642 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 642 | if (!left_is_const && !right_is_const) { | 601 | 214 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 214 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 214 | vec_res.resize(col_left->get_data().size()); | 605 | 214 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 214 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 214 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 214 | vec_res); | 609 | | | 610 | 214 | block.replace_by_position(result, std::move(col_res)); | 611 | 428 | } else if (!left_is_const && right_is_const) { | 612 | 428 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 428 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 428 | vec_res.resize(col_left->size()); | 616 | 428 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 428 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 428 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 428 | col_right->get_element(0), vec_res); | 620 | | | 621 | 428 | block.replace_by_position(result, std::move(col_res)); | 622 | 428 | } 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 | 642 | return Status::OK(); | 635 | 642 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 442 | const ColumnPtr& col_right_ptr) const { | 592 | 442 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 442 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 442 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 442 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 442 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 443 | if (!left_is_const && !right_is_const) { | 601 | 251 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 251 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 251 | vec_res.resize(col_left->get_data().size()); | 605 | 251 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 251 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 251 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 251 | vec_res); | 609 | | | 610 | 251 | block.replace_by_position(result, std::move(col_res)); | 611 | 251 | } else if (!left_is_const && right_is_const) { | 612 | 192 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 192 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 192 | vec_res.resize(col_left->size()); | 616 | 192 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 192 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 192 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 192 | col_right->get_element(0), vec_res); | 620 | | | 621 | 192 | 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 | 442 | return Status::OK(); | 635 | 442 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 235 | const ColumnPtr& col_right_ptr) const { | 592 | 235 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 235 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 235 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 235 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 235 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 235 | if (!left_is_const && !right_is_const) { | 601 | 146 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 146 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 146 | vec_res.resize(col_left->get_data().size()); | 605 | 146 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 146 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 146 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 146 | vec_res); | 609 | | | 610 | 146 | block.replace_by_position(result, std::move(col_res)); | 611 | 146 | } 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 | 235 | return Status::OK(); | 635 | 235 | } |
_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.23k | const ColumnPtr& col_right_ptr) const { | 592 | 6.23k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.23k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.23k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.23k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.23k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.23k | if (!left_is_const && !right_is_const) { | 601 | 164 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 164 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 164 | vec_res.resize(col_left->get_data().size()); | 605 | 164 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 164 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 164 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 164 | vec_res); | 609 | | | 610 | 164 | block.replace_by_position(result, std::move(col_res)); | 611 | 6.06k | } else if (!left_is_const && right_is_const) { | 612 | 5.75k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.75k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.75k | vec_res.resize(col_left->size()); | 616 | 5.75k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.75k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.75k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.75k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.75k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.75k | } else if (left_is_const && !right_is_const) { | 623 | 312 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 312 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 312 | vec_res.resize(col_right->size()); | 627 | 312 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 312 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 312 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 312 | col_right->get_data(), vec_res); | 631 | | | 632 | 312 | block.replace_by_position(result, std::move(col_res)); | 633 | 312 | } | 634 | 6.23k | return Status::OK(); | 635 | 6.23k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 435 | const ColumnPtr& col_right_ptr) const { | 592 | 435 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 435 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 435 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 435 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 435 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 435 | if (!left_is_const && !right_is_const) { | 601 | 118 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 118 | vec_res.resize(col_left->get_data().size()); | 605 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 118 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 118 | vec_res); | 609 | | | 610 | 118 | block.replace_by_position(result, std::move(col_res)); | 611 | 317 | } 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 | 48 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 48 | vec_res.resize(col_right->size()); | 627 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 48 | col_right->get_data(), vec_res); | 631 | | | 632 | 48 | block.replace_by_position(result, std::move(col_res)); | 633 | 48 | } | 634 | 435 | return Status::OK(); | 635 | 435 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3.34k | const ColumnPtr& col_right_ptr) const { | 592 | 3.34k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3.34k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3.34k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3.34k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3.34k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3.34k | if (!left_is_const && !right_is_const) { | 601 | 1.09k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.09k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.09k | vec_res.resize(col_left->get_data().size()); | 605 | 1.09k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.09k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.09k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.09k | vec_res); | 609 | | | 610 | 1.09k | block.replace_by_position(result, std::move(col_res)); | 611 | 2.25k | } else if (!left_is_const && right_is_const) { | 612 | 2.11k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.11k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.11k | vec_res.resize(col_left->size()); | 616 | 2.11k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.11k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.11k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.11k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.11k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.11k | } else if (left_is_const && !right_is_const) { | 623 | 142 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 142 | vec_res.resize(col_right->size()); | 627 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 142 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 142 | col_right->get_data(), vec_res); | 631 | | | 632 | 142 | block.replace_by_position(result, std::move(col_res)); | 633 | 142 | } | 634 | 3.34k | return Status::OK(); | 635 | 3.34k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 7.06k | const ColumnPtr& col_right_ptr) const { | 592 | 7.06k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 7.06k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 7.06k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 7.06k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 7.06k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 7.06k | if (!left_is_const && !right_is_const) { | 601 | 210 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 210 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 210 | vec_res.resize(col_left->get_data().size()); | 605 | 210 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 210 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 210 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 210 | vec_res); | 609 | | | 610 | 210 | block.replace_by_position(result, std::move(col_res)); | 611 | 6.85k | } else if (!left_is_const && right_is_const) { | 612 | 5.85k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.85k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.85k | vec_res.resize(col_left->size()); | 616 | 5.85k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.85k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.85k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.85k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.85k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.85k | } else if (left_is_const && !right_is_const) { | 623 | 994 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 994 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 994 | vec_res.resize(col_right->size()); | 627 | 994 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 994 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 994 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 994 | col_right->get_data(), vec_res); | 631 | | | 632 | 994 | block.replace_by_position(result, std::move(col_res)); | 633 | 994 | } | 634 | 7.06k | return Status::OK(); | 635 | 7.06k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 125 | const ColumnPtr& col_right_ptr) const { | 592 | 125 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 125 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 125 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 125 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 125 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 125 | if (!left_is_const && !right_is_const) { | 601 | 80 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 80 | vec_res.resize(col_left->get_data().size()); | 605 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 80 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 80 | vec_res); | 609 | | | 610 | 80 | block.replace_by_position(result, std::move(col_res)); | 611 | 80 | } 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 | 125 | return Status::OK(); | 635 | 125 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 22 | const ColumnPtr& col_right_ptr) const { | 592 | 22 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 22 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 22 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 22 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 22 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 22 | 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 | 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 | 22 | return Status::OK(); | 635 | 22 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 27 | const ColumnPtr& col_right_ptr) const { | 592 | 27 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 27 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 27 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 27 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 27 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 27 | 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 | 23 | } 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 | 27 | return Status::OK(); | 635 | 27 | } |
_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 | 96 | const ColumnPtr& col_right_ptr) const { | 592 | 96 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 96 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 96 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 96 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 96 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 96 | if (!left_is_const && !right_is_const) { | 601 | 96 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 96 | vec_res.resize(col_left->get_data().size()); | 605 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 96 | vec_res); | 609 | | | 610 | 96 | block.replace_by_position(result, std::move(col_res)); | 611 | 96 | } 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 | 96 | return Status::OK(); | 635 | 96 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 957 | const ColumnPtr& col_right_ptr) const { | 592 | 957 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 957 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 957 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 957 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 957 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 957 | if (!left_is_const && !right_is_const) { | 601 | 115 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 115 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 115 | vec_res.resize(col_left->get_data().size()); | 605 | 115 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 115 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 115 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 115 | vec_res); | 609 | | | 610 | 115 | block.replace_by_position(result, std::move(col_res)); | 611 | 842 | } else if (!left_is_const && right_is_const) { | 612 | 842 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 842 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 842 | vec_res.resize(col_left->size()); | 616 | 842 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 842 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 842 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 842 | col_right->get_element(0), vec_res); | 620 | | | 621 | 842 | block.replace_by_position(result, std::move(col_res)); | 622 | 842 | } 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 | 957 | return Status::OK(); | 635 | 957 | } |
_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 | 1.63k | const ColumnPtr& col_right_ptr) const { | 592 | 1.63k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.63k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.63k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.63k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.63k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.63k | if (!left_is_const && !right_is_const) { | 601 | 1.47k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.47k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.47k | vec_res.resize(col_left->get_data().size()); | 605 | 1.47k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.47k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.47k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.47k | vec_res); | 609 | | | 610 | 1.47k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.47k | } else if (!left_is_const && right_is_const) { | 612 | 151 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 151 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 151 | vec_res.resize(col_left->size()); | 616 | 151 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 151 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 151 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 151 | col_right->get_element(0), vec_res); | 620 | | | 621 | 151 | block.replace_by_position(result, std::move(col_res)); | 622 | 151 | } 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 | 1.63k | return Status::OK(); | 635 | 1.63k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 527 | const ColumnPtr& col_right_ptr) const { | 592 | 527 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 527 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 527 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 527 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 527 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 527 | if (!left_is_const && !right_is_const) { | 601 | 360 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 360 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 360 | vec_res.resize(col_left->get_data().size()); | 605 | 360 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 360 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 360 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 360 | vec_res); | 609 | | | 610 | 360 | block.replace_by_position(result, std::move(col_res)); | 611 | 360 | } else if (!left_is_const && right_is_const) { | 612 | 76 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 76 | vec_res.resize(col_left->size()); | 616 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 76 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 76 | col_right->get_element(0), vec_res); | 620 | | | 621 | 76 | block.replace_by_position(result, std::move(col_res)); | 622 | 91 | } else if (left_is_const && !right_is_const) { | 623 | 90 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 90 | vec_res.resize(col_right->size()); | 627 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 90 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 90 | col_right->get_data(), vec_res); | 631 | | | 632 | 90 | block.replace_by_position(result, std::move(col_res)); | 633 | 90 | } | 634 | 527 | return Status::OK(); | 635 | 527 | } |
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 | 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 | 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 | 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 | 62 | return Status::OK(); | 635 | 62 | } |
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.09k | const ColumnPtr& col_right_ptr) const { | 592 | 1.09k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.09k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.09k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.09k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.09k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.09k | if (!left_is_const && !right_is_const) { | 601 | 1.05k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.05k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.05k | vec_res.resize(col_left->get_data().size()); | 605 | 1.05k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.05k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.05k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.05k | vec_res); | 609 | | | 610 | 1.05k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.05k | } 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.09k | return Status::OK(); | 635 | 1.09k | } |
_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 | 71 | const ColumnPtr& col_right_ptr) const { | 592 | 71 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 71 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 71 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 71 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 71 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 71 | 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 | 36 | } else if (!left_is_const && right_is_const) { | 612 | 36 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 36 | vec_res.resize(col_left->size()); | 616 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 36 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 36 | col_right->get_element(0), vec_res); | 620 | | | 621 | 36 | block.replace_by_position(result, std::move(col_res)); | 622 | 36 | } 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 | 71 | return Status::OK(); | 635 | 71 | } |
_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.33k | const ColumnPtr& col_right_ptr) const { | 592 | 1.33k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.33k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.33k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.33k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.33k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.33k | if (!left_is_const && !right_is_const) { | 601 | 86 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 86 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 86 | vec_res.resize(col_left->get_data().size()); | 605 | 86 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 86 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 86 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 86 | vec_res); | 609 | | | 610 | 86 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.24k | } else if (!left_is_const && right_is_const) { | 612 | 1.00k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.00k | vec_res.resize(col_left->size()); | 616 | 1.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.00k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.00k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.00k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.00k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.00k | } else if (left_is_const && !right_is_const) { | 623 | 246 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 246 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 246 | vec_res.resize(col_right->size()); | 627 | 246 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 246 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 246 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 246 | col_right->get_data(), vec_res); | 631 | | | 632 | 246 | block.replace_by_position(result, std::move(col_res)); | 633 | 246 | } | 634 | 1.33k | return Status::OK(); | 635 | 1.33k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.37k | const ColumnPtr& col_right_ptr) const { | 592 | 2.37k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.37k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.37k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.37k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.37k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.37k | if (!left_is_const && !right_is_const) { | 601 | 129 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 129 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 129 | vec_res.resize(col_left->get_data().size()); | 605 | 129 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 129 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 129 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 129 | vec_res); | 609 | | | 610 | 129 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.24k | } 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 | 239 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 239 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 239 | vec_res.resize(col_right->size()); | 627 | 239 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 239 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 239 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 239 | col_right->get_data(), vec_res); | 631 | | | 632 | 239 | block.replace_by_position(result, std::move(col_res)); | 633 | 239 | } | 634 | 2.37k | return Status::OK(); | 635 | 2.37k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 67.8k | const ColumnPtr& col_right_ptr) const { | 592 | 67.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 67.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 67.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 67.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 67.8k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 67.8k | if (!left_is_const && !right_is_const) { | 601 | 74 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 74 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 74 | vec_res.resize(col_left->get_data().size()); | 605 | 74 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 74 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 74 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 74 | vec_res); | 609 | | | 610 | 74 | block.replace_by_position(result, std::move(col_res)); | 611 | 67.7k | } else if (!left_is_const && right_is_const) { | 612 | 5.22k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.22k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.22k | vec_res.resize(col_left->size()); | 616 | 5.22k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.22k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.22k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.22k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.22k | 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.8k | return Status::OK(); | 635 | 67.8k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.59k | const ColumnPtr& col_right_ptr) const { | 592 | 2.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.59k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.59k | 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.41k | } else if (!left_is_const && right_is_const) { | 612 | 1.90k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.90k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.90k | vec_res.resize(col_left->size()); | 616 | 1.90k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.90k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.90k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.90k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.90k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.90k | } else if (left_is_const && !right_is_const) { | 623 | 508 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 508 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 508 | vec_res.resize(col_right->size()); | 627 | 508 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 508 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 508 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 508 | col_right->get_data(), vec_res); | 631 | | | 632 | 508 | block.replace_by_position(result, std::move(col_res)); | 633 | 508 | } | 634 | 2.59k | return Status::OK(); | 635 | 2.59k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 258 | const ColumnPtr& col_right_ptr) const { | 592 | 258 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 258 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 258 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 258 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 258 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 258 | 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 | 256 | } 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 | 55 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 55 | vec_res.resize(col_right->size()); | 627 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 55 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 55 | col_right->get_data(), vec_res); | 631 | | | 632 | 55 | block.replace_by_position(result, std::move(col_res)); | 633 | 55 | } | 634 | 258 | return Status::OK(); | 635 | 258 | } |
_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 | 401 | } else if (!left_is_const && right_is_const) { | 612 | 401 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 401 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 401 | vec_res.resize(col_left->size()); | 616 | 401 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 401 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 401 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 401 | col_right->get_element(0), vec_res); | 620 | | | 621 | 401 | 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 | 420 | return Status::OK(); | 635 | 420 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 585 | const ColumnPtr& col_right_ptr) const { | 592 | 585 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 585 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 585 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 585 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 585 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 585 | 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 | 555 | } else if (!left_is_const && right_is_const) { | 612 | 555 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 555 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 555 | vec_res.resize(col_left->size()); | 616 | 555 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 555 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 555 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 555 | col_right->get_element(0), vec_res); | 620 | | | 621 | 555 | block.replace_by_position(result, std::move(col_res)); | 622 | 555 | } 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 | 585 | return Status::OK(); | 635 | 585 | } |
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 | 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 | 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 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 20 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 20 | vec_res.resize(col_left->size()); | 616 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 20 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 20 | col_right->get_element(0), vec_res); | 620 | | | 621 | 20 | block.replace_by_position(result, std::move(col_res)); | 622 | 20 | } 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 483 | const ColumnPtr& col_right_ptr) const { | 592 | 483 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 483 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 483 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 483 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 483 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 483 | 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 | 482 | } else if (!left_is_const && right_is_const) { | 612 | 477 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 477 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 477 | vec_res.resize(col_left->size()); | 616 | 477 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 477 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 477 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 477 | col_right->get_element(0), vec_res); | 620 | | | 621 | 477 | block.replace_by_position(result, std::move(col_res)); | 622 | 477 | } 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 | 483 | return Status::OK(); | 635 | 483 | } |
_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 | 126 | if (!left_is_const && !right_is_const) { | 601 | 6 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 6 | vec_res.resize(col_left->get_data().size()); | 605 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 6 | vec_res); | 609 | | | 610 | 6 | 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 | 126 | return Status::OK(); | 635 | 126 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 408 | const ColumnPtr& col_right_ptr) const { | 592 | 408 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 408 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 408 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 408 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 408 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 408 | 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 | 47 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 47 | vec_res.resize(col_left->size()); | 616 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 47 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 47 | col_right->get_element(0), vec_res); | 620 | | | 621 | 47 | block.replace_by_position(result, std::move(col_res)); | 622 | 47 | } 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 | 408 | return Status::OK(); | 635 | 408 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 96 | const ColumnPtr& col_right_ptr) const { | 592 | 96 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 96 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 96 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 96 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 96 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 96 | 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 | 96 | } else if (!left_is_const && right_is_const) { | 612 | 96 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 96 | vec_res.resize(col_left->size()); | 616 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 96 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 96 | col_right->get_element(0), vec_res); | 620 | | | 621 | 96 | block.replace_by_position(result, std::move(col_res)); | 622 | 96 | } 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 | 96 | return Status::OK(); | 635 | 96 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 138 | const ColumnPtr& col_right_ptr) const { | 592 | 138 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 138 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 138 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 138 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 138 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 138 | 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 | 138 | } else if (!left_is_const && right_is_const) { | 612 | 138 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 138 | vec_res.resize(col_left->size()); | 616 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 138 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 138 | col_right->get_element(0), vec_res); | 620 | | | 621 | 138 | block.replace_by_position(result, std::move(col_res)); | 622 | 138 | } 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 | 138 | return Status::OK(); | 635 | 138 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.35k | const ColumnPtr& col_right_ptr) const { | 592 | 1.35k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.35k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.35k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.35k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.35k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.35k | if (!left_is_const && !right_is_const) { | 601 | 18 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 18 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 18 | vec_res.resize(col_left->get_data().size()); | 605 | 18 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 18 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 18 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 18 | vec_res); | 609 | | | 610 | 18 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.33k | } else if (!left_is_const && right_is_const) { | 612 | 1.33k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.33k | vec_res.resize(col_left->size()); | 616 | 1.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.33k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.33k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.33k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.33k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.33k | } 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.35k | return Status::OK(); | 635 | 1.35k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 801 | const ColumnPtr& col_right_ptr) const { | 592 | 801 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 801 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 801 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 801 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 801 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 801 | if (!left_is_const && !right_is_const) { | 601 | 33 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 33 | vec_res.resize(col_left->get_data().size()); | 605 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 33 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 33 | vec_res); | 609 | | | 610 | 33 | block.replace_by_position(result, std::move(col_res)); | 611 | 768 | } else if (!left_is_const && right_is_const) { | 612 | 768 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 768 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 768 | vec_res.resize(col_left->size()); | 616 | 768 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 768 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 768 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 768 | col_right->get_element(0), vec_res); | 620 | | | 621 | 768 | block.replace_by_position(result, std::move(col_res)); | 622 | 768 | } 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 | 801 | return Status::OK(); | 635 | 801 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 29 | const ColumnPtr& col_right_ptr) const { | 592 | 29 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 29 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 29 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 29 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 29 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 29 | 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 | 29 | } 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 | 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 | 29 | return Status::OK(); | 635 | 29 | } |
_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 | 577 | const ColumnPtr& col_right_ptr) const { | 592 | 577 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 577 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 577 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 577 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 577 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 577 | 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 | 469 | } else if (!left_is_const && right_is_const) { | 612 | 469 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 469 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 469 | vec_res.resize(col_left->size()); | 616 | 469 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 469 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 469 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 469 | col_right->get_element(0), vec_res); | 620 | | | 621 | 469 | block.replace_by_position(result, std::move(col_res)); | 622 | 469 | } 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 | 577 | return Status::OK(); | 635 | 577 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 29 | const ColumnPtr& col_right_ptr) const { | 592 | 29 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 29 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 29 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 29 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 29 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 29 | if (!left_is_const && !right_is_const) { | 601 | 19 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 19 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 19 | vec_res.resize(col_left->get_data().size()); | 605 | 19 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 19 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 19 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 19 | vec_res); | 609 | | | 610 | 19 | block.replace_by_position(result, std::move(col_res)); | 611 | 19 | } 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 | 29 | return Status::OK(); | 635 | 29 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 136 | const ColumnPtr& col_right_ptr) const { | 592 | 136 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 136 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 136 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 136 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 136 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 136 | 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 | 112 | } else if (!left_is_const && right_is_const) { | 612 | 112 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 112 | vec_res.resize(col_left->size()); | 616 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 112 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 112 | col_right->get_element(0), vec_res); | 620 | | | 621 | 112 | block.replace_by_position(result, std::move(col_res)); | 622 | 112 | } 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 | 136 | return Status::OK(); | 635 | 136 | } |
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 | 89 | const ColumnPtr& col_right_ptr) const { | 592 | 89 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 89 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 89 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 89 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 89 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 90 | if (!left_is_const && !right_is_const) { | 601 | 90 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 90 | vec_res.resize(col_left->get_data().size()); | 605 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 90 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 90 | vec_res); | 609 | | | 610 | 90 | block.replace_by_position(result, std::move(col_res)); | 611 | 18.4E | } 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 | 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 | 89 | return Status::OK(); | 635 | 89 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.09k | const ColumnPtr& col_right_ptr) const { | 592 | 2.09k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.09k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.09k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.09k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.09k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.09k | if (!left_is_const && !right_is_const) { | 601 | 1.71k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.71k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.71k | vec_res.resize(col_left->get_data().size()); | 605 | 1.71k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.71k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.71k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.71k | vec_res); | 609 | | | 610 | 1.71k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.71k | } else if (!left_is_const && right_is_const) { | 612 | 380 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 380 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 380 | vec_res.resize(col_left->size()); | 616 | 380 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 380 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 380 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 380 | col_right->get_element(0), vec_res); | 620 | | | 621 | 380 | block.replace_by_position(result, std::move(col_res)); | 622 | 380 | } 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.09k | return Status::OK(); | 635 | 2.09k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 292 | const ColumnPtr& col_right_ptr) const { | 592 | 292 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 292 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 292 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 292 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 292 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 292 | if (!left_is_const && !right_is_const) { | 601 | 233 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 233 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 233 | vec_res.resize(col_left->get_data().size()); | 605 | 233 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 233 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 233 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 233 | vec_res); | 609 | | | 610 | 233 | block.replace_by_position(result, std::move(col_res)); | 611 | 233 | } 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 | 292 | return Status::OK(); | 635 | 292 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 159 | const ColumnPtr& col_right_ptr) const { | 592 | 159 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 159 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 159 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 159 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 159 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 159 | if (!left_is_const && !right_is_const) { | 601 | 113 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 113 | vec_res.resize(col_left->get_data().size()); | 605 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 113 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 113 | vec_res); | 609 | | | 610 | 113 | block.replace_by_position(result, std::move(col_res)); | 611 | 113 | } 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 | 159 | return Status::OK(); | 635 | 159 | } |
_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.36k | const ColumnPtr& col_right_ptr) const { | 592 | 2.36k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.36k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.36k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.36k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.36k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.36k | if (!left_is_const && !right_is_const) { | 601 | 230 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 230 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 230 | vec_res.resize(col_left->get_data().size()); | 605 | 230 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 230 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 230 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 230 | vec_res); | 609 | | | 610 | 230 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.13k | } else if (!left_is_const && right_is_const) { | 612 | 1.87k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.87k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.87k | vec_res.resize(col_left->size()); | 616 | 1.87k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.87k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.87k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.87k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.87k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.87k | } else if (left_is_const && !right_is_const) { | 623 | 264 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 264 | vec_res.resize(col_right->size()); | 627 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 264 | col_right->get_data(), vec_res); | 631 | | | 632 | 264 | block.replace_by_position(result, std::move(col_res)); | 633 | 264 | } | 634 | 2.36k | return Status::OK(); | 635 | 2.36k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 172 | const ColumnPtr& col_right_ptr) const { | 592 | 172 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 172 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 172 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 172 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 172 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 172 | if (!left_is_const && !right_is_const) { | 601 | 158 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 158 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 158 | vec_res.resize(col_left->get_data().size()); | 605 | 158 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 158 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 158 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 158 | vec_res); | 609 | | | 610 | 158 | block.replace_by_position(result, std::move(col_res)); | 611 | 158 | } 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 | 172 | return Status::OK(); | 635 | 172 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.04k | const ColumnPtr& col_right_ptr) const { | 592 | 2.04k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.04k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.04k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.04k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.04k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.04k | if (!left_is_const && !right_is_const) { | 601 | 928 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 928 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 928 | vec_res.resize(col_left->get_data().size()); | 605 | 928 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 928 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 928 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 928 | vec_res); | 609 | | | 610 | 928 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.11k | } else if (!left_is_const && right_is_const) { | 612 | 926 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 926 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 926 | vec_res.resize(col_left->size()); | 616 | 926 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 926 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 926 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 926 | col_right->get_element(0), vec_res); | 620 | | | 621 | 926 | block.replace_by_position(result, std::move(col_res)); | 622 | 926 | } 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 | 2.04k | return Status::OK(); | 635 | 2.04k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 839 | const ColumnPtr& col_right_ptr) const { | 592 | 839 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 839 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 839 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 839 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 839 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 839 | if (!left_is_const && !right_is_const) { | 601 | 266 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 266 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 266 | vec_res.resize(col_left->get_data().size()); | 605 | 266 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 266 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 266 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 266 | vec_res); | 609 | | | 610 | 266 | block.replace_by_position(result, std::move(col_res)); | 611 | 573 | } else if (!left_is_const && right_is_const) { | 612 | 515 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 515 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 515 | vec_res.resize(col_left->size()); | 616 | 515 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 515 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 515 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 515 | col_right->get_element(0), vec_res); | 620 | | | 621 | 515 | block.replace_by_position(result, std::move(col_res)); | 622 | 515 | } else if (left_is_const && !right_is_const) { | 623 | 58 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 58 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 58 | vec_res.resize(col_right->size()); | 627 | 58 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 58 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 58 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 58 | col_right->get_data(), vec_res); | 631 | | | 632 | 58 | block.replace_by_position(result, std::move(col_res)); | 633 | 58 | } | 634 | 839 | return Status::OK(); | 635 | 839 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 274 | const ColumnPtr& col_right_ptr) const { | 592 | 274 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 274 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 274 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 274 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 274 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 274 | if (!left_is_const && !right_is_const) { | 601 | 140 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 140 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 140 | vec_res.resize(col_left->get_data().size()); | 605 | 140 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 140 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 140 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 140 | vec_res); | 609 | | | 610 | 140 | block.replace_by_position(result, std::move(col_res)); | 611 | 140 | } 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 | 88 | } else if (left_is_const && !right_is_const) { | 623 | 88 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 88 | vec_res.resize(col_right->size()); | 627 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 88 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 88 | col_right->get_data(), vec_res); | 631 | | | 632 | 88 | block.replace_by_position(result, std::move(col_res)); | 633 | 88 | } | 634 | 274 | return Status::OK(); | 635 | 274 | } |
_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 | 15 | const ColumnPtr& col_right_ptr) const { | 592 | 15 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 15 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 15 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 15 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 15 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 15 | 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 | 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 | 15 | return Status::OK(); | 635 | 15 | } |
_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 | 132 | const ColumnPtr& col_right_ptr) const { | 592 | 132 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 132 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 132 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 132 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 132 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 132 | if (!left_is_const && !right_is_const) { | 601 | 132 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 132 | vec_res.resize(col_left->get_data().size()); | 605 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 132 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 132 | vec_res); | 609 | | | 610 | 132 | block.replace_by_position(result, std::move(col_res)); | 611 | 132 | } 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 | 132 | return Status::OK(); | 635 | 132 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.06k | const ColumnPtr& col_right_ptr) const { | 592 | 1.06k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.06k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.06k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.06k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.06k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.06k | if (!left_is_const && !right_is_const) { | 601 | 140 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 140 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 140 | vec_res.resize(col_left->get_data().size()); | 605 | 140 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 140 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 140 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 140 | vec_res); | 609 | | | 610 | 140 | block.replace_by_position(result, std::move(col_res)); | 611 | 923 | } else if (!left_is_const && right_is_const) { | 612 | 923 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 923 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 923 | vec_res.resize(col_left->size()); | 616 | 923 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 923 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 923 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 923 | col_right->get_element(0), vec_res); | 620 | | | 621 | 923 | block.replace_by_position(result, std::move(col_res)); | 622 | 923 | } 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.06k | return Status::OK(); | 635 | 1.06k | } |
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 | 33 | const ColumnPtr& col_right_ptr) const { | 592 | 33 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 33 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 33 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 33 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 33 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 33 | 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 | 33 | } else if (!left_is_const && right_is_const) { | 612 | 33 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 33 | vec_res.resize(col_left->size()); | 616 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 33 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 33 | col_right->get_element(0), vec_res); | 620 | | | 621 | 33 | block.replace_by_position(result, std::move(col_res)); | 622 | 33 | } 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 | 33 | return Status::OK(); | 635 | 33 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 530 | const ColumnPtr& col_right_ptr) const { | 592 | 530 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 530 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 530 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 530 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 530 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 530 | if (!left_is_const && !right_is_const) { | 601 | 382 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 382 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 382 | vec_res.resize(col_left->get_data().size()); | 605 | 382 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 382 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 382 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 382 | vec_res); | 609 | | | 610 | 382 | block.replace_by_position(result, std::move(col_res)); | 611 | 382 | } else if (!left_is_const && right_is_const) { | 612 | 143 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 143 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 143 | vec_res.resize(col_left->size()); | 616 | 143 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 143 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 143 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 143 | col_right->get_element(0), vec_res); | 620 | | | 621 | 143 | block.replace_by_position(result, std::move(col_res)); | 622 | 143 | } 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 | 530 | return Status::OK(); | 635 | 530 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 71 | const ColumnPtr& col_right_ptr) const { | 592 | 71 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 71 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 71 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 71 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 71 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 71 | 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 | 71 | } else if (!left_is_const && right_is_const) { | 612 | 71 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 71 | vec_res.resize(col_left->size()); | 616 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 71 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 71 | col_right->get_element(0), vec_res); | 620 | | | 621 | 71 | block.replace_by_position(result, std::move(col_res)); | 622 | 71 | } 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 | 71 | return Status::OK(); | 635 | 71 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 65 | const ColumnPtr& col_right_ptr) const { | 592 | 65 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 65 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 65 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 65 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 65 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 65 | 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 | 39 | } else if (!left_is_const && right_is_const) { | 612 | 39 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 39 | vec_res.resize(col_left->size()); | 616 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 39 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 39 | col_right->get_element(0), vec_res); | 620 | | | 621 | 39 | block.replace_by_position(result, std::move(col_res)); | 622 | 39 | } 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 | 65 | return Status::OK(); | 635 | 65 | } |
_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 | 85 | const ColumnPtr& col_right_ptr) const { | 592 | 85 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 85 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 85 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 85 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 85 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 85 | 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 | 84 | } else if (!left_is_const && right_is_const) { | 612 | 84 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 84 | vec_res.resize(col_left->size()); | 616 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 84 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 84 | col_right->get_element(0), vec_res); | 620 | | | 621 | 84 | block.replace_by_position(result, std::move(col_res)); | 622 | 84 | } 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 | 85 | return Status::OK(); | 635 | 85 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 146 | const ColumnPtr& col_right_ptr) const { | 592 | 146 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 146 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 146 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 146 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 146 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 146 | 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 | 146 | } else if (!left_is_const && right_is_const) { | 612 | 146 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 146 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 146 | vec_res.resize(col_left->size()); | 616 | 146 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 146 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 146 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 146 | col_right->get_element(0), vec_res); | 620 | | | 621 | 146 | block.replace_by_position(result, std::move(col_res)); | 622 | 146 | } 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 | 146 | return Status::OK(); | 635 | 146 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 7.54k | const ColumnPtr& col_right_ptr) const { | 592 | 7.54k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 7.54k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 7.54k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 7.54k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 7.54k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 7.54k | 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 | 7.50k | } else if (!left_is_const && right_is_const) { | 612 | 6.92k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 6.92k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 6.92k | vec_res.resize(col_left->size()); | 616 | 6.92k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 6.92k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 6.92k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 6.92k | col_right->get_element(0), vec_res); | 620 | | | 621 | 6.92k | block.replace_by_position(result, std::move(col_res)); | 622 | 6.92k | } else if (left_is_const && !right_is_const) { | 623 | 584 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 584 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 584 | vec_res.resize(col_right->size()); | 627 | 584 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 584 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 584 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 584 | col_right->get_data(), vec_res); | 631 | | | 632 | 584 | block.replace_by_position(result, std::move(col_res)); | 633 | 584 | } | 634 | 7.54k | return Status::OK(); | 635 | 7.54k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 697 | const ColumnPtr& col_right_ptr) const { | 592 | 697 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 697 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 697 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 697 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 697 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 697 | if (!left_is_const && !right_is_const) { | 601 | 37 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 37 | vec_res.resize(col_left->get_data().size()); | 605 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 37 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 37 | vec_res); | 609 | | | 610 | 37 | block.replace_by_position(result, std::move(col_res)); | 611 | 660 | } else if (!left_is_const && right_is_const) { | 612 | 612 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 612 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 612 | vec_res.resize(col_left->size()); | 616 | 612 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 612 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 612 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 612 | col_right->get_element(0), vec_res); | 620 | | | 621 | 612 | block.replace_by_position(result, std::move(col_res)); | 622 | 612 | } else if (left_is_const && !right_is_const) { | 623 | 48 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 48 | vec_res.resize(col_right->size()); | 627 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 48 | col_right->get_data(), vec_res); | 631 | | | 632 | 48 | block.replace_by_position(result, std::move(col_res)); | 633 | 48 | } | 634 | 697 | return Status::OK(); | 635 | 697 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 42 | const ColumnPtr& col_right_ptr) const { | 592 | 42 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 42 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 42 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 42 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 42 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 42 | 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 | 42 | } else if (!left_is_const && right_is_const) { | 612 | 42 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 42 | vec_res.resize(col_left->size()); | 616 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 42 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 42 | col_right->get_element(0), vec_res); | 620 | | | 621 | 42 | block.replace_by_position(result, std::move(col_res)); | 622 | 42 | } 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 | 42 | return Status::OK(); | 635 | 42 | } |
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 | 417 | const ColumnPtr& col_right_ptr) const { | 592 | 417 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 417 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 417 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 417 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 417 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 417 | 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 | 313 | } else if (!left_is_const && right_is_const) { | 612 | 313 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 313 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 313 | vec_res.resize(col_left->size()); | 616 | 313 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 313 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 313 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 313 | col_right->get_element(0), vec_res); | 620 | | | 621 | 313 | block.replace_by_position(result, std::move(col_res)); | 622 | 313 | } 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 | 417 | return Status::OK(); | 635 | 417 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 19 | const ColumnPtr& col_right_ptr) const { | 592 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 19 | 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 | 18.4E | } 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 | 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 | 19 | return Status::OK(); | 635 | 19 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 124 | const ColumnPtr& col_right_ptr) const { | 592 | 124 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 124 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 124 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 124 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 124 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 124 | 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 | 104 | } else if (!left_is_const && right_is_const) { | 612 | 104 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 104 | vec_res.resize(col_left->size()); | 616 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 104 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 104 | col_right->get_element(0), vec_res); | 620 | | | 621 | 104 | block.replace_by_position(result, std::move(col_res)); | 622 | 104 | } 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 | 124 | return Status::OK(); | 635 | 124 | } |
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.33k | const ColumnWithTypeAndName& col_right) const { |
639 | 3.33k | auto call = [&](const auto& type) -> bool { |
640 | 3.33k | using DispatchType = std::decay_t<decltype(type)>; |
641 | 3.33k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
642 | 3.33k | block, result, col_left, col_right); |
643 | 3.33k | return true; |
644 | 3.33k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 137 | auto call = [&](const auto& type) -> bool { | 640 | 137 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 137 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 137 | block, result, col_left, col_right); | 643 | 137 | return true; | 644 | 137 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 140 | auto call = [&](const auto& type) -> bool { | 640 | 140 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 140 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 140 | block, result, col_left, col_right); | 643 | 140 | return true; | 644 | 140 | }; |
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 | 939 | auto call = [&](const auto& type) -> bool { | 640 | 939 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 939 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 939 | block, result, col_left, col_right); | 643 | 939 | return true; | 644 | 939 | }; |
_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 | 69 | auto call = [&](const auto& type) -> bool { | 640 | 69 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 69 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 69 | block, result, col_left, col_right); | 643 | 69 | return true; | 644 | 69 | }; |
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 | 702 | auto call = [&](const auto& type) -> bool { | 640 | 702 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 702 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 702 | block, result, col_left, col_right); | 643 | 702 | return true; | 644 | 702 | }; |
_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 | 81 | auto call = [&](const auto& type) -> bool { | 640 | 81 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 81 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 81 | block, result, col_left, col_right); | 643 | 81 | return true; | 644 | 81 | }; |
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 | 73 | auto call = [&](const auto& type) -> bool { | 640 | 73 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 73 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 73 | block, result, col_left, col_right); | 643 | 73 | return true; | 644 | 73 | }; |
_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 | 174 | auto call = [&](const auto& type) -> bool { | 640 | 174 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 174 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 174 | block, result, col_left, col_right); | 643 | 174 | return true; | 644 | 174 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 192 | auto call = [&](const auto& type) -> bool { | 640 | 192 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 192 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 192 | block, result, col_left, col_right); | 643 | 192 | return true; | 644 | 192 | }; |
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 | 474 | auto call = [&](const auto& type) -> bool { | 640 | 474 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 474 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 474 | block, result, col_left, col_right); | 643 | 474 | return true; | 644 | 474 | }; |
_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 | 4 | auto call = [&](const auto& type) -> bool { | 640 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 4 | block, result, col_left, col_right); | 643 | 4 | return true; | 644 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 94 | auto call = [&](const auto& type) -> bool { | 640 | 94 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 94 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 94 | block, result, col_left, col_right); | 643 | 94 | return true; | 644 | 94 | }; |
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 | 89 | auto call = [&](const auto& type) -> bool { | 640 | 89 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 89 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 89 | block, result, col_left, col_right); | 643 | 89 | return true; | 644 | 89 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ 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 | }; |
|
645 | | |
646 | 3.33k | 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.33k | 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.33k | return Status::OK(); |
657 | 3.33k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 1.23k | const ColumnWithTypeAndName& col_right) const { | 639 | 1.23k | auto call = [&](const auto& type) -> bool { | 640 | 1.23k | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1.23k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1.23k | block, result, col_left, col_right); | 643 | 1.23k | return true; | 644 | 1.23k | }; | 645 | | | 646 | 1.23k | 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.23k | 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.23k | return Status::OK(); | 657 | 1.23k | } |
_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 | 778 | const ColumnWithTypeAndName& col_right) const { | 639 | 778 | auto call = [&](const auto& type) -> bool { | 640 | 778 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 778 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 778 | block, result, col_left, col_right); | 643 | 778 | return true; | 644 | 778 | }; | 645 | | | 646 | 778 | 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 | 778 | 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 | 778 | return Status::OK(); | 657 | 778 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 166 | const ColumnWithTypeAndName& col_right) const { | 639 | 166 | auto call = [&](const auto& type) -> bool { | 640 | 166 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 166 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 166 | block, result, col_left, col_right); | 643 | 166 | return true; | 644 | 166 | }; | 645 | | | 646 | 166 | 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 | 166 | 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 | 166 | return Status::OK(); | 657 | 166 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 841 | const ColumnWithTypeAndName& col_right) const { | 639 | 841 | auto call = [&](const auto& type) -> bool { | 640 | 841 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 841 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 841 | block, result, col_left, col_right); | 643 | 841 | return true; | 644 | 841 | }; | 645 | | | 646 | 841 | 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 | 841 | 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 | 841 | return Status::OK(); | 657 | 841 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 194 | const ColumnWithTypeAndName& col_right) const { | 639 | 194 | auto call = [&](const auto& type) -> bool { | 640 | 194 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 194 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 194 | block, result, col_left, col_right); | 643 | 194 | return true; | 644 | 194 | }; | 645 | | | 646 | 194 | 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 | 194 | 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 | 194 | return Status::OK(); | 657 | 194 | } |
|
658 | | |
659 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
660 | 23.6k | const IColumn* c1) const { |
661 | 23.6k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
662 | 23.6k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
663 | 23.6k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
664 | 23.6k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
665 | 23.6k | 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.6k | DCHECK(!(c0_const && c1_const)); |
670 | 23.6k | const ColumnString::Chars* c0_const_chars = nullptr; |
671 | 23.6k | const ColumnString::Chars* c1_const_chars = nullptr; |
672 | 23.6k | ColumnString::Offset c0_const_size = 0; |
673 | 23.6k | ColumnString::Offset c1_const_size = 0; |
674 | | |
675 | 23.6k | if (c0_const) { |
676 | 78 | const ColumnString* c0_const_string = |
677 | 78 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
678 | | |
679 | 78 | if (c0_const_string) { |
680 | 78 | c0_const_chars = &c0_const_string->get_chars(); |
681 | 78 | c0_const_size = c0_const_string->get_offsets()[0]; |
682 | 78 | } else { |
683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
684 | 0 | c0->get_name(), name); |
685 | 0 | } |
686 | 78 | } |
687 | | |
688 | 23.6k | if (c1_const) { |
689 | 22.6k | const ColumnString* c1_const_string = |
690 | 22.6k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
691 | | |
692 | 22.6k | if (c1_const_string) { |
693 | 22.6k | c1_const_chars = &c1_const_string->get_chars(); |
694 | 22.6k | 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.6k | } |
700 | | |
701 | 23.6k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
702 | | |
703 | 23.6k | auto c_res = ColumnUInt8::create(); |
704 | 23.6k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
705 | 23.6k | vec_res.resize(c0->size()); |
706 | | |
707 | 23.6k | if (c0_string && c1_string) { |
708 | 914 | StringImpl::string_vector_string_vector( |
709 | 914 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
710 | 914 | c1_string->get_offsets(), vec_res); |
711 | 22.7k | } else if (c0_string && c1_const) { |
712 | 22.6k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
713 | 22.6k | *c1_const_chars, c1_const_size, vec_res); |
714 | 22.6k | } else if (c0_const && c1_string) { |
715 | 78 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
716 | 78 | c1_string->get_chars(), c1_string->get_offsets(), |
717 | 78 | vec_res); |
718 | 78 | } else { |
719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
720 | 0 | c0->get_name(), c1->get_name(), name); |
721 | 0 | } |
722 | 23.6k | block.replace_by_position(result, std::move(c_res)); |
723 | 23.6k | return Status::OK(); |
724 | 23.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 22.1k | const IColumn* c1) const { | 661 | 22.1k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 22.1k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 22.1k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 22.1k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 22.1k | 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 | 22.1k | DCHECK(!(c0_const && c1_const)); | 670 | 22.1k | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 22.1k | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 22.1k | ColumnString::Offset c0_const_size = 0; | 673 | 22.1k | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 22.1k | if (c0_const) { | 676 | 16 | const ColumnString* c0_const_string = | 677 | 16 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 16 | if (c0_const_string) { | 680 | 16 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 16 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 16 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 16 | } | 687 | | | 688 | 22.1k | if (c1_const) { | 689 | 21.6k | const ColumnString* c1_const_string = | 690 | 21.6k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 21.6k | if (c1_const_string) { | 693 | 21.6k | c1_const_chars = &c1_const_string->get_chars(); | 694 | 21.6k | 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.6k | } | 700 | | | 701 | 22.1k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 22.1k | auto c_res = ColumnUInt8::create(); | 704 | 22.1k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 22.1k | vec_res.resize(c0->size()); | 706 | | | 707 | 22.1k | if (c0_string && c1_string) { | 708 | 477 | StringImpl::string_vector_string_vector( | 709 | 477 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 477 | c1_string->get_offsets(), vec_res); | 711 | 21.6k | } else if (c0_string && c1_const) { | 712 | 21.6k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 21.6k | *c1_const_chars, c1_const_size, vec_res); | 714 | 21.6k | } else if (c0_const && c1_string) { | 715 | 16 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 16 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 16 | vec_res); | 718 | 16 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 22.1k | block.replace_by_position(result, std::move(c_res)); | 723 | 22.1k | return Status::OK(); | 724 | 22.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 133 | const IColumn* c1) const { | 661 | 133 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 133 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 133 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 133 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 133 | 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 | 133 | DCHECK(!(c0_const && c1_const)); | 670 | 133 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 133 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 133 | ColumnString::Offset c0_const_size = 0; | 673 | 133 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 133 | 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 | 133 | if (c1_const) { | 689 | 116 | const ColumnString* c1_const_string = | 690 | 116 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 116 | if (c1_const_string) { | 693 | 116 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 116 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 116 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 116 | } | 700 | | | 701 | 133 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 133 | auto c_res = ColumnUInt8::create(); | 704 | 133 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 133 | vec_res.resize(c0->size()); | 706 | | | 707 | 133 | 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 | 116 | } else if (c0_string && c1_const) { | 712 | 116 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 116 | *c1_const_chars, c1_const_size, vec_res); | 714 | 116 | } 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 | 133 | block.replace_by_position(result, std::move(c_res)); | 723 | 133 | return Status::OK(); | 724 | 133 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 198 | const IColumn* c1) const { | 661 | 198 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 198 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 198 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 198 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 198 | 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 | 198 | DCHECK(!(c0_const && c1_const)); | 670 | 198 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 198 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 198 | ColumnString::Offset c0_const_size = 0; | 673 | 198 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 198 | 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 | 198 | if (c1_const) { | 689 | 196 | const ColumnString* c1_const_string = | 690 | 196 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 196 | if (c1_const_string) { | 693 | 196 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 196 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 196 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 196 | } | 700 | | | 701 | 198 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 198 | auto c_res = ColumnUInt8::create(); | 704 | 198 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 198 | vec_res.resize(c0->size()); | 706 | | | 707 | 198 | 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 | 196 | } else if (c0_string && c1_const) { | 712 | 196 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 196 | *c1_const_chars, c1_const_size, vec_res); | 714 | 196 | } 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 | 198 | block.replace_by_position(result, std::move(c_res)); | 723 | 198 | return Status::OK(); | 724 | 198 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 349 | const IColumn* c1) const { | 661 | 349 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 349 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 349 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 349 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 349 | 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 | 349 | DCHECK(!(c0_const && c1_const)); | 670 | 349 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 349 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 349 | ColumnString::Offset c0_const_size = 0; | 673 | 349 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 349 | 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 | 349 | if (c1_const) { | 689 | 262 | const ColumnString* c1_const_string = | 690 | 262 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 262 | if (c1_const_string) { | 693 | 262 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 262 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 262 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 262 | } | 700 | | | 701 | 349 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 349 | auto c_res = ColumnUInt8::create(); | 704 | 349 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 349 | vec_res.resize(c0->size()); | 706 | | | 707 | 349 | 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 | 318 | } else if (c0_string && c1_const) { | 712 | 262 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 262 | *c1_const_chars, c1_const_size, vec_res); | 714 | 262 | } 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 | 349 | block.replace_by_position(result, std::move(c_res)); | 723 | 349 | return Status::OK(); | 724 | 349 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 501 | const IColumn* c1) const { | 661 | 501 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 501 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 501 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 501 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 501 | 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 | 501 | DCHECK(!(c0_const && c1_const)); | 670 | 501 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 501 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 501 | ColumnString::Offset c0_const_size = 0; | 673 | 501 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 501 | 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 | 501 | 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 | 501 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 501 | auto c_res = ColumnUInt8::create(); | 704 | 501 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 501 | vec_res.resize(c0->size()); | 706 | | | 707 | 501 | if (c0_string && c1_string) { | 708 | 387 | StringImpl::string_vector_string_vector( | 709 | 387 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 387 | c1_string->get_offsets(), vec_res); | 711 | 387 | } 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 | 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 | 501 | block.replace_by_position(result, std::move(c_res)); | 723 | 501 | return Status::OK(); | 724 | 501 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 299 | const IColumn* c1) const { | 661 | 299 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 299 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 299 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 299 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 299 | 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 | 299 | DCHECK(!(c0_const && c1_const)); | 670 | 299 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 299 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 299 | ColumnString::Offset c0_const_size = 0; | 673 | 299 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 299 | 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 | 299 | if (c1_const) { | 689 | 299 | const ColumnString* c1_const_string = | 690 | 299 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 299 | if (c1_const_string) { | 693 | 299 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 299 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 299 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 299 | } | 700 | | | 701 | 299 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 299 | auto c_res = ColumnUInt8::create(); | 704 | 299 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 299 | vec_res.resize(c0->size()); | 706 | | | 707 | 299 | 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 | 299 | } else if (c0_string && c1_const) { | 712 | 299 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 299 | *c1_const_chars, c1_const_size, vec_res); | 714 | 299 | } 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 | 299 | block.replace_by_position(result, std::move(c_res)); | 723 | 299 | return Status::OK(); | 724 | 299 | } |
|
725 | | |
726 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
727 | 198 | const IColumn* c1) const { |
728 | 198 | bool c0_const = is_column_const(*c0); |
729 | 198 | bool c1_const = is_column_const(*c1); |
730 | | |
731 | 198 | DCHECK(!(c0_const && c1_const)); |
732 | | |
733 | 198 | auto c_res = ColumnUInt8::create(); |
734 | 198 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
735 | 198 | vec_res.resize(c0->size()); |
736 | | |
737 | 198 | if (c0_const) { |
738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
739 | 197 | } else if (c1_const) { |
740 | 175 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
741 | 175 | } else { |
742 | 22 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
743 | 22 | } |
744 | | |
745 | 198 | block.replace_by_position(result, std::move(c_res)); |
746 | 198 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 33 | const IColumn* c1) const { | 728 | 33 | bool c0_const = is_column_const(*c0); | 729 | 33 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 33 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 33 | auto c_res = ColumnUInt8::create(); | 734 | 33 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 33 | vec_res.resize(c0->size()); | 736 | | | 737 | 33 | if (c0_const) { | 738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 32 | } else if (c1_const) { | 740 | 18 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 18 | } else { | 742 | 14 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 14 | } | 744 | | | 745 | 33 | block.replace_by_position(result, std::move(c_res)); | 746 | 33 | } |
_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 | 69 | const IColumn* c1) const { | 728 | 69 | bool c0_const = is_column_const(*c0); | 729 | 69 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 69 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 69 | auto c_res = ColumnUInt8::create(); | 734 | 69 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 69 | vec_res.resize(c0->size()); | 736 | | | 737 | 69 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 69 | } else if (c1_const) { | 740 | 68 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 68 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 69 | block.replace_by_position(result, std::move(c_res)); | 746 | 69 | } |
_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 | 65 | const IColumn* c1) const { | 728 | 65 | bool c0_const = is_column_const(*c0); | 729 | 65 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 65 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 65 | auto c_res = ColumnUInt8::create(); | 734 | 65 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 65 | vec_res.resize(c0->size()); | 736 | | | 737 | 65 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 65 | } else if (c1_const) { | 740 | 65 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 65 | } else { | 742 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 0 | } | 744 | | | 745 | 65 | block.replace_by_position(result, std::move(c_res)); | 746 | 65 | } |
|
747 | | |
748 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
749 | 198 | const ColumnWithTypeAndName& c1) const { |
750 | 198 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
751 | 198 | return Status::OK(); |
752 | 198 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 33 | const ColumnWithTypeAndName& c1) const { | 750 | 33 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 33 | return Status::OK(); | 752 | 33 | } |
_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 | 69 | const ColumnWithTypeAndName& c1) const { | 750 | 69 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 69 | return Status::OK(); | 752 | 69 | } |
_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 | 65 | const ColumnWithTypeAndName& c1) const { | 750 | 65 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 65 | return Status::OK(); | 752 | 65 | } |
|
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 | 304k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 272k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 1.26k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 757 | 7.22k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 8.65k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 757 | 4.04k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 10.8k | size_t get_number_of_arguments() const override { return 2; } |
|
758 | | |
759 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
760 | 4.48k | const VExprSPtrs& arguments) const override { |
761 | 4.48k | auto op = comparison_zonemap_detail::op_from_name(name); |
762 | 4.48k | DORIS_CHECK(op.has_value()); |
763 | 4.48k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
764 | 4.48k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 2.20k | const VExprSPtrs& arguments) const override { | 761 | 2.20k | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 2.20k | DORIS_CHECK(op.has_value()); | 763 | 2.20k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 2.20k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 231 | const VExprSPtrs& arguments) const override { | 761 | 231 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 231 | DORIS_CHECK(op.has_value()); | 763 | 231 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 231 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 556 | const VExprSPtrs& arguments) const override { | 761 | 556 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 556 | DORIS_CHECK(op.has_value()); | 763 | 556 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 556 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 472 | const VExprSPtrs& arguments) const override { | 761 | 472 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 472 | DORIS_CHECK(op.has_value()); | 763 | 472 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 472 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 673 | const VExprSPtrs& arguments) const override { | 761 | 673 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 673 | DORIS_CHECK(op.has_value()); | 763 | 673 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 673 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 348 | const VExprSPtrs& arguments) const override { | 761 | 348 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 348 | DORIS_CHECK(op.has_value()); | 763 | 348 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 348 | } |
|
765 | | |
766 | 35.6k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
767 | 35.6k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { |
768 | 0 | return false; |
769 | 0 | } |
770 | 35.6k | return comparison_zonemap_detail::can_evaluate(arguments) || |
771 | 35.6k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); |
772 | 35.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 16.5k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 16.5k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 16.5k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 16.5k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 16.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.45k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.45k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.45k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.45k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.45k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 6.21k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 6.21k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 6.21k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 6.21k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 6.21k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.74k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.74k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.74k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.74k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.74k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.32k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.32k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.32k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.32k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.32k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 2.31k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 2.31k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 2.31k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 2.31k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 2.31k | } |
|
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 | 836 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
782 | 836 | auto op = comparison_zonemap_detail::op_from_name(name); |
783 | 838 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
784 | 836 | } _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 | 135 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 135 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 137 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 135 | } |
_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 | 304k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
801 | 304k | return std::make_shared<DataTypeUInt8>(); |
802 | 304k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 272k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 272k | return std::make_shared<DataTypeUInt8>(); | 802 | 272k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 1.26k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 1.26k | return std::make_shared<DataTypeUInt8>(); | 802 | 1.26k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 7.21k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 7.21k | return std::make_shared<DataTypeUInt8>(); | 802 | 7.21k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 8.66k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 8.66k | return std::make_shared<DataTypeUInt8>(); | 802 | 8.66k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 4.04k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 4.04k | return std::make_shared<DataTypeUInt8>(); | 802 | 4.04k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 10.8k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 10.8k | return std::make_shared<DataTypeUInt8>(); | 802 | 10.8k | } |
|
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.31k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
810 | 1.31k | DCHECK(arguments.size() == 1); |
811 | 1.31k | DCHECK(data_type_with_names.size() == 1); |
812 | 1.31k | DCHECK(iterators.size() == 1); |
813 | 1.31k | auto* iter = iterators[0]; |
814 | 1.31k | auto data_type_with_name = data_type_with_names[0]; |
815 | 1.31k | if (iter == nullptr) { |
816 | 0 | return Status::OK(); |
817 | 0 | } |
818 | 1.31k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
819 | 305 | return Status::OK(); |
820 | 305 | } |
821 | 1.00k | segment_v2::InvertedIndexQueryType query_type; |
822 | 1.00k | std::string_view name_view(name); |
823 | 1.00k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
824 | 692 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
825 | 692 | } else if (name_view == NameLess::name) { |
826 | 73 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
827 | 241 | } else if (name_view == NameLessOrEquals::name) { |
828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
829 | 160 | } else if (name_view == NameGreater::name) { |
830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
831 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
832 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
833 | 93 | } else { |
834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
835 | 0 | } |
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 | 873 | Field param_value; |
843 | 873 | arguments[0].column->get(0, param_value); |
844 | 873 | if (param_value.is_null()) { |
845 | 2 | return Status::OK(); |
846 | 2 | } |
847 | 871 | segment_v2::InvertedIndexParam param; |
848 | 871 | param.column_name = data_type_with_name.first; |
849 | 871 | param.column_type = data_type_with_name.second; |
850 | 871 | param.query_value = param_value; |
851 | 871 | param.query_type = query_type; |
852 | 871 | param.num_rows = num_rows; |
853 | 871 | param.roaring = std::make_shared<roaring::Roaring>(); |
854 | 871 | param.analyzer_ctx = analyzer_ctx; |
855 | 871 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
856 | 728 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
857 | 728 | if (iter->has_null()) { |
858 | 728 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
859 | 728 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
860 | 728 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
861 | 728 | } |
862 | 728 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
863 | 728 | bitmap_result = result; |
864 | 728 | bitmap_result.mask_out_null(); |
865 | | |
866 | 728 | 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 | 728 | return Status::OK(); |
873 | 728 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 660 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 660 | DCHECK(arguments.size() == 1); | 811 | 660 | DCHECK(data_type_with_names.size() == 1); | 812 | 660 | DCHECK(iterators.size() == 1); | 813 | 660 | auto* iter = iterators[0]; | 814 | 660 | auto data_type_with_name = data_type_with_names[0]; | 815 | 660 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 660 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 33 | return Status::OK(); | 820 | 33 | } | 821 | 627 | segment_v2::InvertedIndexQueryType query_type; | 822 | 627 | std::string_view name_view(name); | 823 | 627 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 627 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 627 | } 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 | 627 | if (segment_v2::is_range_query(query_type) && | 838 | 627 | 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 | 627 | Field param_value; | 843 | 627 | arguments[0].column->get(0, param_value); | 844 | 627 | if (param_value.is_null()) { | 845 | 2 | return Status::OK(); | 846 | 2 | } | 847 | 625 | segment_v2::InvertedIndexParam param; | 848 | 625 | param.column_name = data_type_with_name.first; | 849 | 625 | param.column_type = data_type_with_name.second; | 850 | 625 | param.query_value = param_value; | 851 | 625 | param.query_type = query_type; | 852 | 625 | param.num_rows = num_rows; | 853 | 625 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 625 | param.analyzer_ctx = analyzer_ctx; | 855 | 625 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 589 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 589 | if (iter->has_null()) { | 858 | 589 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 589 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 589 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 589 | } | 862 | 589 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 589 | bitmap_result = result; | 864 | 589 | bitmap_result.mask_out_null(); | 865 | | | 866 | 589 | 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 | 589 | return Status::OK(); | 873 | 589 | } |
_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 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 58 | } | 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 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 179 | DCHECK(arguments.size() == 1); | 811 | 179 | DCHECK(data_type_with_names.size() == 1); | 812 | 179 | DCHECK(iterators.size() == 1); | 813 | 179 | auto* iter = iterators[0]; | 814 | 179 | auto data_type_with_name = data_type_with_names[0]; | 815 | 179 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 86 | return Status::OK(); | 820 | 86 | } | 821 | 93 | segment_v2::InvertedIndexQueryType query_type; | 822 | 93 | std::string_view name_view(name); | 823 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 93 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 93 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 93 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 93 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 93 | if (segment_v2::is_range_query(query_type) && | 838 | 93 | 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 | 46 | Field param_value; | 843 | 46 | arguments[0].column->get(0, param_value); | 844 | 46 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 46 | segment_v2::InvertedIndexParam param; | 848 | 46 | param.column_name = data_type_with_name.first; | 849 | 46 | param.column_type = data_type_with_name.second; | 850 | 46 | param.query_value = param_value; | 851 | 46 | param.query_type = query_type; | 852 | 46 | param.num_rows = num_rows; | 853 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 46 | param.analyzer_ctx = analyzer_ctx; | 855 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 5 | if (iter->has_null()) { | 858 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 5 | } | 862 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 5 | bitmap_result = result; | 864 | 5 | bitmap_result.mask_out_null(); | 865 | | | 866 | 5 | 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 | 5 | return Status::OK(); | 873 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 116 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 116 | DCHECK(arguments.size() == 1); | 811 | 116 | DCHECK(data_type_with_names.size() == 1); | 812 | 116 | DCHECK(iterators.size() == 1); | 813 | 116 | auto* iter = iterators[0]; | 814 | 116 | auto data_type_with_name = data_type_with_names[0]; | 815 | 116 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 116 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 43 | return Status::OK(); | 820 | 43 | } | 821 | 73 | segment_v2::InvertedIndexQueryType query_type; | 822 | 73 | std::string_view name_view(name); | 823 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 73 | } else if (name_view == NameLess::name) { | 826 | 73 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 73 | } 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 | 73 | if (segment_v2::is_range_query(query_type) && | 838 | 73 | 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 | 55 | Field param_value; | 843 | 55 | arguments[0].column->get(0, param_value); | 844 | 55 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 55 | segment_v2::InvertedIndexParam param; | 848 | 55 | param.column_name = data_type_with_name.first; | 849 | 55 | param.column_type = data_type_with_name.second; | 850 | 55 | param.query_value = param_value; | 851 | 55 | param.query_type = query_type; | 852 | 55 | param.num_rows = num_rows; | 853 | 55 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 55 | param.analyzer_ctx = analyzer_ctx; | 855 | 55 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 36 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 36 | if (iter->has_null()) { | 858 | 36 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 36 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 36 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 36 | } | 862 | 36 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 36 | bitmap_result = result; | 864 | 36 | bitmap_result.mask_out_null(); | 865 | | | 866 | 36 | 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 | 36 | return Status::OK(); | 873 | 36 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 175 | DCHECK(arguments.size() == 1); | 811 | 175 | DCHECK(data_type_with_names.size() == 1); | 812 | 175 | DCHECK(iterators.size() == 1); | 813 | 175 | auto* iter = iterators[0]; | 814 | 175 | auto data_type_with_name = data_type_with_names[0]; | 815 | 175 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 94 | return Status::OK(); | 820 | 94 | } | 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 | 153k | uint32_t result, size_t input_rows_count) const override { |
878 | 153k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
879 | 153k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
880 | | |
881 | 153k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
882 | 153k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
883 | 153k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
884 | 153k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
885 | | |
886 | 153k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
887 | 153k | 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 | 153k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
893 | 153k | 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 | 274k | auto can_compare = [](PrimitiveType t) -> bool { |
916 | 274k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
917 | 274k | is_timestamp_ns_type(t) || is_timestamptz_type(t); |
918 | 274k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 65.7k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 65.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 65.7k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 65.7k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 5.16k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 5.16k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 5.16k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 5.16k | }; |
_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 | 8.50k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 8.50k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 8.50k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 8.50k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 20.9k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 20.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 20.9k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 20.9k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 19.7k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 19.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 19.7k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 19.7k | }; |
|
919 | | |
920 | 153k | if (can_compare(left_type->get_primitive_type()) && |
921 | 153k | 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 | 121k | 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 | 121k | } |
929 | | |
930 | 153k | auto compare_type = left_type->get_primitive_type(); |
931 | 153k | switch (compare_type) { |
932 | 244 | case TYPE_BOOLEAN: |
933 | 244 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
934 | 4.91k | case TYPE_DATEV2: |
935 | 4.91k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
936 | 934 | case TYPE_DATETIMEV2: |
937 | 934 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
938 | 949 | case TYPE_TIMESTAMP_NS: |
939 | 949 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
940 | 18 | case TYPE_TIMESTAMPTZ: |
941 | 18 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
942 | 10.1k | case TYPE_TINYINT: |
943 | 10.1k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
944 | 3.26k | case TYPE_SMALLINT: |
945 | 3.26k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
946 | 83.7k | case TYPE_INT: |
947 | 83.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
948 | 12.5k | case TYPE_BIGINT: |
949 | 12.5k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
950 | 728 | case TYPE_LARGEINT: |
951 | 728 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
952 | 44 | case TYPE_IPV4: |
953 | 44 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
954 | 44 | case TYPE_IPV6: |
955 | 44 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
956 | 4.86k | case TYPE_UUID: |
957 | 4.86k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
958 | 744 | case TYPE_FLOAT: |
959 | 744 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
960 | 2.92k | case TYPE_DOUBLE: |
961 | 2.92k | 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 | 324 | case TYPE_DECIMAL32: |
966 | 967 | case TYPE_DECIMAL64: |
967 | 3.27k | case TYPE_DECIMAL128I: |
968 | 3.33k | case TYPE_DECIMAL256: |
969 | 3.33k | return execute_decimal(block, result, col_with_type_and_name_left, |
970 | 3.33k | col_with_type_and_name_right); |
971 | 1.24k | case TYPE_CHAR: |
972 | 8.72k | case TYPE_VARCHAR: |
973 | 23.6k | case TYPE_STRING: |
974 | 23.6k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
975 | 198 | default: |
976 | 198 | return execute_generic(block, result, col_with_type_and_name_left, |
977 | 198 | col_with_type_and_name_right); |
978 | 153k | } |
979 | 0 | return Status::OK(); |
980 | 153k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 46.0k | uint32_t result, size_t input_rows_count) const override { | 878 | 46.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 46.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 46.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 46.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 46.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 46.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 46.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 46.0k | 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 | 46.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 46.0k | 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 | 46.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 46.0k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 46.0k | }; | 919 | | | 920 | 46.0k | if (can_compare(left_type->get_primitive_type()) && | 921 | 46.0k | 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 | 19.7k | 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 | 19.7k | } | 929 | | | 930 | 46.0k | auto compare_type = left_type->get_primitive_type(); | 931 | 46.0k | switch (compare_type) { | 932 | 101 | case TYPE_BOOLEAN: | 933 | 101 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 642 | case TYPE_DATEV2: | 935 | 642 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 442 | case TYPE_DATETIMEV2: | 937 | 442 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 235 | case TYPE_TIMESTAMP_NS: | 939 | 235 | 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.23k | case TYPE_TINYINT: | 943 | 6.23k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 435 | case TYPE_SMALLINT: | 945 | 435 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 3.34k | case TYPE_INT: | 947 | 3.34k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 7.06k | case TYPE_BIGINT: | 949 | 7.06k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 125 | case TYPE_LARGEINT: | 951 | 125 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 22 | case TYPE_IPV4: | 953 | 22 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 27 | case TYPE_IPV6: | 955 | 27 | 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 | 96 | case TYPE_FLOAT: | 959 | 96 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 957 | case TYPE_DOUBLE: | 961 | 957 | 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 | 137 | case TYPE_DECIMAL32: | 966 | 277 | case TYPE_DECIMAL64: | 967 | 1.21k | case TYPE_DECIMAL128I: | 968 | 1.23k | case TYPE_DECIMAL256: | 969 | 1.23k | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 1.23k | col_with_type_and_name_right); | 971 | 977 | case TYPE_CHAR: | 972 | 7.77k | case TYPE_VARCHAR: | 973 | 22.1k | case TYPE_STRING: | 974 | 22.1k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 33 | default: | 976 | 33 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 33 | col_with_type_and_name_right); | 978 | 46.0k | } | 979 | 0 | return Status::OK(); | 980 | 46.0k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 2.71k | uint32_t result, size_t input_rows_count) const override { | 878 | 2.71k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 2.71k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 2.71k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 2.71k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 2.71k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 2.71k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 2.71k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 2.71k | 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 | 2.71k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 2.71k | 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 | 2.71k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 2.71k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 2.71k | }; | 919 | | | 920 | 2.71k | if (can_compare(left_type->get_primitive_type()) && | 921 | 2.71k | 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.44k | 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.44k | } | 929 | | | 930 | 2.70k | auto compare_type = left_type->get_primitive_type(); | 931 | 2.70k | 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 | 1.63k | case TYPE_INT: | 947 | 1.63k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 527 | case TYPE_BIGINT: | 949 | 527 | 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 | 69 | case TYPE_DECIMAL64: | 967 | 97 | case TYPE_DECIMAL128I: | 968 | 127 | case TYPE_DECIMAL256: | 969 | 127 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 127 | col_with_type_and_name_right); | 971 | 1 | case TYPE_CHAR: | 972 | 58 | case TYPE_VARCHAR: | 973 | 133 | case TYPE_STRING: | 974 | 133 | 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 | 2.70k | } | 979 | 0 | return Status::OK(); | 980 | 2.70k | } |
_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.6k | 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.6k | } | 929 | | | 930 | 78.1k | auto compare_type = left_type->get_primitive_type(); | 931 | 78.1k | 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.09k | case TYPE_DATEV2: | 935 | 1.09k | 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 | 71 | case TYPE_TIMESTAMP_NS: | 939 | 71 | 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.33k | case TYPE_TINYINT: | 943 | 1.33k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 2.37k | case TYPE_SMALLINT: | 945 | 2.37k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 67.8k | case TYPE_INT: | 947 | 67.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 2.59k | case TYPE_BIGINT: | 949 | 2.59k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 258 | case TYPE_LARGEINT: | 951 | 258 | 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 | 585 | case TYPE_DOUBLE: | 961 | 585 | 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 | 776 | case TYPE_DECIMAL128I: | 968 | 778 | case TYPE_DECIMAL256: | 969 | 778 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 778 | col_with_type_and_name_right); | 971 | 14 | case TYPE_CHAR: | 972 | 102 | case TYPE_VARCHAR: | 973 | 198 | case TYPE_STRING: | 974 | 198 | 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.1k | } | 979 | 0 | return Status::OK(); | 980 | 78.1k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 4.79k | uint32_t result, size_t input_rows_count) const override { | 878 | 4.79k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 4.79k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 4.79k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 4.79k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 4.79k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 4.79k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 4.79k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 4.79k | 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.79k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 4.79k | 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.79k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 4.79k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 4.79k | }; | 919 | | | 920 | 4.79k | if (can_compare(left_type->get_primitive_type()) && | 921 | 4.79k | 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 | 3.70k | 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 | 3.70k | } | 929 | | | 930 | 4.78k | auto compare_type = left_type->get_primitive_type(); | 931 | 4.78k | switch (compare_type) { | 932 | 20 | case TYPE_BOOLEAN: | 933 | 20 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 484 | case TYPE_DATEV2: | 935 | 484 | 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 | 408 | case TYPE_TIMESTAMP_NS: | 939 | 408 | 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 | 96 | case TYPE_TINYINT: | 943 | 96 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 138 | case TYPE_SMALLINT: | 945 | 138 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 1.35k | case TYPE_INT: | 947 | 1.35k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 801 | case TYPE_BIGINT: | 949 | 801 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 29 | case TYPE_LARGEINT: | 951 | 29 | 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 | 577 | case TYPE_UUID: | 957 | 577 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 29 | case TYPE_FLOAT: | 959 | 29 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 136 | case TYPE_DOUBLE: | 961 | 136 | 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 | 82 | case TYPE_DECIMAL64: | 967 | 155 | case TYPE_DECIMAL128I: | 968 | 166 | case TYPE_DECIMAL256: | 969 | 166 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 166 | col_with_type_and_name_right); | 971 | 36 | case TYPE_CHAR: | 972 | 233 | case TYPE_VARCHAR: | 973 | 349 | case TYPE_STRING: | 974 | 349 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 69 | default: | 976 | 69 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 69 | col_with_type_and_name_right); | 978 | 4.78k | } | 979 | 0 | return Status::OK(); | 980 | 4.78k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 11.3k | uint32_t result, size_t input_rows_count) const override { | 878 | 11.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 11.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 11.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 11.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 11.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 11.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 11.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 11.3k | 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.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 11.3k | 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.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 11.3k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 11.3k | }; | 919 | | | 920 | 11.3k | if (can_compare(left_type->get_primitive_type()) && | 921 | 11.3k | 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.56k | 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.56k | } | 929 | | | 930 | 11.3k | auto compare_type = left_type->get_primitive_type(); | 931 | 11.3k | switch (compare_type) { | 932 | 90 | case TYPE_BOOLEAN: | 933 | 90 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 2.09k | case TYPE_DATEV2: | 935 | 2.09k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 292 | case TYPE_DATETIMEV2: | 937 | 292 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 159 | case TYPE_TIMESTAMP_NS: | 939 | 159 | 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.36k | case TYPE_TINYINT: | 943 | 2.36k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 172 | case TYPE_SMALLINT: | 945 | 172 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 2.04k | case TYPE_INT: | 947 | 2.04k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 840 | case TYPE_BIGINT: | 949 | 840 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 274 | case TYPE_LARGEINT: | 951 | 274 | 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 | 15 | case TYPE_IPV6: | 955 | 15 | 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 | 132 | case TYPE_FLOAT: | 959 | 132 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 1.06k | case TYPE_DOUBLE: | 961 | 1.06k | 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 | 174 | case TYPE_DECIMAL32: | 966 | 366 | case TYPE_DECIMAL64: | 967 | 839 | case TYPE_DECIMAL128I: | 968 | 840 | case TYPE_DECIMAL256: | 969 | 840 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 840 | col_with_type_and_name_right); | 971 | 167 | case TYPE_CHAR: | 972 | 357 | case TYPE_VARCHAR: | 973 | 500 | case TYPE_STRING: | 974 | 500 | 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.3k | } | 979 | 0 | return Status::OK(); | 980 | 11.3k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 10.3k | uint32_t result, size_t input_rows_count) const override { | 878 | 10.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 10.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 10.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 10.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 10.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 10.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 10.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 10.3k | 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 | 10.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 10.3k | 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 | 10.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 10.3k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 10.3k | }; | 919 | | | 920 | 10.3k | if (can_compare(left_type->get_primitive_type()) && | 921 | 10.3k | 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.44k | 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.44k | } | 929 | | | 930 | 10.3k | auto compare_type = left_type->get_primitive_type(); | 931 | 10.3k | switch (compare_type) { | 932 | 33 | case TYPE_BOOLEAN: | 933 | 33 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 531 | case TYPE_DATEV2: | 935 | 531 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 71 | case TYPE_DATETIMEV2: | 937 | 71 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 65 | case TYPE_TIMESTAMP_NS: | 939 | 65 | 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 | 85 | case TYPE_TINYINT: | 943 | 85 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 146 | case TYPE_SMALLINT: | 945 | 146 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 7.54k | case TYPE_INT: | 947 | 7.54k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 696 | case TYPE_BIGINT: | 949 | 696 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 42 | case TYPE_LARGEINT: | 951 | 42 | 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 | 417 | case TYPE_UUID: | 957 | 417 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 19 | case TYPE_FLOAT: | 959 | 19 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 124 | case TYPE_DOUBLE: | 961 | 124 | 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 | 4 | case TYPE_DECIMAL32: | 966 | 98 | case TYPE_DECIMAL64: | 967 | 187 | case TYPE_DECIMAL128I: | 968 | 194 | case TYPE_DECIMAL256: | 969 | 194 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 194 | col_with_type_and_name_right); | 971 | 51 | case TYPE_CHAR: | 972 | 193 | case TYPE_VARCHAR: | 973 | 299 | case TYPE_STRING: | 974 | 299 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 65 | default: | 976 | 65 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 65 | col_with_type_and_name_right); | 978 | 10.3k | } | 979 | 0 | return Status::OK(); | 980 | 10.3k | } |
|
981 | | }; |
982 | | |
983 | | } // namespace doris |