be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 11.4k | PaddedPODArray<UInt8>& c) { |
72 | 11.4k | size_t size = a.size(); |
73 | 11.4k | const A* __restrict a_pos = a.data(); |
74 | 11.4k | const B* __restrict b_pos = b.data(); |
75 | 11.4k | UInt8* __restrict c_pos = c.data(); |
76 | 11.4k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 6.56M | while (a_pos < a_end) { |
79 | 6.55M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 6.55M | ++a_pos; |
81 | 6.55M | ++b_pos; |
82 | 6.55M | ++c_pos; |
83 | 6.55M | } |
84 | 11.4k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 73 | PaddedPODArray<UInt8>& c) { | 72 | 73 | size_t size = a.size(); | 73 | 73 | const A* __restrict a_pos = a.data(); | 74 | 73 | const B* __restrict b_pos = b.data(); | 75 | 73 | UInt8* __restrict c_pos = c.data(); | 76 | 73 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 146 | while (a_pos < a_end) { | 79 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 73 | ++a_pos; | 81 | 73 | ++b_pos; | 82 | 73 | ++c_pos; | 83 | 73 | } | 84 | 73 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 578 | PaddedPODArray<UInt8>& c) { | 72 | 578 | size_t size = a.size(); | 73 | 578 | const A* __restrict a_pos = a.data(); | 74 | 578 | const B* __restrict b_pos = b.data(); | 75 | 578 | UInt8* __restrict c_pos = c.data(); | 76 | 578 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.16k | while (a_pos < a_end) { | 79 | 584 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 584 | ++a_pos; | 81 | 584 | ++b_pos; | 82 | 584 | ++c_pos; | 83 | 584 | } | 84 | 578 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 354 | PaddedPODArray<UInt8>& c) { | 72 | 354 | size_t size = a.size(); | 73 | 354 | const A* __restrict a_pos = a.data(); | 74 | 354 | const B* __restrict b_pos = b.data(); | 75 | 354 | UInt8* __restrict c_pos = c.data(); | 76 | 354 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 726 | while (a_pos < a_end) { | 79 | 372 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 372 | ++a_pos; | 81 | 372 | ++b_pos; | 82 | 372 | ++c_pos; | 83 | 372 | } | 84 | 354 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 14 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 4 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 148 | PaddedPODArray<UInt8>& c) { | 72 | 148 | size_t size = a.size(); | 73 | 148 | const A* __restrict a_pos = a.data(); | 74 | 148 | const B* __restrict b_pos = b.data(); | 75 | 148 | UInt8* __restrict c_pos = c.data(); | 76 | 148 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 437 | while (a_pos < a_end) { | 79 | 289 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 289 | ++a_pos; | 81 | 289 | ++b_pos; | 82 | 289 | ++c_pos; | 83 | 289 | } | 84 | 148 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 69 | PaddedPODArray<UInt8>& c) { | 72 | 69 | size_t size = a.size(); | 73 | 69 | const A* __restrict a_pos = a.data(); | 74 | 69 | const B* __restrict b_pos = b.data(); | 75 | 69 | UInt8* __restrict c_pos = c.data(); | 76 | 69 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 138 | while (a_pos < a_end) { | 79 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 69 | ++a_pos; | 81 | 69 | ++b_pos; | 82 | 69 | ++c_pos; | 83 | 69 | } | 84 | 69 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 963 | PaddedPODArray<UInt8>& c) { | 72 | 963 | size_t size = a.size(); | 73 | 963 | const A* __restrict a_pos = a.data(); | 74 | 963 | const B* __restrict b_pos = b.data(); | 75 | 963 | UInt8* __restrict c_pos = c.data(); | 76 | 963 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.10k | while (a_pos < a_end) { | 79 | 2.14k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.14k | ++a_pos; | 81 | 2.14k | ++b_pos; | 82 | 2.14k | ++c_pos; | 83 | 2.14k | } | 84 | 963 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 255 | PaddedPODArray<UInt8>& c) { | 72 | 255 | size_t size = a.size(); | 73 | 255 | const A* __restrict a_pos = a.data(); | 74 | 255 | const B* __restrict b_pos = b.data(); | 75 | 255 | UInt8* __restrict c_pos = c.data(); | 76 | 255 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.79k | while (a_pos < a_end) { | 79 | 1.54k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.54k | ++a_pos; | 81 | 1.54k | ++b_pos; | 82 | 1.54k | ++c_pos; | 83 | 1.54k | } | 84 | 255 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 65 | PaddedPODArray<UInt8>& c) { | 72 | 65 | size_t size = a.size(); | 73 | 65 | const A* __restrict a_pos = a.data(); | 74 | 65 | const B* __restrict b_pos = b.data(); | 75 | 65 | UInt8* __restrict c_pos = c.data(); | 76 | 65 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 130 | while (a_pos < a_end) { | 79 | 65 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 65 | ++a_pos; | 81 | 65 | ++b_pos; | 82 | 65 | ++c_pos; | 83 | 65 | } | 84 | 65 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 13 | PaddedPODArray<UInt8>& c) { | 72 | 13 | size_t size = a.size(); | 73 | 13 | const A* __restrict a_pos = a.data(); | 74 | 13 | const B* __restrict b_pos = b.data(); | 75 | 13 | UInt8* __restrict c_pos = c.data(); | 76 | 13 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 26 | while (a_pos < a_end) { | 79 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 13 | ++a_pos; | 81 | 13 | ++b_pos; | 82 | 13 | ++c_pos; | 83 | 13 | } | 84 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 96 | PaddedPODArray<UInt8>& c) { | 72 | 96 | size_t size = a.size(); | 73 | 96 | const A* __restrict a_pos = a.data(); | 74 | 96 | const B* __restrict b_pos = b.data(); | 75 | 96 | UInt8* __restrict c_pos = c.data(); | 76 | 96 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 211 | while (a_pos < a_end) { | 79 | 115 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 115 | ++a_pos; | 81 | 115 | ++b_pos; | 82 | 115 | ++c_pos; | 83 | 115 | } | 84 | 96 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 91 | PaddedPODArray<UInt8>& c) { | 72 | 91 | size_t size = a.size(); | 73 | 91 | const A* __restrict a_pos = a.data(); | 74 | 91 | const B* __restrict b_pos = b.data(); | 75 | 91 | UInt8* __restrict c_pos = c.data(); | 76 | 91 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 203 | while (a_pos < a_end) { | 79 | 112 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 112 | ++a_pos; | 81 | 112 | ++b_pos; | 82 | 112 | ++c_pos; | 83 | 112 | } | 84 | 91 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 47 | PaddedPODArray<UInt8>& c) { | 72 | 47 | size_t size = a.size(); | 73 | 47 | const A* __restrict a_pos = a.data(); | 74 | 47 | const B* __restrict b_pos = b.data(); | 75 | 47 | UInt8* __restrict c_pos = c.data(); | 76 | 47 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 77 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 77 | ++a_pos; | 81 | 77 | ++b_pos; | 82 | 77 | ++c_pos; | 83 | 77 | } | 84 | 47 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 2.11k | PaddedPODArray<UInt8>& c) { | 72 | 2.11k | size_t size = a.size(); | 73 | 2.11k | const A* __restrict a_pos = a.data(); | 74 | 2.11k | const B* __restrict b_pos = b.data(); | 75 | 2.11k | UInt8* __restrict c_pos = c.data(); | 76 | 2.11k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 946k | while (a_pos < a_end) { | 79 | 943k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 943k | ++a_pos; | 81 | 943k | ++b_pos; | 82 | 943k | ++c_pos; | 83 | 943k | } | 84 | 2.11k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 349 | PaddedPODArray<UInt8>& c) { | 72 | 349 | size_t size = a.size(); | 73 | 349 | const A* __restrict a_pos = a.data(); | 74 | 349 | const B* __restrict b_pos = b.data(); | 75 | 349 | UInt8* __restrict c_pos = c.data(); | 76 | 349 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.28k | while (a_pos < a_end) { | 79 | 5.93k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.93k | ++a_pos; | 81 | 5.93k | ++b_pos; | 82 | 5.93k | ++c_pos; | 83 | 5.93k | } | 84 | 349 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.33k | PaddedPODArray<UInt8>& c) { | 72 | 1.33k | size_t size = a.size(); | 73 | 1.33k | const A* __restrict a_pos = a.data(); | 74 | 1.33k | const B* __restrict b_pos = b.data(); | 75 | 1.33k | UInt8* __restrict c_pos = c.data(); | 76 | 1.33k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.19M | while (a_pos < a_end) { | 79 | 3.19M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 3.19M | ++a_pos; | 81 | 3.19M | ++b_pos; | 82 | 3.19M | ++c_pos; | 83 | 3.19M | } | 84 | 1.33k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 42 | PaddedPODArray<UInt8>& c) { | 72 | 42 | size_t size = a.size(); | 73 | 42 | const A* __restrict a_pos = a.data(); | 74 | 42 | const B* __restrict b_pos = b.data(); | 75 | 42 | UInt8* __restrict c_pos = c.data(); | 76 | 42 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 326 | while (a_pos < a_end) { | 79 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 284 | ++a_pos; | 81 | 284 | ++b_pos; | 82 | 284 | ++c_pos; | 83 | 284 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 129 | PaddedPODArray<UInt8>& c) { | 72 | 129 | size_t size = a.size(); | 73 | 129 | const A* __restrict a_pos = a.data(); | 74 | 129 | const B* __restrict b_pos = b.data(); | 75 | 129 | UInt8* __restrict c_pos = c.data(); | 76 | 129 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 384 | while (a_pos < a_end) { | 79 | 255 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 255 | ++a_pos; | 81 | 255 | ++b_pos; | 82 | 255 | ++c_pos; | 83 | 255 | } | 84 | 129 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 79 | PaddedPODArray<UInt8>& c) { | 72 | 79 | size_t size = a.size(); | 73 | 79 | const A* __restrict a_pos = a.data(); | 74 | 79 | const B* __restrict b_pos = b.data(); | 75 | 79 | UInt8* __restrict c_pos = c.data(); | 76 | 79 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 331 | while (a_pos < a_end) { | 79 | 252 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 252 | ++a_pos; | 81 | 252 | ++b_pos; | 82 | 252 | ++c_pos; | 83 | 252 | } | 84 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 63 | PaddedPODArray<UInt8>& c) { | 72 | 63 | size_t size = a.size(); | 73 | 63 | const A* __restrict a_pos = a.data(); | 74 | 63 | const B* __restrict b_pos = b.data(); | 75 | 63 | UInt8* __restrict c_pos = c.data(); | 76 | 63 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 563 | while (a_pos < a_end) { | 79 | 500 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 500 | ++a_pos; | 81 | 500 | ++b_pos; | 82 | 500 | ++c_pos; | 83 | 500 | } | 84 | 63 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 9 | while (a_pos < a_end) { | 79 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6 | ++a_pos; | 81 | 6 | ++b_pos; | 82 | 6 | ++c_pos; | 83 | 6 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 31 | PaddedPODArray<UInt8>& c) { | 72 | 31 | size_t size = a.size(); | 73 | 31 | const A* __restrict a_pos = a.data(); | 74 | 31 | const B* __restrict b_pos = b.data(); | 75 | 31 | UInt8* __restrict c_pos = c.data(); | 76 | 31 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 101 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | while (a_pos < a_end) { | 79 | 12 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 12 | ++a_pos; | 81 | 12 | ++b_pos; | 82 | 12 | ++c_pos; | 83 | 12 | } | 84 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 31 | PaddedPODArray<UInt8>& c) { | 72 | 31 | size_t size = a.size(); | 73 | 31 | const A* __restrict a_pos = a.data(); | 74 | 31 | const B* __restrict b_pos = b.data(); | 75 | 31 | UInt8* __restrict c_pos = c.data(); | 76 | 31 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 62 | while (a_pos < a_end) { | 79 | 31 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 31 | ++a_pos; | 81 | 31 | ++b_pos; | 82 | 31 | ++c_pos; | 83 | 31 | } | 84 | 31 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 66 | PaddedPODArray<UInt8>& c) { | 72 | 66 | size_t size = a.size(); | 73 | 66 | const A* __restrict a_pos = a.data(); | 74 | 66 | const B* __restrict b_pos = b.data(); | 75 | 66 | UInt8* __restrict c_pos = c.data(); | 76 | 66 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 190 | while (a_pos < a_end) { | 79 | 124 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 124 | ++a_pos; | 81 | 124 | ++b_pos; | 82 | 124 | ++c_pos; | 83 | 124 | } | 84 | 66 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 49 | PaddedPODArray<UInt8>& c) { | 72 | 49 | size_t size = a.size(); | 73 | 49 | const A* __restrict a_pos = a.data(); | 74 | 49 | const B* __restrict b_pos = b.data(); | 75 | 49 | UInt8* __restrict c_pos = c.data(); | 76 | 49 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 99 | while (a_pos < a_end) { | 79 | 50 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 50 | ++a_pos; | 81 | 50 | ++b_pos; | 82 | 50 | ++c_pos; | 83 | 50 | } | 84 | 49 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 8 | PaddedPODArray<UInt8>& c) { | 72 | 8 | size_t size = a.size(); | 73 | 8 | const A* __restrict a_pos = a.data(); | 74 | 8 | const B* __restrict b_pos = b.data(); | 75 | 8 | UInt8* __restrict c_pos = c.data(); | 76 | 8 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 62 | while (a_pos < a_end) { | 79 | 54 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 54 | ++a_pos; | 81 | 54 | ++b_pos; | 82 | 54 | ++c_pos; | 83 | 54 | } | 84 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 50 | PaddedPODArray<UInt8>& c) { | 72 | 50 | size_t size = a.size(); | 73 | 50 | const A* __restrict a_pos = a.data(); | 74 | 50 | const B* __restrict b_pos = b.data(); | 75 | 50 | UInt8* __restrict c_pos = c.data(); | 76 | 50 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 119 | while (a_pos < a_end) { | 79 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 69 | ++a_pos; | 81 | 69 | ++b_pos; | 82 | 69 | ++c_pos; | 83 | 69 | } | 84 | 50 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 21 | PaddedPODArray<UInt8>& c) { | 72 | 21 | size_t size = a.size(); | 73 | 21 | const A* __restrict a_pos = a.data(); | 74 | 21 | const B* __restrict b_pos = b.data(); | 75 | 21 | UInt8* __restrict c_pos = c.data(); | 76 | 21 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 64 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 21 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 101 | PaddedPODArray<UInt8>& c) { | 72 | 101 | size_t size = a.size(); | 73 | 101 | const A* __restrict a_pos = a.data(); | 74 | 101 | const B* __restrict b_pos = b.data(); | 75 | 101 | UInt8* __restrict c_pos = c.data(); | 76 | 101 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 101 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.93k | PaddedPODArray<UInt8>& c) { | 72 | 1.93k | size_t size = a.size(); | 73 | 1.93k | const A* __restrict a_pos = a.data(); | 74 | 1.93k | const B* __restrict b_pos = b.data(); | 75 | 1.93k | UInt8* __restrict c_pos = c.data(); | 76 | 1.93k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.38M | while (a_pos < a_end) { | 79 | 2.38M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.38M | ++a_pos; | 81 | 2.38M | ++b_pos; | 82 | 2.38M | ++c_pos; | 83 | 2.38M | } | 84 | 1.93k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 263 | PaddedPODArray<UInt8>& c) { | 72 | 263 | size_t size = a.size(); | 73 | 263 | const A* __restrict a_pos = a.data(); | 74 | 263 | const B* __restrict b_pos = b.data(); | 75 | 263 | UInt8* __restrict c_pos = c.data(); | 76 | 263 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 874 | while (a_pos < a_end) { | 79 | 611 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 611 | ++a_pos; | 81 | 611 | ++b_pos; | 82 | 611 | ++c_pos; | 83 | 611 | } | 84 | 263 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 161 | PaddedPODArray<UInt8>& c) { | 72 | 161 | size_t size = a.size(); | 73 | 161 | const A* __restrict a_pos = a.data(); | 74 | 161 | const B* __restrict b_pos = b.data(); | 75 | 161 | UInt8* __restrict c_pos = c.data(); | 76 | 161 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 496 | while (a_pos < a_end) { | 79 | 335 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 335 | ++a_pos; | 81 | 335 | ++b_pos; | 82 | 335 | ++c_pos; | 83 | 335 | } | 84 | 161 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 134 | PaddedPODArray<UInt8>& c) { | 72 | 134 | size_t size = a.size(); | 73 | 134 | const A* __restrict a_pos = a.data(); | 74 | 134 | const B* __restrict b_pos = b.data(); | 75 | 134 | UInt8* __restrict c_pos = c.data(); | 76 | 134 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 443 | while (a_pos < a_end) { | 79 | 309 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 309 | ++a_pos; | 81 | 309 | ++b_pos; | 82 | 309 | ++c_pos; | 83 | 309 | } | 84 | 134 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 176 | PaddedPODArray<UInt8>& c) { | 72 | 176 | size_t size = a.size(); | 73 | 176 | const A* __restrict a_pos = a.data(); | 74 | 176 | const B* __restrict b_pos = b.data(); | 75 | 176 | UInt8* __restrict c_pos = c.data(); | 76 | 176 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.03k | while (a_pos < a_end) { | 79 | 862 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 862 | ++a_pos; | 81 | 862 | ++b_pos; | 82 | 862 | ++c_pos; | 83 | 862 | } | 84 | 176 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 224 | PaddedPODArray<UInt8>& c) { | 72 | 224 | size_t size = a.size(); | 73 | 224 | const A* __restrict a_pos = a.data(); | 74 | 224 | const B* __restrict b_pos = b.data(); | 75 | 224 | UInt8* __restrict c_pos = c.data(); | 76 | 224 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.38k | while (a_pos < a_end) { | 79 | 5.16k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.16k | ++a_pos; | 81 | 5.16k | ++b_pos; | 82 | 5.16k | ++c_pos; | 83 | 5.16k | } | 84 | 224 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 149 | PaddedPODArray<UInt8>& c) { | 72 | 149 | size_t size = a.size(); | 73 | 149 | const A* __restrict a_pos = a.data(); | 74 | 149 | const B* __restrict b_pos = b.data(); | 75 | 149 | UInt8* __restrict c_pos = c.data(); | 76 | 149 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 472 | while (a_pos < a_end) { | 79 | 323 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 323 | ++a_pos; | 81 | 323 | ++b_pos; | 82 | 323 | ++c_pos; | 83 | 323 | } | 84 | 149 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 155 | PaddedPODArray<UInt8>& c) { | 72 | 155 | size_t size = a.size(); | 73 | 155 | const A* __restrict a_pos = a.data(); | 74 | 155 | const B* __restrict b_pos = b.data(); | 75 | 155 | UInt8* __restrict c_pos = c.data(); | 76 | 155 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 503 | while (a_pos < a_end) { | 79 | 348 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 348 | ++a_pos; | 81 | 348 | ++b_pos; | 82 | 348 | ++c_pos; | 83 | 348 | } | 84 | 155 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 147 | PaddedPODArray<UInt8>& c) { | 72 | 147 | size_t size = a.size(); | 73 | 147 | const A* __restrict a_pos = a.data(); | 74 | 147 | const B* __restrict b_pos = b.data(); | 75 | 147 | UInt8* __restrict c_pos = c.data(); | 76 | 147 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 497 | while (a_pos < a_end) { | 79 | 350 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 350 | ++a_pos; | 81 | 350 | ++b_pos; | 82 | 350 | ++c_pos; | 83 | 350 | } | 84 | 147 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | while (a_pos < a_end) { | 79 | 12 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 12 | ++a_pos; | 81 | 12 | ++b_pos; | 82 | 12 | ++c_pos; | 83 | 12 | } | 84 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 434 | PaddedPODArray<UInt8>& c) { | 72 | 434 | size_t size = a.size(); | 73 | 434 | const A* __restrict a_pos = a.data(); | 74 | 434 | const B* __restrict b_pos = b.data(); | 75 | 434 | UInt8* __restrict c_pos = c.data(); | 76 | 434 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.59k | while (a_pos < a_end) { | 79 | 6.15k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.15k | ++a_pos; | 81 | 6.15k | ++b_pos; | 82 | 6.15k | ++c_pos; | 83 | 6.15k | } | 84 | 434 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 120 | while (a_pos < a_end) { | 79 | 60 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 60 | ++a_pos; | 81 | 60 | ++b_pos; | 82 | 60 | ++c_pos; | 83 | 60 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 53 | PaddedPODArray<UInt8>& c) { | 72 | 53 | size_t size = a.size(); | 73 | 53 | const A* __restrict a_pos = a.data(); | 74 | 53 | const B* __restrict b_pos = b.data(); | 75 | 53 | UInt8* __restrict c_pos = c.data(); | 76 | 53 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 165 | while (a_pos < a_end) { | 79 | 112 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 112 | ++a_pos; | 81 | 112 | ++b_pos; | 82 | 112 | ++c_pos; | 83 | 112 | } | 84 | 53 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 69 | PaddedPODArray<UInt8>& c) { | 72 | 69 | size_t size = a.size(); | 73 | 69 | const A* __restrict a_pos = a.data(); | 74 | 69 | const B* __restrict b_pos = b.data(); | 75 | 69 | UInt8* __restrict c_pos = c.data(); | 76 | 69 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 189 | while (a_pos < a_end) { | 79 | 120 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 120 | ++a_pos; | 81 | 120 | ++b_pos; | 82 | 120 | ++c_pos; | 83 | 120 | } | 84 | 69 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 50 | PaddedPODArray<UInt8>& c) { | 72 | 50 | size_t size = a.size(); | 73 | 50 | const A* __restrict a_pos = a.data(); | 74 | 50 | const B* __restrict b_pos = b.data(); | 75 | 50 | UInt8* __restrict c_pos = c.data(); | 76 | 50 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 119 | while (a_pos < a_end) { | 79 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 69 | ++a_pos; | 81 | 69 | ++b_pos; | 82 | 69 | ++c_pos; | 83 | 69 | } | 84 | 50 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
85 | | |
86 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
87 | 252k | PaddedPODArray<UInt8>& c) { |
88 | 252k | size_t size = a.size(); |
89 | 252k | const A* __restrict a_pos = a.data(); |
90 | 252k | UInt8* __restrict c_pos = c.data(); |
91 | 252k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 139M | while (a_pos < a_end) { |
94 | 138M | *c_pos = Op::apply(*a_pos, b); |
95 | 138M | ++a_pos; |
96 | 138M | ++c_pos; |
97 | 138M | } |
98 | 252k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 802 | PaddedPODArray<UInt8>& c) { | 88 | 802 | size_t size = a.size(); | 89 | 802 | const A* __restrict a_pos = a.data(); | 90 | 802 | UInt8* __restrict c_pos = c.data(); | 91 | 802 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.23k | while (a_pos < a_end) { | 94 | 2.43k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.43k | ++a_pos; | 96 | 2.43k | ++c_pos; | 97 | 2.43k | } | 98 | 802 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 622 | PaddedPODArray<UInt8>& c) { | 88 | 622 | size_t size = a.size(); | 89 | 622 | const A* __restrict a_pos = a.data(); | 90 | 622 | UInt8* __restrict c_pos = c.data(); | 91 | 622 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 203k | while (a_pos < a_end) { | 94 | 203k | *c_pos = Op::apply(*a_pos, b); | 95 | 203k | ++a_pos; | 96 | 203k | ++c_pos; | 97 | 203k | } | 98 | 622 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 283 | PaddedPODArray<UInt8>& c) { | 88 | 283 | size_t size = a.size(); | 89 | 283 | const A* __restrict a_pos = a.data(); | 90 | 283 | UInt8* __restrict c_pos = c.data(); | 91 | 283 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 283 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 5.44k | PaddedPODArray<UInt8>& c) { | 88 | 5.44k | size_t size = a.size(); | 89 | 5.44k | const A* __restrict a_pos = a.data(); | 90 | 5.44k | UInt8* __restrict c_pos = c.data(); | 91 | 5.44k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.25M | while (a_pos < a_end) { | 94 | 9.24M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.24M | ++a_pos; | 96 | 9.24M | ++c_pos; | 97 | 9.24M | } | 98 | 5.44k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 623 | PaddedPODArray<UInt8>& c) { | 88 | 623 | size_t size = a.size(); | 89 | 623 | const A* __restrict a_pos = a.data(); | 90 | 623 | UInt8* __restrict c_pos = c.data(); | 91 | 623 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 155k | while (a_pos < a_end) { | 94 | 154k | *c_pos = Op::apply(*a_pos, b); | 95 | 154k | ++a_pos; | 96 | 154k | ++c_pos; | 97 | 154k | } | 98 | 623 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 59.8k | PaddedPODArray<UInt8>& c) { | 88 | 59.8k | size_t size = a.size(); | 89 | 59.8k | const A* __restrict a_pos = a.data(); | 90 | 59.8k | UInt8* __restrict c_pos = c.data(); | 91 | 59.8k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.08M | while (a_pos < a_end) { | 94 | 1.02M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.02M | ++a_pos; | 96 | 1.02M | ++c_pos; | 97 | 1.02M | } | 98 | 59.8k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.5k | PaddedPODArray<UInt8>& c) { | 88 | 13.5k | size_t size = a.size(); | 89 | 13.5k | const A* __restrict a_pos = a.data(); | 90 | 13.5k | UInt8* __restrict c_pos = c.data(); | 91 | 13.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.92M | while (a_pos < a_end) { | 94 | 1.91M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.91M | ++a_pos; | 96 | 1.91M | ++c_pos; | 97 | 1.91M | } | 98 | 13.5k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 53 | PaddedPODArray<UInt8>& c) { | 88 | 53 | size_t size = a.size(); | 89 | 53 | const A* __restrict a_pos = a.data(); | 90 | 53 | UInt8* __restrict c_pos = c.data(); | 91 | 53 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 53 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13 | PaddedPODArray<UInt8>& c) { | 88 | 13 | size_t size = a.size(); | 89 | 13 | const A* __restrict a_pos = a.data(); | 90 | 13 | UInt8* __restrict c_pos = c.data(); | 91 | 13 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 127 | while (a_pos < a_end) { | 94 | 114 | *c_pos = Op::apply(*a_pos, b); | 95 | 114 | ++a_pos; | 96 | 114 | ++c_pos; | 97 | 114 | } | 98 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 821 | PaddedPODArray<UInt8>& c) { | 88 | 821 | size_t size = a.size(); | 89 | 821 | const A* __restrict a_pos = a.data(); | 90 | 821 | UInt8* __restrict c_pos = c.data(); | 91 | 821 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 719k | while (a_pos < a_end) { | 94 | 719k | *c_pos = Op::apply(*a_pos, b); | 95 | 719k | ++a_pos; | 96 | 719k | ++c_pos; | 97 | 719k | } | 98 | 821 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 35 | PaddedPODArray<UInt8>& c) { | 88 | 35 | size_t size = a.size(); | 89 | 35 | const A* __restrict a_pos = a.data(); | 90 | 35 | UInt8* __restrict c_pos = c.data(); | 91 | 35 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90 | while (a_pos < a_end) { | 94 | 55 | *c_pos = Op::apply(*a_pos, b); | 95 | 55 | ++a_pos; | 96 | 55 | ++c_pos; | 97 | 55 | } | 98 | 35 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4 | while (a_pos < a_end) { | 94 | 2 | *c_pos = Op::apply(*a_pos, b); | 95 | 2 | ++a_pos; | 96 | 2 | ++c_pos; | 97 | 2 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 44 | PaddedPODArray<UInt8>& c) { | 88 | 44 | size_t size = a.size(); | 89 | 44 | const A* __restrict a_pos = a.data(); | 90 | 44 | UInt8* __restrict c_pos = c.data(); | 91 | 44 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.24k | while (a_pos < a_end) { | 94 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.19k | ++a_pos; | 96 | 1.19k | ++c_pos; | 97 | 1.19k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 8 | PaddedPODArray<UInt8>& c) { | 88 | 8 | size_t size = a.size(); | 89 | 8 | const A* __restrict a_pos = a.data(); | 90 | 8 | UInt8* __restrict c_pos = c.data(); | 91 | 8 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 784 | while (a_pos < a_end) { | 94 | 776 | *c_pos = Op::apply(*a_pos, b); | 95 | 776 | ++a_pos; | 96 | 776 | ++c_pos; | 97 | 776 | } | 98 | 8 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 784 | PaddedPODArray<UInt8>& c) { | 88 | 784 | size_t size = a.size(); | 89 | 784 | const A* __restrict a_pos = a.data(); | 90 | 784 | UInt8* __restrict c_pos = c.data(); | 91 | 784 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 371k | while (a_pos < a_end) { | 94 | 370k | *c_pos = Op::apply(*a_pos, b); | 95 | 370k | ++a_pos; | 96 | 370k | ++c_pos; | 97 | 370k | } | 98 | 784 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.13k | PaddedPODArray<UInt8>& c) { | 88 | 1.13k | size_t size = a.size(); | 89 | 1.13k | const A* __restrict a_pos = a.data(); | 90 | 1.13k | UInt8* __restrict c_pos = c.data(); | 91 | 1.13k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 71.2k | while (a_pos < a_end) { | 94 | 70.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 70.1k | ++a_pos; | 96 | 70.1k | ++c_pos; | 97 | 70.1k | } | 98 | 1.13k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28 | PaddedPODArray<UInt8>& c) { | 88 | 28 | size_t size = a.size(); | 89 | 28 | const A* __restrict a_pos = a.data(); | 90 | 28 | UInt8* __restrict c_pos = c.data(); | 91 | 28 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 70 | while (a_pos < a_end) { | 94 | 42 | *c_pos = Op::apply(*a_pos, b); | 95 | 42 | ++a_pos; | 96 | 42 | ++c_pos; | 97 | 42 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 40 | PaddedPODArray<UInt8>& c) { | 88 | 40 | size_t size = a.size(); | 89 | 40 | const A* __restrict a_pos = a.data(); | 90 | 40 | UInt8* __restrict c_pos = c.data(); | 91 | 40 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 282 | while (a_pos < a_end) { | 94 | 242 | *c_pos = Op::apply(*a_pos, b); | 95 | 242 | ++a_pos; | 96 | 242 | ++c_pos; | 97 | 242 | } | 98 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 119 | PaddedPODArray<UInt8>& c) { | 88 | 119 | size_t size = a.size(); | 89 | 119 | const A* __restrict a_pos = a.data(); | 90 | 119 | UInt8* __restrict c_pos = c.data(); | 91 | 119 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.60k | while (a_pos < a_end) { | 94 | 4.48k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.48k | ++a_pos; | 96 | 4.48k | ++c_pos; | 97 | 4.48k | } | 98 | 119 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 437 | PaddedPODArray<UInt8>& c) { | 88 | 437 | size_t size = a.size(); | 89 | 437 | const A* __restrict a_pos = a.data(); | 90 | 437 | UInt8* __restrict c_pos = c.data(); | 91 | 437 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.34M | while (a_pos < a_end) { | 94 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.34M | ++a_pos; | 96 | 1.34M | ++c_pos; | 97 | 1.34M | } | 98 | 437 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 66 | PaddedPODArray<UInt8>& c) { | 88 | 66 | size_t size = a.size(); | 89 | 66 | const A* __restrict a_pos = a.data(); | 90 | 66 | UInt8* __restrict c_pos = c.data(); | 91 | 66 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 154 | while (a_pos < a_end) { | 94 | 88 | *c_pos = Op::apply(*a_pos, b); | 95 | 88 | ++a_pos; | 96 | 88 | ++c_pos; | 97 | 88 | } | 98 | 66 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 229 | PaddedPODArray<UInt8>& c) { | 88 | 229 | size_t size = a.size(); | 89 | 229 | const A* __restrict a_pos = a.data(); | 90 | 229 | UInt8* __restrict c_pos = c.data(); | 91 | 229 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 29.9k | while (a_pos < a_end) { | 94 | 29.7k | *c_pos = Op::apply(*a_pos, b); | 95 | 29.7k | ++a_pos; | 96 | 29.7k | ++c_pos; | 97 | 29.7k | } | 98 | 229 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 87 | 1 | PaddedPODArray<UInt8>& c) { | 88 | 1 | size_t size = a.size(); | 89 | 1 | const A* __restrict a_pos = a.data(); | 90 | 1 | UInt8* __restrict c_pos = c.data(); | 91 | 1 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 7 | *c_pos = Op::apply(*a_pos, b); | 95 | 7 | ++a_pos; | 96 | 7 | ++c_pos; | 97 | 7 | } | 98 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.42k | PaddedPODArray<UInt8>& c) { | 88 | 1.42k | size_t size = a.size(); | 89 | 1.42k | const A* __restrict a_pos = a.data(); | 90 | 1.42k | UInt8* __restrict c_pos = c.data(); | 91 | 1.42k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.33k | while (a_pos < a_end) { | 94 | 5.91k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.91k | ++a_pos; | 96 | 5.91k | ++c_pos; | 97 | 5.91k | } | 98 | 1.42k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.02k | PaddedPODArray<UInt8>& c) { | 88 | 2.02k | size_t size = a.size(); | 89 | 2.02k | const A* __restrict a_pos = a.data(); | 90 | 2.02k | UInt8* __restrict c_pos = c.data(); | 91 | 2.02k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.22k | while (a_pos < a_end) { | 94 | 5.19k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.19k | ++a_pos; | 96 | 5.19k | ++c_pos; | 97 | 5.19k | } | 98 | 2.02k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.46k | PaddedPODArray<UInt8>& c) { | 88 | 1.46k | size_t size = a.size(); | 89 | 1.46k | const A* __restrict a_pos = a.data(); | 90 | 1.46k | UInt8* __restrict c_pos = c.data(); | 91 | 1.46k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.47k | while (a_pos < a_end) { | 94 | 5.00k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.00k | ++a_pos; | 96 | 5.00k | ++c_pos; | 97 | 5.00k | } | 98 | 1.46k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 382 | PaddedPODArray<UInt8>& c) { | 88 | 382 | size_t size = a.size(); | 89 | 382 | const A* __restrict a_pos = a.data(); | 90 | 382 | UInt8* __restrict c_pos = c.data(); | 91 | 382 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.7k | while (a_pos < a_end) { | 94 | 13.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 13.3k | ++a_pos; | 96 | 13.3k | ++c_pos; | 97 | 13.3k | } | 98 | 382 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 12.2k | PaddedPODArray<UInt8>& c) { | 88 | 12.2k | size_t size = a.size(); | 89 | 12.2k | const A* __restrict a_pos = a.data(); | 90 | 12.2k | UInt8* __restrict c_pos = c.data(); | 91 | 12.2k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.82M | while (a_pos < a_end) { | 94 | 1.81M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.81M | ++a_pos; | 96 | 1.81M | ++c_pos; | 97 | 1.81M | } | 98 | 12.2k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 64.1k | PaddedPODArray<UInt8>& c) { | 88 | 64.1k | size_t size = a.size(); | 89 | 64.1k | const A* __restrict a_pos = a.data(); | 90 | 64.1k | UInt8* __restrict c_pos = c.data(); | 91 | 64.1k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8.86M | while (a_pos < a_end) { | 94 | 8.80M | *c_pos = Op::apply(*a_pos, b); | 95 | 8.80M | ++a_pos; | 96 | 8.80M | ++c_pos; | 97 | 8.80M | } | 98 | 64.1k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 8.13k | PaddedPODArray<UInt8>& c) { | 88 | 8.13k | size_t size = a.size(); | 89 | 8.13k | const A* __restrict a_pos = a.data(); | 90 | 8.13k | UInt8* __restrict c_pos = c.data(); | 91 | 8.13k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 149k | while (a_pos < a_end) { | 94 | 141k | *c_pos = Op::apply(*a_pos, b); | 95 | 141k | ++a_pos; | 96 | 141k | ++c_pos; | 97 | 141k | } | 98 | 8.13k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.59k | PaddedPODArray<UInt8>& c) { | 88 | 1.59k | size_t size = a.size(); | 89 | 1.59k | const A* __restrict a_pos = a.data(); | 90 | 1.59k | UInt8* __restrict c_pos = c.data(); | 91 | 1.59k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.2k | while (a_pos < a_end) { | 94 | 11.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 11.6k | ++a_pos; | 96 | 11.6k | ++c_pos; | 97 | 11.6k | } | 98 | 1.59k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 269 | PaddedPODArray<UInt8>& c) { | 88 | 269 | size_t size = a.size(); | 89 | 269 | const A* __restrict a_pos = a.data(); | 90 | 269 | UInt8* __restrict c_pos = c.data(); | 91 | 269 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.90k | while (a_pos < a_end) { | 94 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.63k | ++a_pos; | 96 | 1.63k | ++c_pos; | 97 | 1.63k | } | 98 | 269 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 140 | PaddedPODArray<UInt8>& c) { | 88 | 140 | size_t size = a.size(); | 89 | 140 | const A* __restrict a_pos = a.data(); | 90 | 140 | UInt8* __restrict c_pos = c.data(); | 91 | 140 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 86.2k | while (a_pos < a_end) { | 94 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 86.1k | ++a_pos; | 96 | 86.1k | ++c_pos; | 97 | 86.1k | } | 98 | 140 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 200 | PaddedPODArray<UInt8>& c) { | 88 | 200 | size_t size = a.size(); | 89 | 200 | const A* __restrict a_pos = a.data(); | 90 | 200 | UInt8* __restrict c_pos = c.data(); | 91 | 200 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.61k | while (a_pos < a_end) { | 94 | 2.41k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.41k | ++a_pos; | 96 | 2.41k | ++c_pos; | 97 | 2.41k | } | 98 | 200 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 64 | while (a_pos < a_end) { | 94 | 38 | *c_pos = Op::apply(*a_pos, b); | 95 | 38 | ++a_pos; | 96 | 38 | ++c_pos; | 97 | 38 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.56k | PaddedPODArray<UInt8>& c) { | 88 | 1.56k | size_t size = a.size(); | 89 | 1.56k | const A* __restrict a_pos = a.data(); | 90 | 1.56k | UInt8* __restrict c_pos = c.data(); | 91 | 1.56k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 292k | while (a_pos < a_end) { | 94 | 291k | *c_pos = Op::apply(*a_pos, b); | 95 | 291k | ++a_pos; | 96 | 291k | ++c_pos; | 97 | 291k | } | 98 | 1.56k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 213 | PaddedPODArray<UInt8>& c) { | 88 | 213 | size_t size = a.size(); | 89 | 213 | const A* __restrict a_pos = a.data(); | 90 | 213 | UInt8* __restrict c_pos = c.data(); | 91 | 213 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 312k | while (a_pos < a_end) { | 94 | 311k | *c_pos = Op::apply(*a_pos, b); | 95 | 311k | ++a_pos; | 96 | 311k | ++c_pos; | 97 | 311k | } | 98 | 213 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 173 | PaddedPODArray<UInt8>& c) { | 88 | 173 | size_t size = a.size(); | 89 | 173 | const A* __restrict a_pos = a.data(); | 90 | 173 | UInt8* __restrict c_pos = c.data(); | 91 | 173 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 117k | while (a_pos < a_end) { | 94 | 117k | *c_pos = Op::apply(*a_pos, b); | 95 | 117k | ++a_pos; | 96 | 117k | ++c_pos; | 97 | 117k | } | 98 | 173 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 192 | PaddedPODArray<UInt8>& c) { | 88 | 192 | size_t size = a.size(); | 89 | 192 | const A* __restrict a_pos = a.data(); | 90 | 192 | UInt8* __restrict c_pos = c.data(); | 91 | 192 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 192 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 1.44k | PaddedPODArray<UInt8>& c) { | 88 | 1.44k | size_t size = a.size(); | 89 | 1.44k | const A* __restrict a_pos = a.data(); | 90 | 1.44k | UInt8* __restrict c_pos = c.data(); | 91 | 1.44k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.46M | while (a_pos < a_end) { | 94 | 4.46M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.46M | ++a_pos; | 96 | 4.46M | ++c_pos; | 97 | 4.46M | } | 98 | 1.44k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 12.6k | PaddedPODArray<UInt8>& c) { | 88 | 12.6k | size_t size = a.size(); | 89 | 12.6k | const A* __restrict a_pos = a.data(); | 90 | 12.6k | UInt8* __restrict c_pos = c.data(); | 91 | 12.6k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 39.7M | while (a_pos < a_end) { | 94 | 39.7M | *c_pos = Op::apply(*a_pos, b); | 95 | 39.7M | ++a_pos; | 96 | 39.7M | ++c_pos; | 97 | 39.7M | } | 98 | 12.6k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 519 | PaddedPODArray<UInt8>& c) { | 88 | 519 | size_t size = a.size(); | 89 | 519 | const A* __restrict a_pos = a.data(); | 90 | 519 | UInt8* __restrict c_pos = c.data(); | 91 | 519 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 16.0k | while (a_pos < a_end) { | 94 | 15.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.5k | ++a_pos; | 96 | 15.5k | ++c_pos; | 97 | 15.5k | } | 98 | 519 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 316 | PaddedPODArray<UInt8>& c) { | 88 | 316 | size_t size = a.size(); | 89 | 316 | const A* __restrict a_pos = a.data(); | 90 | 316 | UInt8* __restrict c_pos = c.data(); | 91 | 316 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.4k | while (a_pos < a_end) { | 94 | 15.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.1k | ++a_pos; | 96 | 15.1k | ++c_pos; | 97 | 15.1k | } | 98 | 316 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 64 | PaddedPODArray<UInt8>& c) { | 88 | 64 | size_t size = a.size(); | 89 | 64 | const A* __restrict a_pos = a.data(); | 90 | 64 | UInt8* __restrict c_pos = c.data(); | 91 | 64 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 180k | while (a_pos < a_end) { | 94 | 180k | *c_pos = Op::apply(*a_pos, b); | 95 | 180k | ++a_pos; | 96 | 180k | ++c_pos; | 97 | 180k | } | 98 | 64 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 67 | PaddedPODArray<UInt8>& c) { | 88 | 67 | size_t size = a.size(); | 89 | 67 | const A* __restrict a_pos = a.data(); | 90 | 67 | UInt8* __restrict c_pos = c.data(); | 91 | 67 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 106k | while (a_pos < a_end) { | 94 | 105k | *c_pos = Op::apply(*a_pos, b); | 95 | 105k | ++a_pos; | 96 | 105k | ++c_pos; | 97 | 105k | } | 98 | 67 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 62 | PaddedPODArray<UInt8>& c) { | 88 | 62 | size_t size = a.size(); | 89 | 62 | const A* __restrict a_pos = a.data(); | 90 | 62 | UInt8* __restrict c_pos = c.data(); | 91 | 62 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 150k | while (a_pos < a_end) { | 94 | 150k | *c_pos = Op::apply(*a_pos, b); | 95 | 150k | ++a_pos; | 96 | 150k | ++c_pos; | 97 | 150k | } | 98 | 62 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 78 | PaddedPODArray<UInt8>& c) { | 88 | 78 | size_t size = a.size(); | 89 | 78 | const A* __restrict a_pos = a.data(); | 90 | 78 | UInt8* __restrict c_pos = c.data(); | 91 | 78 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 104k | while (a_pos < a_end) { | 94 | 104k | *c_pos = Op::apply(*a_pos, b); | 95 | 104k | ++a_pos; | 96 | 104k | ++c_pos; | 97 | 104k | } | 98 | 78 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 23.9k | PaddedPODArray<UInt8>& c) { | 88 | 23.9k | size_t size = a.size(); | 89 | 23.9k | const A* __restrict a_pos = a.data(); | 90 | 23.9k | UInt8* __restrict c_pos = c.data(); | 91 | 23.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.8M | while (a_pos < a_end) { | 94 | 30.8M | *c_pos = Op::apply(*a_pos, b); | 95 | 30.8M | ++a_pos; | 96 | 30.8M | ++c_pos; | 97 | 30.8M | } | 98 | 23.9k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 32.0k | PaddedPODArray<UInt8>& c) { | 88 | 32.0k | size_t size = a.size(); | 89 | 32.0k | const A* __restrict a_pos = a.data(); | 90 | 32.0k | UInt8* __restrict c_pos = c.data(); | 91 | 32.0k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 35.2M | while (a_pos < a_end) { | 94 | 35.2M | *c_pos = Op::apply(*a_pos, b); | 95 | 35.2M | ++a_pos; | 96 | 35.2M | ++c_pos; | 97 | 35.2M | } | 98 | 32.0k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 541 | PaddedPODArray<UInt8>& c) { | 88 | 541 | size_t size = a.size(); | 89 | 541 | const A* __restrict a_pos = a.data(); | 90 | 541 | UInt8* __restrict c_pos = c.data(); | 91 | 541 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31.1k | while (a_pos < a_end) { | 94 | 30.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.6k | ++a_pos; | 96 | 30.6k | ++c_pos; | 97 | 30.6k | } | 98 | 541 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 679 | PaddedPODArray<UInt8>& c) { | 88 | 679 | size_t size = a.size(); | 89 | 679 | const A* __restrict a_pos = a.data(); | 90 | 679 | UInt8* __restrict c_pos = c.data(); | 91 | 679 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 27.3k | while (a_pos < a_end) { | 94 | 26.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 26.6k | ++a_pos; | 96 | 26.6k | ++c_pos; | 97 | 26.6k | } | 98 | 679 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 50 | PaddedPODArray<UInt8>& c) { | 88 | 50 | size_t size = a.size(); | 89 | 50 | const A* __restrict a_pos = a.data(); | 90 | 50 | UInt8* __restrict c_pos = c.data(); | 91 | 50 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 170k | while (a_pos < a_end) { | 94 | 170k | *c_pos = Op::apply(*a_pos, b); | 95 | 170k | ++a_pos; | 96 | 170k | ++c_pos; | 97 | 170k | } | 98 | 50 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 58 | PaddedPODArray<UInt8>& c) { | 88 | 58 | size_t size = a.size(); | 89 | 58 | const A* __restrict a_pos = a.data(); | 90 | 58 | UInt8* __restrict c_pos = c.data(); | 91 | 58 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 125k | while (a_pos < a_end) { | 94 | 125k | *c_pos = Op::apply(*a_pos, b); | 95 | 125k | ++a_pos; | 96 | 125k | ++c_pos; | 97 | 125k | } | 98 | 58 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 168 | PaddedPODArray<UInt8>& c) { | 88 | 168 | size_t size = a.size(); | 89 | 168 | const A* __restrict a_pos = a.data(); | 90 | 168 | UInt8* __restrict c_pos = c.data(); | 91 | 168 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 338 | while (a_pos < a_end) { | 94 | 170 | *c_pos = Op::apply(*a_pos, b); | 95 | 170 | ++a_pos; | 96 | 170 | ++c_pos; | 97 | 170 | } | 98 | 168 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 164 | PaddedPODArray<UInt8>& c) { | 88 | 164 | size_t size = a.size(); | 89 | 164 | const A* __restrict a_pos = a.data(); | 90 | 164 | UInt8* __restrict c_pos = c.data(); | 91 | 164 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 328 | while (a_pos < a_end) { | 94 | 164 | *c_pos = Op::apply(*a_pos, b); | 95 | 164 | ++a_pos; | 96 | 164 | ++c_pos; | 97 | 164 | } | 98 | 164 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 141 | PaddedPODArray<UInt8>& c) { | 88 | 141 | size_t size = a.size(); | 89 | 141 | const A* __restrict a_pos = a.data(); | 90 | 141 | UInt8* __restrict c_pos = c.data(); | 91 | 141 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 356k | while (a_pos < a_end) { | 94 | 356k | *c_pos = Op::apply(*a_pos, b); | 95 | 356k | ++a_pos; | 96 | 356k | ++c_pos; | 97 | 356k | } | 98 | 141 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 135 | PaddedPODArray<UInt8>& c) { | 88 | 135 | size_t size = a.size(); | 89 | 135 | const A* __restrict a_pos = a.data(); | 90 | 135 | UInt8* __restrict c_pos = c.data(); | 91 | 135 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 276k | while (a_pos < a_end) { | 94 | 275k | *c_pos = Op::apply(*a_pos, b); | 95 | 275k | ++a_pos; | 96 | 275k | ++c_pos; | 97 | 275k | } | 98 | 135 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 92.7k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 92.7k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 92.7k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 300 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 300 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 300 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 27.3k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 27.3k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 27.3k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 963 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 963 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 963 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 106 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 106 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 106 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 252 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 252 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 252 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 62.1k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 62.1k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 62.1k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 527 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 527 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 527 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 52 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 52 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 52 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 264 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 121 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 121 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 121 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 84 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 84 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 84 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 68 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 68 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 68 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 182 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 182 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 182 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
103 | | }; |
104 | | |
105 | | /// Generic version, implemented for columns of same type. |
106 | | template <typename Op> |
107 | | struct GenericComparisonImpl { |
108 | 9 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 20 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
110 | 11 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
111 | 11 | } |
112 | 9 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 10 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 6 | } | 112 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 3 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 6 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 3 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 3 | } | 112 | 3 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
113 | | |
114 | 170 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 170 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 606k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 606k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 606k | } |
119 | 170 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 13 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 13 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 31 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 18 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 18 | } | 119 | 13 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 66 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 66 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 329k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 329k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 329k | } | 119 | 66 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 67 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 67 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 277k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 277k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 277k | } | 119 | 67 | } |
|
120 | | |
121 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
122 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
123 | 0 | } Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
124 | | }; |
125 | | |
126 | | template <typename Op> |
127 | | struct StringComparisonImpl { |
128 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
129 | | const ColumnString::Offsets& a_offsets, |
130 | | const ColumnString::Chars& b_data, |
131 | | const ColumnString::Offsets& b_offsets, |
132 | 694 | PaddedPODArray<UInt8>& c) { |
133 | 694 | size_t size = a_offsets.size(); |
134 | 694 | ColumnString::Offset prev_a_offset = 0; |
135 | 694 | ColumnString::Offset prev_b_offset = 0; |
136 | 694 | const auto* a_pos = a_data.data(); |
137 | 694 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 2.11k | for (size_t i = 0; i < size; ++i) { |
140 | 1.41k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.41k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.41k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.41k | 0); |
144 | | |
145 | 1.41k | prev_a_offset = a_offsets[i]; |
146 | 1.41k | prev_b_offset = b_offsets[i]; |
147 | 1.41k | } |
148 | 694 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 94 | PaddedPODArray<UInt8>& c) { | 133 | 94 | size_t size = a_offsets.size(); | 134 | 94 | ColumnString::Offset prev_a_offset = 0; | 135 | 94 | ColumnString::Offset prev_b_offset = 0; | 136 | 94 | const auto* a_pos = a_data.data(); | 137 | 94 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 346 | for (size_t i = 0; i < size; ++i) { | 140 | 252 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 252 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 252 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 252 | 0); | 144 | | | 145 | 252 | prev_a_offset = a_offsets[i]; | 146 | 252 | prev_b_offset = b_offsets[i]; | 147 | 252 | } | 148 | 94 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 436 | PaddedPODArray<UInt8>& c) { | 133 | 436 | size_t size = a_offsets.size(); | 134 | 436 | ColumnString::Offset prev_a_offset = 0; | 135 | 436 | ColumnString::Offset prev_b_offset = 0; | 136 | 436 | const auto* a_pos = a_data.data(); | 137 | 436 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.39k | for (size_t i = 0; i < size; ++i) { | 140 | 958 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 958 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 958 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 958 | 0); | 144 | | | 145 | 958 | prev_a_offset = a_offsets[i]; | 146 | 958 | prev_b_offset = b_offsets[i]; | 147 | 958 | } | 148 | 436 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 162 | PaddedPODArray<UInt8>& c) { | 133 | 162 | size_t size = a_offsets.size(); | 134 | 162 | ColumnString::Offset prev_a_offset = 0; | 135 | 162 | ColumnString::Offset prev_b_offset = 0; | 136 | 162 | const auto* a_pos = a_data.data(); | 137 | 162 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 324 | for (size_t i = 0; i < size; ++i) { | 140 | 162 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 162 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 162 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 162 | 0); | 144 | | | 145 | 162 | prev_a_offset = a_offsets[i]; | 146 | 162 | prev_b_offset = b_offsets[i]; | 147 | 162 | } | 148 | 162 | } |
|
149 | | |
150 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
151 | | const ColumnString::Offsets& a_offsets, |
152 | | const ColumnString::Chars& b_data, |
153 | | ColumnString::Offset b_size, |
154 | 1.60k | PaddedPODArray<UInt8>& c) { |
155 | 1.60k | size_t size = a_offsets.size(); |
156 | 1.60k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.60k | const auto* a_pos = a_data.data(); |
158 | 1.60k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.47M | for (size_t i = 0; i < size; ++i) { |
161 | 1.47M | c[i] = Op::apply( |
162 | 1.47M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.47M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.47M | 0); |
165 | | |
166 | 1.47M | prev_a_offset = a_offsets[i]; |
167 | 1.47M | } |
168 | 1.60k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 200 | PaddedPODArray<UInt8>& c) { | 155 | 200 | size_t size = a_offsets.size(); | 156 | 200 | ColumnString::Offset prev_a_offset = 0; | 157 | 200 | const auto* a_pos = a_data.data(); | 158 | 200 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 322k | for (size_t i = 0; i < size; ++i) { | 161 | 322k | c[i] = Op::apply( | 162 | 322k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 322k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 322k | 0); | 165 | | | 166 | 322k | prev_a_offset = a_offsets[i]; | 167 | 322k | } | 168 | 200 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 234 | PaddedPODArray<UInt8>& c) { | 155 | 234 | size_t size = a_offsets.size(); | 156 | 234 | ColumnString::Offset prev_a_offset = 0; | 157 | 234 | const auto* a_pos = a_data.data(); | 158 | 234 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 73.1k | for (size_t i = 0; i < size; ++i) { | 161 | 72.9k | c[i] = Op::apply( | 162 | 72.9k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 72.9k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 72.9k | 0); | 165 | | | 166 | 72.9k | prev_a_offset = a_offsets[i]; | 167 | 72.9k | } | 168 | 234 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 506 | PaddedPODArray<UInt8>& c) { | 155 | 506 | size_t size = a_offsets.size(); | 156 | 506 | ColumnString::Offset prev_a_offset = 0; | 157 | 506 | const auto* a_pos = a_data.data(); | 158 | 506 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 513k | for (size_t i = 0; i < size; ++i) { | 161 | 513k | c[i] = Op::apply( | 162 | 513k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 513k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 513k | 0); | 165 | | | 166 | 513k | prev_a_offset = a_offsets[i]; | 167 | 513k | } | 168 | 506 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 662 | PaddedPODArray<UInt8>& c) { | 155 | 662 | size_t size = a_offsets.size(); | 156 | 662 | ColumnString::Offset prev_a_offset = 0; | 157 | 662 | const auto* a_pos = a_data.data(); | 158 | 662 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 564k | for (size_t i = 0; i < size; ++i) { | 161 | 564k | c[i] = Op::apply( | 162 | 564k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 564k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 564k | 0); | 165 | | | 166 | 564k | prev_a_offset = a_offsets[i]; | 167 | 564k | } | 168 | 662 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 1.42k | PaddedPODArray<UInt8>& c) { |
187 | 1.42k | size_t size = a_offsets.size(); |
188 | 1.42k | ColumnString::Offset prev_a_offset = 0; |
189 | 1.42k | ColumnString::Offset prev_b_offset = 0; |
190 | 1.42k | const auto* a_pos = a_data.data(); |
191 | 1.42k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 3.32k | for (size_t i = 0; i < size; ++i) { |
194 | 1.90k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.90k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.90k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.90k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.90k | prev_a_offset = a_offsets[i]; |
201 | 1.90k | prev_b_offset = b_offsets[i]; |
202 | 1.90k | } |
203 | 1.42k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1.37k | PaddedPODArray<UInt8>& c) { | 187 | 1.37k | size_t size = a_offsets.size(); | 188 | 1.37k | ColumnString::Offset prev_a_offset = 0; | 189 | 1.37k | ColumnString::Offset prev_b_offset = 0; | 190 | 1.37k | const auto* a_pos = a_data.data(); | 191 | 1.37k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 3.21k | for (size_t i = 0; i < size; ++i) { | 194 | 1.84k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.84k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.84k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.84k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.84k | prev_a_offset = a_offsets[i]; | 201 | 1.84k | prev_b_offset = b_offsets[i]; | 202 | 1.84k | } | 203 | 1.37k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 52 | PaddedPODArray<UInt8>& c) { | 187 | 52 | size_t size = a_offsets.size(); | 188 | 52 | ColumnString::Offset prev_a_offset = 0; | 189 | 52 | ColumnString::Offset prev_b_offset = 0; | 190 | 52 | const auto* a_pos = a_data.data(); | 191 | 52 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 113 | for (size_t i = 0; i < size; ++i) { | 194 | 61 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 61 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 61 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 61 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 61 | prev_a_offset = a_offsets[i]; | 201 | 61 | prev_b_offset = b_offsets[i]; | 202 | 61 | } | 203 | 52 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 22.9k | PaddedPODArray<UInt8>& c) { |
210 | 22.9k | size_t size = a_offsets.size(); |
211 | 22.9k | if (b_size == 0) { |
212 | 2 | auto* __restrict data = c.data(); |
213 | 2 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 2 | ColumnString::Offset prev_a_offset = 0; |
216 | 10 | for (size_t i = 0; i < size; ++i) { |
217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 8 | prev_a_offset = offsets[i]; |
219 | 8 | } |
220 | 22.9k | } else { |
221 | 22.9k | ColumnString::Offset prev_a_offset = 0; |
222 | 22.9k | const auto* a_pos = a_data.data(); |
223 | 22.9k | const auto* b_pos = b_data.data(); |
224 | 11.4M | for (size_t i = 0; i < size; ++i) { |
225 | 11.3M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 11.3M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 11.3M | b_pos, b_size); |
228 | 11.3M | prev_a_offset = a_offsets[i]; |
229 | 11.3M | } |
230 | 22.9k | } |
231 | 22.9k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 21.4k | PaddedPODArray<UInt8>& c) { | 210 | 21.4k | size_t size = a_offsets.size(); | 211 | 21.4k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 21.4k | } else { | 221 | 21.4k | ColumnString::Offset prev_a_offset = 0; | 222 | 21.4k | const auto* a_pos = a_data.data(); | 223 | 21.4k | const auto* b_pos = b_data.data(); | 224 | 8.23M | for (size_t i = 0; i < size; ++i) { | 225 | 8.21M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.21M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.21M | b_pos, b_size); | 228 | 8.21M | prev_a_offset = a_offsets[i]; | 229 | 8.21M | } | 230 | 21.4k | } | 231 | 21.4k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 1.43k | PaddedPODArray<UInt8>& c) { | 210 | 1.43k | size_t size = a_offsets.size(); | 211 | 1.43k | if (b_size == 0) { | 212 | 2 | auto* __restrict data = c.data(); | 213 | 2 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 2 | ColumnString::Offset prev_a_offset = 0; | 216 | 10 | for (size_t i = 0; i < size; ++i) { | 217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 8 | prev_a_offset = offsets[i]; | 219 | 8 | } | 220 | 1.43k | } else { | 221 | 1.43k | ColumnString::Offset prev_a_offset = 0; | 222 | 1.43k | const auto* a_pos = a_data.data(); | 223 | 1.43k | const auto* b_pos = b_data.data(); | 224 | 3.17M | for (size_t i = 0; i < size; ++i) { | 225 | 3.17M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.17M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.17M | b_pos, b_size); | 228 | 3.17M | prev_a_offset = a_offsets[i]; | 229 | 3.17M | } | 230 | 1.43k | } | 231 | 1.43k | } |
|
232 | | |
233 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
234 | | ColumnString::Offset a_size, |
235 | | const ColumnString::Chars& b_data, |
236 | | const ColumnString::Offsets& b_offsets, |
237 | 0 | PaddedPODArray<UInt8>& c) { |
238 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
240 | | }; |
241 | | |
242 | | template <PrimitiveType PT> |
243 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
244 | | |
245 | | template <PrimitiveType PT> |
246 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
247 | | |
248 | | struct NameEquals { |
249 | | static constexpr auto name = "eq"; |
250 | | }; |
251 | | struct NameNotEquals { |
252 | | static constexpr auto name = "ne"; |
253 | | }; |
254 | | struct NameLess { |
255 | | static constexpr auto name = "lt"; |
256 | | }; |
257 | | struct NameGreater { |
258 | | static constexpr auto name = "gt"; |
259 | | }; |
260 | | struct NameLessOrEquals { |
261 | | static constexpr auto name = "le"; |
262 | | }; |
263 | | struct NameGreaterOrEquals { |
264 | | static constexpr auto name = "ge"; |
265 | | }; |
266 | | |
267 | | namespace comparison_zonemap_detail { |
268 | | enum class Op { |
269 | | EQ, |
270 | | NE, |
271 | | LT, |
272 | | LE, |
273 | | GT, |
274 | | GE, |
275 | | }; |
276 | | |
277 | 4 | inline Op symmetric_op(Op op) { |
278 | 4 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 2 | case Op::LT: |
283 | 2 | return Op::GT; |
284 | 0 | case Op::LE: |
285 | 0 | return Op::GE; |
286 | 0 | case Op::GT: |
287 | 0 | return Op::LT; |
288 | 2 | case Op::GE: |
289 | 2 | return Op::LE; |
290 | 4 | } |
291 | 0 | __builtin_unreachable(); |
292 | 4 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 37.2k | Op op) { |
296 | 37.2k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 37.2k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 37.2k | slot_literal->slot_type); |
300 | 37.2k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 37.2k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 37.2k | if (zone_map_ptr == nullptr) { |
305 | 944 | return unsupported_zonemap_filter(ctx); |
306 | 944 | } |
307 | 36.3k | const auto& zone_map = *zone_map_ptr; |
308 | 36.3k | if (!zone_map.has_not_null) { |
309 | 212 | return ZoneMapFilterResult::kNoMatch; |
310 | 212 | } |
311 | 36.1k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 101 | return unsupported_zonemap_filter(ctx); |
313 | 101 | } |
314 | | |
315 | 36.0k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 36.0k | const auto& literal = slot_literal->literal; |
317 | 36.0k | switch (effective_op) { |
318 | 9.14k | case Op::EQ: |
319 | 9.14k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 9.14k | ? ZoneMapFilterResult::kNoMatch |
321 | 9.14k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.11k | case Op::NE: |
323 | 1.11k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.11k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.11k | : ZoneMapFilterResult::kMayMatch; |
326 | 2.97k | case Op::LT: |
327 | 2.97k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 2.97k | : ZoneMapFilterResult::kMayMatch; |
329 | 10.2k | case Op::LE: |
330 | 10.2k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 10.2k | : ZoneMapFilterResult::kMayMatch; |
332 | 5.10k | case Op::GT: |
333 | 5.10k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 5.10k | : ZoneMapFilterResult::kMayMatch; |
335 | 7.50k | case Op::GE: |
336 | 7.50k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 7.50k | : ZoneMapFilterResult::kMayMatch; |
338 | 36.0k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 36.0k | } |
343 | | |
344 | 204k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 204k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 204k | if (!slot_literal.has_value()) { |
347 | 24.8k | return false; |
348 | 24.8k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 179k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 179k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 179k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 179k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 13 | return false; |
364 | 13 | } |
365 | | |
366 | 179k | return true; |
367 | 179k | } |
368 | | |
369 | 104k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 104k | return op == Op::EQ && can_evaluate(arguments); |
371 | 104k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 90.7k | const VExprSPtrs& arguments, Op op) { |
375 | 90.7k | DORIS_CHECK(op == Op::EQ); |
376 | 90.7k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 90.7k | DORIS_CHECK(slot_literal.has_value()); |
378 | 90.7k | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 90.7k | } |
380 | | |
381 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
382 | 14 | const VExprSPtrs& arguments, Op op) { |
383 | 14 | DORIS_CHECK(op == Op::EQ); |
384 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 14 | DORIS_CHECK(slot_literal.has_value()); |
386 | 14 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
387 | 14 | } |
388 | | |
389 | 340k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 340k | if (name == NameEquals::name) { |
391 | 233k | return Op::EQ; |
392 | 233k | } |
393 | 107k | if (name == NameNotEquals::name) { |
394 | 5.04k | return Op::NE; |
395 | 5.04k | } |
396 | 102k | if (name == NameLess::name) { |
397 | 14.3k | return Op::LT; |
398 | 14.3k | } |
399 | 88.1k | if (name == NameLessOrEquals::name) { |
400 | 33.7k | return Op::LE; |
401 | 33.7k | } |
402 | 54.4k | if (name == NameGreater::name) { |
403 | 26.4k | return Op::GT; |
404 | 26.4k | } |
405 | 28.2k | if (name == NameGreaterOrEquals::name) { |
406 | 28.2k | return Op::GE; |
407 | 28.2k | } |
408 | 18.4E | return std::nullopt; |
409 | 28.0k | } |
410 | | } // namespace comparison_zonemap_detail |
411 | | |
412 | | template <template <PrimitiveType> class Op, typename Name> |
413 | | class FunctionComparison : public IFunction { |
414 | | public: |
415 | | static constexpr auto name = Name::name; |
416 | 537k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 473k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 2.54k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 10.7k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 18.4k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 5.35k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 26.3k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 537k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 474k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 2.54k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 10.7k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 18.4k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 5.35k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 26.3k | FunctionComparison() = default; |
|
419 | | |
420 | 1.27M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 1.24M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 651 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 3.08k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 13.7k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 420 | 1.73k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 420 | 9.56k | double execute_cost() const override { return 0.5; } |
|
421 | | |
422 | | private: |
423 | | template <PrimitiveType PT> |
424 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
425 | 263k | const ColumnPtr& col_right_ptr) const { |
426 | 263k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 263k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 263k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 263k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 263k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 263k | if (!left_is_const && !right_is_const) { |
435 | 11.4k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 11.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 11.4k | vec_res.resize(col_left->get_data().size()); |
439 | 11.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 11.4k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 11.4k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 11.4k | vec_res); |
443 | | |
444 | 11.4k | block.replace_by_position(result, std::move(col_res)); |
445 | 252k | } else if (!left_is_const && right_is_const) { |
446 | 159k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 159k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 159k | vec_res.resize(col_left->size()); |
450 | 159k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 159k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 159k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 159k | col_right->get_element(0), vec_res); |
454 | | |
455 | 159k | block.replace_by_position(result, std::move(col_res)); |
456 | 159k | } else if (left_is_const && !right_is_const) { |
457 | 92.7k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 92.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 92.7k | vec_res.resize(col_right->size()); |
461 | 92.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 92.7k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 92.7k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 92.7k | col_right->get_data(), vec_res); |
465 | | |
466 | 92.7k | block.replace_by_position(result, std::move(col_res)); |
467 | 92.7k | } |
468 | 263k | return Status::OK(); |
469 | 263k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 875 | const ColumnPtr& col_right_ptr) const { | 426 | 875 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 875 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 875 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 875 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 875 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 875 | if (!left_is_const && !right_is_const) { | 435 | 73 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 73 | vec_res.resize(col_left->get_data().size()); | 439 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 73 | vec_res); | 443 | | | 444 | 73 | block.replace_by_position(result, std::move(col_res)); | 445 | 802 | } else if (!left_is_const && right_is_const) { | 446 | 802 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 802 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 802 | vec_res.resize(col_left->size()); | 450 | 802 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 802 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 802 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 802 | col_right->get_element(0), vec_res); | 454 | | | 455 | 802 | block.replace_by_position(result, std::move(col_res)); | 456 | 802 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 875 | return Status::OK(); | 469 | 875 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.19k | const ColumnPtr& col_right_ptr) const { | 426 | 1.19k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.19k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.19k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.19k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.19k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.19k | if (!left_is_const && !right_is_const) { | 435 | 578 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 578 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 578 | vec_res.resize(col_left->get_data().size()); | 439 | 578 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 578 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 578 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 578 | vec_res); | 443 | | | 444 | 578 | block.replace_by_position(result, std::move(col_res)); | 445 | 621 | } else if (!left_is_const && right_is_const) { | 446 | 621 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 621 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 621 | vec_res.resize(col_left->size()); | 450 | 621 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 621 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 621 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 621 | col_right->get_element(0), vec_res); | 454 | | | 455 | 621 | block.replace_by_position(result, std::move(col_res)); | 456 | 621 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.19k | return Status::OK(); | 469 | 1.19k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 637 | const ColumnPtr& col_right_ptr) const { | 426 | 637 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 637 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 637 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 637 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 637 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 637 | if (!left_is_const && !right_is_const) { | 435 | 354 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 354 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 354 | vec_res.resize(col_left->get_data().size()); | 439 | 354 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 354 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 354 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 354 | vec_res); | 443 | | | 444 | 354 | block.replace_by_position(result, std::move(col_res)); | 445 | 354 | } else if (!left_is_const && right_is_const) { | 446 | 283 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 283 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 283 | vec_res.resize(col_left->size()); | 450 | 283 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 283 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 283 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 283 | col_right->get_element(0), vec_res); | 454 | | | 455 | 283 | block.replace_by_position(result, std::move(col_res)); | 456 | 283 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 637 | return Status::OK(); | 469 | 637 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 5.59k | const ColumnPtr& col_right_ptr) const { | 426 | 5.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 5.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 5.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 5.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 5.59k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 5.59k | if (!left_is_const && !right_is_const) { | 435 | 148 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 148 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 148 | vec_res.resize(col_left->get_data().size()); | 439 | 148 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 148 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 148 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 148 | vec_res); | 443 | | | 444 | 148 | block.replace_by_position(result, std::move(col_res)); | 445 | 5.44k | } else if (!left_is_const && right_is_const) { | 446 | 5.14k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 5.14k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 5.14k | vec_res.resize(col_left->size()); | 450 | 5.14k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 5.14k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 5.14k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 5.14k | col_right->get_element(0), vec_res); | 454 | | | 455 | 5.14k | block.replace_by_position(result, std::move(col_res)); | 456 | 5.14k | } else if (left_is_const && !right_is_const) { | 457 | 300 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 300 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 300 | vec_res.resize(col_right->size()); | 461 | 300 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 300 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 300 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 300 | col_right->get_data(), vec_res); | 465 | | | 466 | 300 | block.replace_by_position(result, std::move(col_res)); | 467 | 300 | } | 468 | 5.59k | return Status::OK(); | 469 | 5.59k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 692 | const ColumnPtr& col_right_ptr) const { | 426 | 692 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 692 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 692 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 692 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 692 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 692 | if (!left_is_const && !right_is_const) { | 435 | 69 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 69 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 69 | vec_res.resize(col_left->get_data().size()); | 439 | 69 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 69 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 69 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 69 | vec_res); | 443 | | | 444 | 69 | block.replace_by_position(result, std::move(col_res)); | 445 | 623 | } else if (!left_is_const && right_is_const) { | 446 | 587 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 587 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 587 | vec_res.resize(col_left->size()); | 450 | 587 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 587 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 587 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 587 | col_right->get_element(0), vec_res); | 454 | | | 455 | 587 | block.replace_by_position(result, std::move(col_res)); | 456 | 587 | } else if (left_is_const && !right_is_const) { | 457 | 36 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 36 | vec_res.resize(col_right->size()); | 461 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 36 | col_right->get_data(), vec_res); | 465 | | | 466 | 36 | block.replace_by_position(result, std::move(col_res)); | 467 | 36 | } | 468 | 692 | return Status::OK(); | 469 | 692 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60.8k | const ColumnPtr& col_right_ptr) const { | 426 | 60.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60.8k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60.8k | if (!left_is_const && !right_is_const) { | 435 | 963 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 963 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 963 | vec_res.resize(col_left->get_data().size()); | 439 | 963 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 963 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 963 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 963 | vec_res); | 443 | | | 444 | 963 | block.replace_by_position(result, std::move(col_res)); | 445 | 59.8k | } else if (!left_is_const && right_is_const) { | 446 | 32.4k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 32.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 32.4k | vec_res.resize(col_left->size()); | 450 | 32.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 32.4k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 32.4k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 32.4k | col_right->get_element(0), vec_res); | 454 | | | 455 | 32.4k | block.replace_by_position(result, std::move(col_res)); | 456 | 32.4k | } else if (left_is_const && !right_is_const) { | 457 | 27.3k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 27.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 27.3k | vec_res.resize(col_right->size()); | 461 | 27.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 27.3k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 27.3k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 27.3k | col_right->get_data(), vec_res); | 465 | | | 466 | 27.3k | block.replace_by_position(result, std::move(col_res)); | 467 | 27.3k | } | 468 | 60.8k | return Status::OK(); | 469 | 60.8k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13.8k | const ColumnPtr& col_right_ptr) const { | 426 | 13.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13.8k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13.8k | if (!left_is_const && !right_is_const) { | 435 | 255 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 255 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 255 | vec_res.resize(col_left->get_data().size()); | 439 | 255 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 255 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 255 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 255 | vec_res); | 443 | | | 444 | 255 | block.replace_by_position(result, std::move(col_res)); | 445 | 13.5k | } else if (!left_is_const && right_is_const) { | 446 | 12.6k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 12.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 12.6k | vec_res.resize(col_left->size()); | 450 | 12.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 12.6k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 12.6k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 12.6k | col_right->get_element(0), vec_res); | 454 | | | 455 | 12.6k | block.replace_by_position(result, std::move(col_res)); | 456 | 12.6k | } else if (left_is_const && !right_is_const) { | 457 | 963 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 963 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 963 | vec_res.resize(col_right->size()); | 461 | 963 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 963 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 963 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 963 | col_right->get_data(), vec_res); | 465 | | | 466 | 963 | block.replace_by_position(result, std::move(col_res)); | 467 | 963 | } | 468 | 13.8k | return Status::OK(); | 469 | 13.8k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 118 | const ColumnPtr& col_right_ptr) const { | 426 | 118 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 118 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 118 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 118 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 118 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 118 | if (!left_is_const && !right_is_const) { | 435 | 65 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 65 | vec_res.resize(col_left->get_data().size()); | 439 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 65 | vec_res); | 443 | | | 444 | 65 | block.replace_by_position(result, std::move(col_res)); | 445 | 65 | } else if (!left_is_const && right_is_const) { | 446 | 37 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 37 | vec_res.resize(col_left->size()); | 450 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 37 | col_right->get_element(0), vec_res); | 454 | | | 455 | 37 | block.replace_by_position(result, std::move(col_res)); | 456 | 37 | } else if (left_is_const && !right_is_const) { | 457 | 16 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 16 | vec_res.resize(col_right->size()); | 461 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 16 | col_right->get_data(), vec_res); | 465 | | | 466 | 16 | block.replace_by_position(result, std::move(col_res)); | 467 | 16 | } | 468 | 118 | return Status::OK(); | 469 | 118 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 5 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 5 | vec_res.resize(col_left->get_data().size()); | 439 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 5 | vec_res); | 443 | | | 444 | 5 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 13 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13 | vec_res.resize(col_left->size()); | 450 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13 | col_right->get_element(0), vec_res); | 454 | | | 455 | 13 | block.replace_by_position(result, std::move(col_res)); | 456 | 13 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 19 | const ColumnPtr& col_right_ptr) const { | 426 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 19 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 19 | if (!left_is_const && !right_is_const) { | 435 | 13 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 13 | vec_res.resize(col_left->get_data().size()); | 439 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 13 | vec_res); | 443 | | | 444 | 13 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 6 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6 | vec_res.resize(col_left->size()); | 450 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6 | col_right->get_element(0), vec_res); | 454 | | | 455 | 6 | block.replace_by_position(result, std::move(col_res)); | 456 | 6 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 19 | return Status::OK(); | 469 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 96 | const ColumnPtr& col_right_ptr) const { | 426 | 96 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 96 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 96 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 96 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 96 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 96 | if (!left_is_const && !right_is_const) { | 435 | 96 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 96 | vec_res.resize(col_left->get_data().size()); | 439 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 96 | vec_res); | 443 | | | 444 | 96 | block.replace_by_position(result, std::move(col_res)); | 445 | 96 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 96 | return Status::OK(); | 469 | 96 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 912 | const ColumnPtr& col_right_ptr) const { | 426 | 912 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 912 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 912 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 912 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 912 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 912 | if (!left_is_const && !right_is_const) { | 435 | 91 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 91 | vec_res.resize(col_left->get_data().size()); | 439 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 91 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 91 | vec_res); | 443 | | | 444 | 91 | block.replace_by_position(result, std::move(col_res)); | 445 | 821 | } else if (!left_is_const && right_is_const) { | 446 | 821 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 821 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 821 | vec_res.resize(col_left->size()); | 450 | 821 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 821 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 821 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 821 | col_right->get_element(0), vec_res); | 454 | | | 455 | 821 | block.replace_by_position(result, std::move(col_res)); | 456 | 821 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 912 | return Status::OK(); | 469 | 912 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 82 | const ColumnPtr& col_right_ptr) const { | 426 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 82 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 82 | if (!left_is_const && !right_is_const) { | 435 | 47 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 47 | vec_res.resize(col_left->get_data().size()); | 439 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 47 | vec_res); | 443 | | | 444 | 47 | block.replace_by_position(result, std::move(col_res)); | 445 | 47 | } else if (!left_is_const && right_is_const) { | 446 | 35 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 35 | vec_res.resize(col_left->size()); | 450 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 35 | col_right->get_element(0), vec_res); | 454 | | | 455 | 35 | block.replace_by_position(result, std::move(col_res)); | 456 | 35 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 82 | return Status::OK(); | 469 | 82 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 100 | const ColumnPtr& col_right_ptr) const { | 426 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 100 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 100 | if (!left_is_const && !right_is_const) { | 435 | 56 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 56 | vec_res.resize(col_left->get_data().size()); | 439 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 56 | vec_res); | 443 | | | 444 | 56 | block.replace_by_position(result, std::move(col_res)); | 445 | 56 | } else if (!left_is_const && right_is_const) { | 446 | 44 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 44 | vec_res.resize(col_left->size()); | 450 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 44 | col_right->get_element(0), vec_res); | 454 | | | 455 | 44 | block.replace_by_position(result, std::move(col_res)); | 456 | 44 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 100 | return Status::OK(); | 469 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 8 | const ColumnPtr& col_right_ptr) const { | 426 | 8 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 8 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 8 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 8 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 8 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 8 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 8 | } else if (!left_is_const && right_is_const) { | 446 | 8 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 8 | vec_res.resize(col_left->size()); | 450 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 8 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 8 | col_right->get_element(0), vec_res); | 454 | | | 455 | 8 | block.replace_by_position(result, std::move(col_res)); | 456 | 8 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 8 | return Status::OK(); | 469 | 8 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.89k | const ColumnPtr& col_right_ptr) const { | 426 | 2.89k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.89k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.89k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.89k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.89k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.89k | if (!left_is_const && !right_is_const) { | 435 | 2.11k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2.11k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2.11k | vec_res.resize(col_left->get_data().size()); | 439 | 2.11k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2.11k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2.11k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2.11k | vec_res); | 443 | | | 444 | 2.11k | block.replace_by_position(result, std::move(col_res)); | 445 | 2.11k | } else if (!left_is_const && right_is_const) { | 446 | 784 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 784 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 784 | vec_res.resize(col_left->size()); | 450 | 784 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 784 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 784 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 784 | col_right->get_element(0), vec_res); | 454 | | | 455 | 784 | block.replace_by_position(result, std::move(col_res)); | 456 | 784 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.89k | return Status::OK(); | 469 | 2.89k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.48k | const ColumnPtr& col_right_ptr) const { | 426 | 1.48k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.48k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.48k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.48k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.48k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.48k | if (!left_is_const && !right_is_const) { | 435 | 349 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 349 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 349 | vec_res.resize(col_left->get_data().size()); | 439 | 349 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 349 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 349 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 349 | vec_res); | 443 | | | 444 | 349 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.13k | } else if (!left_is_const && right_is_const) { | 446 | 1.02k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.02k | vec_res.resize(col_left->size()); | 450 | 1.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.02k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.02k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.02k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.02k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.02k | } else if (left_is_const && !right_is_const) { | 457 | 106 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 106 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 106 | vec_res.resize(col_right->size()); | 461 | 106 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 106 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 106 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 106 | col_right->get_data(), vec_res); | 465 | | | 466 | 106 | block.replace_by_position(result, std::move(col_res)); | 467 | 106 | } | 468 | 1.48k | return Status::OK(); | 469 | 1.48k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 48 | const ColumnPtr& col_right_ptr) const { | 426 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 48 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 48 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 28 | } else if (!left_is_const && right_is_const) { | 446 | 28 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28 | vec_res.resize(col_left->size()); | 450 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28 | col_right->get_element(0), vec_res); | 454 | | | 455 | 28 | block.replace_by_position(result, std::move(col_res)); | 456 | 28 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 48 | return Status::OK(); | 469 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60 | const ColumnPtr& col_right_ptr) const { | 426 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 40 | } else if (!left_is_const && right_is_const) { | 446 | 40 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 40 | vec_res.resize(col_left->size()); | 450 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 40 | col_right->get_element(0), vec_res); | 454 | | | 455 | 40 | block.replace_by_position(result, std::move(col_res)); | 456 | 40 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 60 | return Status::OK(); | 469 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.45k | const ColumnPtr& col_right_ptr) const { | 426 | 1.45k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.45k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.45k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.45k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.45k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.45k | if (!left_is_const && !right_is_const) { | 435 | 1.33k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.33k | vec_res.resize(col_left->get_data().size()); | 439 | 1.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.33k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.33k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.33k | vec_res); | 443 | | | 444 | 1.33k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.33k | } else if (!left_is_const && right_is_const) { | 446 | 119 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 119 | vec_res.resize(col_left->size()); | 450 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 119 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 119 | col_right->get_element(0), vec_res); | 454 | | | 455 | 119 | block.replace_by_position(result, std::move(col_res)); | 456 | 119 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.45k | return Status::OK(); | 469 | 1.45k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 66 | const ColumnPtr& col_right_ptr) const { | 426 | 66 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 66 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 66 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 66 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 66 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 66 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 66 | } else if (!left_is_const && right_is_const) { | 446 | 66 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 66 | vec_res.resize(col_left->size()); | 450 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 66 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 66 | col_right->get_element(0), vec_res); | 454 | | | 455 | 66 | block.replace_by_position(result, std::move(col_res)); | 456 | 66 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 66 | return Status::OK(); | 469 | 66 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.45k | const ColumnPtr& col_right_ptr) const { | 426 | 1.45k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.45k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.45k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.45k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.45k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.45k | if (!left_is_const && !right_is_const) { | 435 | 42 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 42 | vec_res.resize(col_left->get_data().size()); | 439 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 42 | vec_res); | 443 | | | 444 | 42 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.40k | } else if (!left_is_const && right_is_const) { | 446 | 1.15k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.15k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.15k | vec_res.resize(col_left->size()); | 450 | 1.15k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.15k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.15k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.15k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.15k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.15k | } else if (left_is_const && !right_is_const) { | 457 | 252 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 252 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 252 | vec_res.resize(col_right->size()); | 461 | 252 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 252 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 252 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 252 | col_right->get_data(), vec_res); | 465 | | | 466 | 252 | block.replace_by_position(result, std::move(col_res)); | 467 | 252 | } | 468 | 1.45k | return Status::OK(); | 469 | 1.45k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.83k | const ColumnPtr& col_right_ptr) const { | 426 | 1.83k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.83k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.83k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.83k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.83k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.83k | if (!left_is_const && !right_is_const) { | 435 | 129 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 129 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 129 | vec_res.resize(col_left->get_data().size()); | 439 | 129 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 129 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 129 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 129 | vec_res); | 443 | | | 444 | 129 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.70k | } else if (!left_is_const && right_is_const) { | 446 | 1.46k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.46k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.46k | vec_res.resize(col_left->size()); | 450 | 1.46k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.46k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.46k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.46k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.46k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.46k | } else if (left_is_const && !right_is_const) { | 457 | 240 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 240 | vec_res.resize(col_right->size()); | 461 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 240 | col_right->get_data(), vec_res); | 465 | | | 466 | 240 | block.replace_by_position(result, std::move(col_res)); | 467 | 240 | } | 468 | 1.83k | return Status::OK(); | 469 | 1.83k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 74.3k | const ColumnPtr& col_right_ptr) const { | 426 | 74.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 74.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 74.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 74.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 74.3k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 74.3k | if (!left_is_const && !right_is_const) { | 435 | 79 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 79 | vec_res.resize(col_left->get_data().size()); | 439 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 79 | vec_res); | 443 | | | 444 | 79 | block.replace_by_position(result, std::move(col_res)); | 445 | 74.3k | } else if (!left_is_const && right_is_const) { | 446 | 12.1k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 12.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 12.1k | vec_res.resize(col_left->size()); | 450 | 12.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 12.1k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 12.1k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 12.1k | col_right->get_element(0), vec_res); | 454 | | | 455 | 12.1k | block.replace_by_position(result, std::move(col_res)); | 456 | 62.1k | } else if (left_is_const && !right_is_const) { | 457 | 62.1k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 62.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 62.1k | vec_res.resize(col_right->size()); | 461 | 62.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 62.1k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 62.1k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 62.1k | col_right->get_data(), vec_res); | 465 | | | 466 | 62.1k | block.replace_by_position(result, std::move(col_res)); | 467 | 62.1k | } | 468 | 74.3k | return Status::OK(); | 469 | 74.3k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 8.63k | const ColumnPtr& col_right_ptr) const { | 426 | 8.63k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 8.63k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 8.63k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 8.63k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 8.63k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 8.63k | if (!left_is_const && !right_is_const) { | 435 | 63 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 63 | vec_res.resize(col_left->get_data().size()); | 439 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 63 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 63 | vec_res); | 443 | | | 444 | 63 | block.replace_by_position(result, std::move(col_res)); | 445 | 8.57k | } else if (!left_is_const && right_is_const) { | 446 | 8.04k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 8.04k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 8.04k | vec_res.resize(col_left->size()); | 450 | 8.04k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 8.04k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 8.04k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 8.04k | col_right->get_element(0), vec_res); | 454 | | | 455 | 8.04k | block.replace_by_position(result, std::move(col_res)); | 456 | 8.04k | } else if (left_is_const && !right_is_const) { | 457 | 527 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 527 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 527 | vec_res.resize(col_right->size()); | 461 | 527 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 527 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 527 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 527 | col_right->get_data(), vec_res); | 465 | | | 466 | 527 | block.replace_by_position(result, std::move(col_res)); | 467 | 527 | } | 468 | 8.63k | return Status::OK(); | 469 | 8.63k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 256 | const ColumnPtr& col_right_ptr) const { | 426 | 256 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 256 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 256 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 256 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 256 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 256 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 253 | } else if (!left_is_const && right_is_const) { | 446 | 201 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 201 | vec_res.resize(col_left->size()); | 450 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 201 | col_right->get_element(0), vec_res); | 454 | | | 455 | 201 | block.replace_by_position(result, std::move(col_res)); | 456 | 201 | } else if (left_is_const && !right_is_const) { | 457 | 52 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 52 | vec_res.resize(col_right->size()); | 461 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 52 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 52 | col_right->get_data(), vec_res); | 465 | | | 466 | 52 | block.replace_by_position(result, std::move(col_res)); | 467 | 52 | } | 468 | 256 | return Status::OK(); | 469 | 256 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 3 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3 | vec_res.resize(col_left->size()); | 450 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3 | col_right->get_element(0), vec_res); | 454 | | | 455 | 3 | block.replace_by_position(result, std::move(col_res)); | 456 | 3 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 220 | const ColumnPtr& col_right_ptr) const { | 426 | 220 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 220 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 220 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 220 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 220 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 220 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 200 | } else if (!left_is_const && right_is_const) { | 446 | 200 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 200 | vec_res.resize(col_left->size()); | 450 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 200 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 200 | col_right->get_element(0), vec_res); | 454 | | | 455 | 200 | block.replace_by_position(result, std::move(col_res)); | 456 | 200 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 220 | return Status::OK(); | 469 | 220 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.59k | const ColumnPtr& col_right_ptr) const { | 426 | 1.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.59k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.59k | if (!left_is_const && !right_is_const) { | 435 | 31 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 31 | vec_res.resize(col_left->get_data().size()); | 439 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 31 | vec_res); | 443 | | | 444 | 31 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.56k | } else if (!left_is_const && right_is_const) { | 446 | 1.56k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.56k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.56k | vec_res.resize(col_left->size()); | 450 | 1.56k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.56k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.56k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.56k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.56k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.56k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.59k | return Status::OK(); | 469 | 1.59k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 185 | const ColumnPtr& col_right_ptr) const { | 426 | 185 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 185 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 185 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 185 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 185 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 185 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 173 | } else if (!left_is_const && right_is_const) { | 446 | 173 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 173 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 173 | vec_res.resize(col_left->size()); | 450 | 173 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 173 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 173 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 173 | col_right->get_element(0), vec_res); | 454 | | | 455 | 173 | block.replace_by_position(result, std::move(col_res)); | 456 | 173 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 185 | return Status::OK(); | 469 | 185 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.48k | const ColumnPtr& col_right_ptr) const { | 426 | 1.48k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.48k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.48k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.48k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.48k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.48k | if (!left_is_const && !right_is_const) { | 435 | 31 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 31 | vec_res.resize(col_left->get_data().size()); | 439 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 31 | vec_res); | 443 | | | 444 | 31 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.44k | } else if (!left_is_const && right_is_const) { | 446 | 1.44k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.44k | vec_res.resize(col_left->size()); | 450 | 1.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.44k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.44k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.44k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.44k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.44k | } else if (left_is_const && !right_is_const) { | 457 | 6 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 6 | vec_res.resize(col_right->size()); | 461 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 6 | col_right->get_data(), vec_res); | 465 | | | 466 | 6 | block.replace_by_position(result, std::move(col_res)); | 467 | 6 | } | 468 | 1.48k | return Status::OK(); | 469 | 1.48k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 585 | const ColumnPtr& col_right_ptr) const { | 426 | 585 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 585 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 585 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 585 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 585 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 585 | if (!left_is_const && !right_is_const) { | 435 | 66 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 66 | vec_res.resize(col_left->get_data().size()); | 439 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 66 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 66 | vec_res); | 443 | | | 444 | 66 | block.replace_by_position(result, std::move(col_res)); | 445 | 519 | } else if (!left_is_const && right_is_const) { | 446 | 519 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 519 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 519 | vec_res.resize(col_left->size()); | 450 | 519 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 519 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 519 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 519 | col_right->get_element(0), vec_res); | 454 | | | 455 | 519 | block.replace_by_position(result, std::move(col_res)); | 456 | 519 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 585 | return Status::OK(); | 469 | 585 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 64 | const ColumnPtr& col_right_ptr) const { | 426 | 64 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 64 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 64 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 64 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 64 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 64 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 64 | } else if (!left_is_const && right_is_const) { | 446 | 64 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 64 | vec_res.resize(col_left->size()); | 450 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 64 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 64 | col_right->get_element(0), vec_res); | 454 | | | 455 | 64 | block.replace_by_position(result, std::move(col_res)); | 456 | 64 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 64 | return Status::OK(); | 469 | 64 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 62 | const ColumnPtr& col_right_ptr) const { | 426 | 62 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 62 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 62 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 62 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 62 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 62 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 62 | } else if (!left_is_const && right_is_const) { | 446 | 62 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 62 | vec_res.resize(col_left->size()); | 450 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 62 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 62 | col_right->get_element(0), vec_res); | 454 | | | 455 | 62 | block.replace_by_position(result, std::move(col_res)); | 456 | 62 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 62 | return Status::OK(); | 469 | 62 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 23.7k | const ColumnPtr& col_right_ptr) const { | 426 | 23.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 23.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 23.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 23.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 23.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 23.7k | if (!left_is_const && !right_is_const) { | 435 | 49 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 49 | vec_res.resize(col_left->get_data().size()); | 439 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 49 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 49 | vec_res); | 443 | | | 444 | 49 | block.replace_by_position(result, std::move(col_res)); | 445 | 23.7k | } else if (!left_is_const && right_is_const) { | 446 | 23.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 23.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 23.7k | vec_res.resize(col_left->size()); | 450 | 23.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 23.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 23.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 23.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 23.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 23.7k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 23.7k | return Status::OK(); | 469 | 23.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 501 | const ColumnPtr& col_right_ptr) const { | 426 | 501 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 501 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 501 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 501 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 501 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 501 | if (!left_is_const && !right_is_const) { | 435 | 8 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 8 | vec_res.resize(col_left->get_data().size()); | 439 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 8 | vec_res); | 443 | | | 444 | 8 | block.replace_by_position(result, std::move(col_res)); | 445 | 493 | } else if (!left_is_const && right_is_const) { | 446 | 493 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 493 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 493 | vec_res.resize(col_left->size()); | 450 | 493 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 493 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 493 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 493 | col_right->get_element(0), vec_res); | 454 | | | 455 | 493 | block.replace_by_position(result, std::move(col_res)); | 456 | 493 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 501 | return Status::OK(); | 469 | 501 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 50 | const ColumnPtr& col_right_ptr) const { | 426 | 50 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 50 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 50 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 50 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 50 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 50 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 50 | } else if (!left_is_const && right_is_const) { | 446 | 50 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 50 | vec_res.resize(col_left->size()); | 450 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 50 | col_right->get_element(0), vec_res); | 454 | | | 455 | 50 | block.replace_by_position(result, std::move(col_res)); | 456 | 50 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 50 | return Status::OK(); | 469 | 50 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 11 | const ColumnPtr& col_right_ptr) const { | 426 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 11 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 11 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 11 | return Status::OK(); | 469 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 218 | const ColumnPtr& col_right_ptr) const { | 426 | 218 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 218 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 218 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 218 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 218 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 218 | if (!left_is_const && !right_is_const) { | 435 | 50 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 50 | vec_res.resize(col_left->get_data().size()); | 439 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 50 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 50 | vec_res); | 443 | | | 444 | 50 | block.replace_by_position(result, std::move(col_res)); | 445 | 168 | } else if (!left_is_const && right_is_const) { | 446 | 168 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 168 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 168 | vec_res.resize(col_left->size()); | 450 | 168 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 168 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 168 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 168 | col_right->get_element(0), vec_res); | 454 | | | 455 | 168 | block.replace_by_position(result, std::move(col_res)); | 456 | 168 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 218 | return Status::OK(); | 469 | 218 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 161 | const ColumnPtr& col_right_ptr) const { | 426 | 161 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 161 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 161 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 161 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 161 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 161 | if (!left_is_const && !right_is_const) { | 435 | 21 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 21 | vec_res.resize(col_left->get_data().size()); | 439 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 21 | vec_res); | 443 | | | 444 | 21 | block.replace_by_position(result, std::move(col_res)); | 445 | 140 | } else if (!left_is_const && right_is_const) { | 446 | 140 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 140 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 140 | vec_res.resize(col_left->size()); | 450 | 140 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 140 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 140 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 140 | col_right->get_element(0), vec_res); | 454 | | | 455 | 140 | block.replace_by_position(result, std::move(col_res)); | 456 | 140 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 161 | return Status::OK(); | 469 | 161 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 101 | const ColumnPtr& col_right_ptr) const { | 426 | 101 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 101 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 101 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 101 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 101 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 101 | if (!left_is_const && !right_is_const) { | 435 | 101 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 101 | vec_res.resize(col_left->get_data().size()); | 439 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 101 | vec_res); | 443 | | | 444 | 101 | block.replace_by_position(result, std::move(col_res)); | 445 | 101 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 101 | return Status::OK(); | 469 | 101 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.37k | const ColumnPtr& col_right_ptr) const { | 426 | 2.37k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.37k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.37k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.37k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.37k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.37k | if (!left_is_const && !right_is_const) { | 435 | 1.93k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.93k | vec_res.resize(col_left->get_data().size()); | 439 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.93k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.93k | vec_res); | 443 | | | 444 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.93k | } else if (!left_is_const && right_is_const) { | 446 | 437 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 437 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 437 | vec_res.resize(col_left->size()); | 450 | 437 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 437 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 437 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 437 | col_right->get_element(0), vec_res); | 454 | | | 455 | 437 | block.replace_by_position(result, std::move(col_res)); | 456 | 437 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.37k | return Status::OK(); | 469 | 2.37k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 492 | const ColumnPtr& col_right_ptr) const { | 426 | 492 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 492 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 492 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 492 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 492 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 492 | if (!left_is_const && !right_is_const) { | 435 | 263 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 263 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 263 | vec_res.resize(col_left->get_data().size()); | 439 | 263 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 263 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 263 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 263 | vec_res); | 443 | | | 444 | 263 | block.replace_by_position(result, std::move(col_res)); | 445 | 263 | } else if (!left_is_const && right_is_const) { | 446 | 229 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 229 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 229 | vec_res.resize(col_left->size()); | 450 | 229 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 229 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 229 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 229 | col_right->get_element(0), vec_res); | 454 | | | 455 | 229 | block.replace_by_position(result, std::move(col_res)); | 456 | 229 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 492 | return Status::OK(); | 469 | 492 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 1 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1 | vec_res.resize(col_left->size()); | 450 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1 | col_right->get_element(0), vec_res); | 454 | | | 455 | 1 | block.replace_by_position(result, std::move(col_res)); | 456 | 1 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.19k | const ColumnPtr& col_right_ptr) const { | 426 | 2.19k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.19k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.19k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.19k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.19k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.19k | if (!left_is_const && !right_is_const) { | 435 | 161 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 161 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 161 | vec_res.resize(col_left->get_data().size()); | 439 | 161 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 161 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 161 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 161 | vec_res); | 443 | | | 444 | 161 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.03k | } else if (!left_is_const && right_is_const) { | 446 | 1.77k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.77k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.77k | vec_res.resize(col_left->size()); | 450 | 1.77k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.77k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.77k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.77k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.77k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.77k | } else if (left_is_const && !right_is_const) { | 457 | 264 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 264 | vec_res.resize(col_right->size()); | 461 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 264 | col_right->get_data(), vec_res); | 465 | | | 466 | 264 | block.replace_by_position(result, std::move(col_res)); | 467 | 264 | } | 468 | 2.19k | return Status::OK(); | 469 | 2.19k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 276 | const ColumnPtr& col_right_ptr) const { | 426 | 276 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 276 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 276 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 276 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 276 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 276 | if (!left_is_const && !right_is_const) { | 435 | 134 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 134 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 134 | vec_res.resize(col_left->get_data().size()); | 439 | 134 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 134 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 134 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 134 | vec_res); | 443 | | | 444 | 134 | block.replace_by_position(result, std::move(col_res)); | 445 | 142 | } else if (!left_is_const && right_is_const) { | 446 | 142 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 142 | vec_res.resize(col_left->size()); | 450 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 142 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 142 | col_right->get_element(0), vec_res); | 454 | | | 455 | 142 | block.replace_by_position(result, std::move(col_res)); | 456 | 142 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 276 | return Status::OK(); | 469 | 276 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.30k | const ColumnPtr& col_right_ptr) const { | 426 | 2.30k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.30k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.30k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.30k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.30k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.30k | if (!left_is_const && !right_is_const) { | 435 | 176 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 176 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 176 | vec_res.resize(col_left->get_data().size()); | 439 | 176 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 176 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 176 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 176 | vec_res); | 443 | | | 444 | 176 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.13k | } else if (!left_is_const && right_is_const) { | 446 | 2.01k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.01k | vec_res.resize(col_left->size()); | 450 | 2.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.01k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.01k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.01k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.01k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.01k | } else if (left_is_const && !right_is_const) { | 457 | 121 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 121 | vec_res.resize(col_right->size()); | 461 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 121 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 121 | col_right->get_data(), vec_res); | 465 | | | 466 | 121 | block.replace_by_position(result, std::move(col_res)); | 467 | 121 | } | 468 | 2.30k | return Status::OK(); | 469 | 2.30k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.37k | const ColumnPtr& col_right_ptr) const { | 426 | 1.37k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.37k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.37k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.37k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.37k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.37k | if (!left_is_const && !right_is_const) { | 435 | 224 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 224 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 224 | vec_res.resize(col_left->get_data().size()); | 439 | 224 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 224 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 224 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 224 | vec_res); | 443 | | | 444 | 224 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.14k | } else if (!left_is_const && right_is_const) { | 446 | 1.06k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.06k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.06k | vec_res.resize(col_left->size()); | 450 | 1.06k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.06k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.06k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.06k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.06k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.06k | } else if (left_is_const && !right_is_const) { | 457 | 84 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 84 | vec_res.resize(col_right->size()); | 461 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 84 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 84 | col_right->get_data(), vec_res); | 465 | | | 466 | 84 | block.replace_by_position(result, std::move(col_res)); | 467 | 84 | } | 468 | 1.37k | return Status::OK(); | 469 | 1.37k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 305 | const ColumnPtr& col_right_ptr) const { | 426 | 305 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 305 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 305 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 305 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 305 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 305 | if (!left_is_const && !right_is_const) { | 435 | 149 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 149 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 149 | vec_res.resize(col_left->get_data().size()); | 439 | 149 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 149 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 149 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 149 | vec_res); | 443 | | | 444 | 149 | block.replace_by_position(result, std::move(col_res)); | 445 | 156 | } else if (!left_is_const && right_is_const) { | 446 | 88 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 88 | vec_res.resize(col_left->size()); | 450 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 88 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 88 | col_right->get_element(0), vec_res); | 454 | | | 455 | 88 | block.replace_by_position(result, std::move(col_res)); | 456 | 88 | } else if (left_is_const && !right_is_const) { | 457 | 68 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 68 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 68 | vec_res.resize(col_right->size()); | 461 | 68 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 68 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 68 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 68 | col_right->get_data(), vec_res); | 465 | | | 466 | 68 | block.replace_by_position(result, std::move(col_res)); | 467 | 68 | } | 468 | 305 | return Status::OK(); | 469 | 305 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16 | const ColumnPtr& col_right_ptr) const { | 426 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16 | return Status::OK(); | 469 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 181 | const ColumnPtr& col_right_ptr) const { | 426 | 181 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 181 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 181 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 181 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 181 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 181 | if (!left_is_const && !right_is_const) { | 435 | 155 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 155 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 155 | vec_res.resize(col_left->get_data().size()); | 439 | 155 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 155 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 155 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 155 | vec_res); | 443 | | | 444 | 155 | block.replace_by_position(result, std::move(col_res)); | 445 | 155 | } else if (!left_is_const && right_is_const) { | 446 | 26 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26 | vec_res.resize(col_left->size()); | 450 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26 | col_right->get_element(0), vec_res); | 454 | | | 455 | 26 | block.replace_by_position(result, std::move(col_res)); | 456 | 26 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 181 | return Status::OK(); | 469 | 181 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 359 | const ColumnPtr& col_right_ptr) const { | 426 | 359 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 359 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 359 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 359 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 359 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 359 | if (!left_is_const && !right_is_const) { | 435 | 146 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 146 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 146 | vec_res.resize(col_left->get_data().size()); | 439 | 146 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 146 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 146 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 146 | vec_res); | 443 | | | 444 | 146 | block.replace_by_position(result, std::move(col_res)); | 445 | 213 | } else if (!left_is_const && right_is_const) { | 446 | 213 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 213 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 213 | vec_res.resize(col_left->size()); | 450 | 213 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 213 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 213 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 213 | col_right->get_element(0), vec_res); | 454 | | | 455 | 213 | block.replace_by_position(result, std::move(col_res)); | 456 | 213 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 359 | return Status::OK(); | 469 | 359 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 204 | const ColumnPtr& col_right_ptr) const { | 426 | 204 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 204 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 204 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 204 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 204 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 204 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 192 | } else if (!left_is_const && right_is_const) { | 446 | 192 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 192 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 192 | vec_res.resize(col_left->size()); | 450 | 192 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 192 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 192 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 192 | col_right->get_element(0), vec_res); | 454 | | | 455 | 192 | block.replace_by_position(result, std::move(col_res)); | 456 | 192 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 204 | return Status::OK(); | 469 | 204 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13.0k | const ColumnPtr& col_right_ptr) const { | 426 | 13.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13.0k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13.0k | if (!left_is_const && !right_is_const) { | 435 | 434 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 434 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 434 | vec_res.resize(col_left->get_data().size()); | 439 | 434 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 434 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 434 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 434 | vec_res); | 443 | | | 444 | 434 | block.replace_by_position(result, std::move(col_res)); | 445 | 12.5k | } else if (!left_is_const && right_is_const) { | 446 | 12.5k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 12.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 12.5k | vec_res.resize(col_left->size()); | 450 | 12.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 12.5k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 12.5k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 12.5k | col_right->get_element(0), vec_res); | 454 | | | 455 | 12.5k | block.replace_by_position(result, std::move(col_res)); | 456 | 12.5k | } else if (left_is_const && !right_is_const) { | 457 | 5 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 5 | vec_res.resize(col_right->size()); | 461 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 5 | col_right->get_data(), vec_res); | 465 | | | 466 | 5 | block.replace_by_position(result, std::move(col_res)); | 467 | 5 | } | 468 | 13.0k | return Status::OK(); | 469 | 13.0k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 376 | const ColumnPtr& col_right_ptr) const { | 426 | 376 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 376 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 376 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 376 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 376 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 376 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 316 | } else if (!left_is_const && right_is_const) { | 446 | 316 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 316 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 316 | vec_res.resize(col_left->size()); | 450 | 316 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 316 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 316 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 316 | col_right->get_element(0), vec_res); | 454 | | | 455 | 316 | block.replace_by_position(result, std::move(col_res)); | 456 | 316 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 376 | return Status::OK(); | 469 | 376 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 68 | const ColumnPtr& col_right_ptr) const { | 426 | 68 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 68 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 68 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 68 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 68 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 68 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 67 | } else if (!left_is_const && right_is_const) { | 446 | 67 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 67 | vec_res.resize(col_left->size()); | 450 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 67 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 67 | col_right->get_element(0), vec_res); | 454 | | | 455 | 67 | block.replace_by_position(result, std::move(col_res)); | 456 | 67 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 68 | return Status::OK(); | 469 | 68 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 77 | const ColumnPtr& col_right_ptr) const { | 426 | 77 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 77 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 77 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 77 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 77 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 77 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 78 | } else if (!left_is_const && right_is_const) { | 446 | 78 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 78 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 78 | vec_res.resize(col_left->size()); | 450 | 78 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 78 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 78 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 78 | col_right->get_element(0), vec_res); | 454 | | | 455 | 78 | block.replace_by_position(result, std::move(col_res)); | 456 | 18.4E | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 77 | return Status::OK(); | 469 | 77 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 32.3k | const ColumnPtr& col_right_ptr) const { | 426 | 32.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 32.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 32.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 32.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 32.3k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 32.3k | if (!left_is_const && !right_is_const) { | 435 | 53 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 53 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 53 | vec_res.resize(col_left->get_data().size()); | 439 | 53 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 53 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 53 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 53 | vec_res); | 443 | | | 444 | 53 | block.replace_by_position(result, std::move(col_res)); | 445 | 32.2k | } else if (!left_is_const && right_is_const) { | 446 | 32.0k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 32.0k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 32.0k | vec_res.resize(col_left->size()); | 450 | 32.0k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 32.0k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 32.0k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 32.0k | col_right->get_element(0), vec_res); | 454 | | | 455 | 32.0k | block.replace_by_position(result, std::move(col_res)); | 456 | 32.0k | } else if (left_is_const && !right_is_const) { | 457 | 182 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 182 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 182 | vec_res.resize(col_right->size()); | 461 | 182 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 182 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 182 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 182 | col_right->get_data(), vec_res); | 465 | | | 466 | 182 | block.replace_by_position(result, std::move(col_res)); | 467 | 182 | } | 468 | 32.3k | return Status::OK(); | 469 | 32.3k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 796 | const ColumnPtr& col_right_ptr) const { | 426 | 796 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 796 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 796 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 796 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 796 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 796 | if (!left_is_const && !right_is_const) { | 435 | 69 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 69 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 69 | vec_res.resize(col_left->get_data().size()); | 439 | 69 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 69 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 69 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 69 | vec_res); | 443 | | | 444 | 69 | block.replace_by_position(result, std::move(col_res)); | 445 | 727 | } else if (!left_is_const && right_is_const) { | 446 | 679 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 679 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 679 | vec_res.resize(col_left->size()); | 450 | 679 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 679 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 679 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 679 | col_right->get_element(0), vec_res); | 454 | | | 455 | 679 | block.replace_by_position(result, std::move(col_res)); | 456 | 679 | } else if (left_is_const && !right_is_const) { | 457 | 48 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 48 | vec_res.resize(col_right->size()); | 461 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 48 | col_right->get_data(), vec_res); | 465 | | | 466 | 48 | block.replace_by_position(result, std::move(col_res)); | 467 | 48 | } | 468 | 796 | return Status::OK(); | 469 | 796 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 58 | const ColumnPtr& col_right_ptr) const { | 426 | 58 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 58 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 58 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 58 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 58 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 58 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 58 | } else if (!left_is_const && right_is_const) { | 446 | 58 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 58 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 58 | vec_res.resize(col_left->size()); | 450 | 58 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 58 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 58 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 58 | col_right->get_element(0), vec_res); | 454 | | | 455 | 58 | block.replace_by_position(result, std::move(col_res)); | 456 | 58 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 58 | return Status::OK(); | 469 | 58 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 10 | const ColumnPtr& col_right_ptr) const { | 426 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 10 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 10 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 10 | return Status::OK(); | 469 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 214 | const ColumnPtr& col_right_ptr) const { | 426 | 214 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 214 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 214 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 214 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 214 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 214 | if (!left_is_const && !right_is_const) { | 435 | 50 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 50 | vec_res.resize(col_left->get_data().size()); | 439 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 50 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 50 | vec_res); | 443 | | | 444 | 50 | block.replace_by_position(result, std::move(col_res)); | 445 | 164 | } else if (!left_is_const && right_is_const) { | 446 | 164 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 164 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 164 | vec_res.resize(col_left->size()); | 450 | 164 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 164 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 164 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 164 | col_right->get_element(0), vec_res); | 454 | | | 455 | 164 | block.replace_by_position(result, std::move(col_res)); | 456 | 164 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 214 | return Status::OK(); | 469 | 214 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 156 | const ColumnPtr& col_right_ptr) const { | 426 | 156 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 156 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 156 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 156 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 156 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 156 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 136 | } else if (!left_is_const && right_is_const) { | 446 | 135 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 135 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 135 | vec_res.resize(col_left->size()); | 450 | 135 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 135 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 135 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 135 | col_right->get_element(0), vec_res); | 454 | | | 455 | 135 | block.replace_by_position(result, std::move(col_res)); | 456 | 135 | } else if (left_is_const && !right_is_const) { | 457 | 1 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1 | vec_res.resize(col_right->size()); | 461 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1 | col_right->get_data(), vec_res); | 465 | | | 466 | 1 | block.replace_by_position(result, std::move(col_res)); | 467 | 1 | } | 468 | 156 | return Status::OK(); | 469 | 156 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
470 | | |
471 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
472 | 15.5k | const ColumnWithTypeAndName& col_right) const { |
473 | 15.5k | auto call = [&](const auto& type) -> bool { |
474 | 15.5k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 15.5k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 15.5k | block, result, col_left, col_right); |
477 | 15.5k | return true; |
478 | 15.5k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 247 | auto call = [&](const auto& type) -> bool { | 474 | 247 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 247 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 247 | block, result, col_left, col_right); | 477 | 247 | return true; | 478 | 247 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 243 | auto call = [&](const auto& type) -> bool { | 474 | 243 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 243 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 243 | block, result, col_left, col_right); | 477 | 243 | return true; | 478 | 243 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.22k | auto call = [&](const auto& type) -> bool { | 474 | 1.22k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.22k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.22k | block, result, col_left, col_right); | 477 | 1.22k | return true; | 478 | 1.22k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 34 | auto call = [&](const auto& type) -> bool { | 474 | 34 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 34 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 34 | block, result, col_left, col_right); | 477 | 34 | return true; | 478 | 34 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 63 | auto call = [&](const auto& type) -> bool { | 474 | 63 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 63 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 63 | block, result, col_left, col_right); | 477 | 63 | return true; | 478 | 63 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 176 | auto call = [&](const auto& type) -> bool { | 474 | 176 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 176 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 176 | block, result, col_left, col_right); | 477 | 176 | return true; | 478 | 176 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 28 | auto call = [&](const auto& type) -> bool { | 474 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 28 | block, result, col_left, col_right); | 477 | 28 | return true; | 478 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 8.53k | auto call = [&](const auto& type) -> bool { | 474 | 8.53k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 8.53k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 8.53k | block, result, col_left, col_right); | 477 | 8.53k | return true; | 478 | 8.53k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.01k | auto call = [&](const auto& type) -> bool { | 474 | 1.01k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.01k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.01k | block, result, col_left, col_right); | 477 | 1.01k | return true; | 478 | 1.01k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 2 | auto call = [&](const auto& type) -> bool { | 474 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2 | block, result, col_left, col_right); | 477 | 2 | return true; | 478 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 5 | auto call = [&](const auto& type) -> bool { | 474 | 5 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 5 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 5 | block, result, col_left, col_right); | 477 | 5 | return true; | 478 | 5 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 333 | auto call = [&](const auto& type) -> bool { | 474 | 333 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 333 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 333 | block, result, col_left, col_right); | 477 | 333 | return true; | 478 | 333 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 88 | auto call = [&](const auto& type) -> bool { | 474 | 88 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 88 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 88 | block, result, col_left, col_right); | 477 | 88 | return true; | 478 | 88 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 21 | auto call = [&](const auto& type) -> bool { | 474 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 21 | block, result, col_left, col_right); | 477 | 21 | return true; | 478 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 203 | auto call = [&](const auto& type) -> bool { | 474 | 203 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 203 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 203 | block, result, col_left, col_right); | 477 | 203 | return true; | 478 | 203 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 216 | auto call = [&](const auto& type) -> bool { | 474 | 216 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 216 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 216 | block, result, col_left, col_right); | 477 | 216 | return true; | 478 | 216 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 527 | auto call = [&](const auto& type) -> bool { | 474 | 527 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 527 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 527 | block, result, col_left, col_right); | 477 | 527 | return true; | 478 | 527 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 1 | auto call = [&](const auto& type) -> bool { | 474 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1 | block, result, col_left, col_right); | 477 | 1 | return true; | 478 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 4 | auto call = [&](const auto& type) -> bool { | 474 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 4 | block, result, col_left, col_right); | 477 | 4 | return true; | 478 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 2.00k | auto call = [&](const auto& type) -> bool { | 474 | 2.00k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2.00k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2.00k | block, result, col_left, col_right); | 477 | 2.00k | return true; | 478 | 2.00k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 527 | auto call = [&](const auto& type) -> bool { | 474 | 527 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 527 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 527 | block, result, col_left, col_right); | 477 | 527 | return true; | 478 | 527 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 16 | auto call = [&](const auto& type) -> bool { | 474 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16 | block, result, col_left, col_right); | 477 | 16 | return true; | 478 | 16 | }; |
|
479 | | |
480 | 15.5k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
481 | 0 | return Status::RuntimeError( |
482 | 0 | "type of left column {} is not equal to type of right column {}", |
483 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
484 | 0 | } |
485 | | |
486 | 15.5k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
488 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
489 | 0 | } |
490 | 15.5k | return Status::OK(); |
491 | 15.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.74k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.74k | auto call = [&](const auto& type) -> bool { | 474 | 1.74k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.74k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.74k | block, result, col_left, col_right); | 477 | 1.74k | return true; | 478 | 1.74k | }; | 479 | | | 480 | 1.74k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.74k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.74k | return Status::OK(); | 491 | 1.74k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 269 | const ColumnWithTypeAndName& col_right) const { | 473 | 269 | auto call = [&](const auto& type) -> bool { | 474 | 269 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 269 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 269 | block, result, col_left, col_right); | 477 | 269 | return true; | 478 | 269 | }; | 479 | | | 480 | 269 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 269 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 269 | return Status::OK(); | 491 | 269 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 9.57k | const ColumnWithTypeAndName& col_right) const { | 473 | 9.57k | auto call = [&](const auto& type) -> bool { | 474 | 9.57k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 9.57k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 9.57k | block, result, col_left, col_right); | 477 | 9.57k | return true; | 478 | 9.57k | }; | 479 | | | 480 | 9.57k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 9.57k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 9.57k | return Status::OK(); | 491 | 9.57k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 447 | const ColumnWithTypeAndName& col_right) const { | 473 | 447 | auto call = [&](const auto& type) -> bool { | 474 | 447 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 447 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 447 | block, result, col_left, col_right); | 477 | 447 | return true; | 478 | 447 | }; | 479 | | | 480 | 447 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 447 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 447 | return Status::OK(); | 491 | 447 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 947 | const ColumnWithTypeAndName& col_right) const { | 473 | 947 | auto call = [&](const auto& type) -> bool { | 474 | 947 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 947 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 947 | block, result, col_left, col_right); | 477 | 947 | return true; | 478 | 947 | }; | 479 | | | 480 | 947 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 947 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 947 | return Status::OK(); | 491 | 947 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 2.55k | const ColumnWithTypeAndName& col_right) const { | 473 | 2.55k | auto call = [&](const auto& type) -> bool { | 474 | 2.55k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2.55k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2.55k | block, result, col_left, col_right); | 477 | 2.55k | return true; | 478 | 2.55k | }; | 479 | | | 480 | 2.55k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 2.55k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 2.55k | return Status::OK(); | 491 | 2.55k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
494 | 26.6k | const IColumn* c1) const { |
495 | 26.6k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
496 | 26.6k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
497 | 26.6k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
498 | 26.6k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
499 | 26.6k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
501 | 0 | c0->get_name(), c1->get_name(), name); |
502 | 0 | } |
503 | 26.6k | DCHECK(!(c0_const && c1_const)); |
504 | 26.6k | const ColumnString::Chars* c0_const_chars = nullptr; |
505 | 26.6k | const ColumnString::Chars* c1_const_chars = nullptr; |
506 | 26.6k | ColumnString::Offset c0_const_size = 0; |
507 | 26.6k | ColumnString::Offset c1_const_size = 0; |
508 | | |
509 | 26.6k | if (c0_const) { |
510 | 6 | const ColumnString* c0_const_string = |
511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
512 | | |
513 | 6 | if (c0_const_string) { |
514 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
516 | 6 | } else { |
517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
518 | 0 | c0->get_name(), name); |
519 | 0 | } |
520 | 6 | } |
521 | | |
522 | 26.6k | if (c1_const) { |
523 | 24.5k | const ColumnString* c1_const_string = |
524 | 24.5k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 24.5k | if (c1_const_string) { |
527 | 24.5k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 24.5k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 18.4E | } else { |
530 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 18.4E | c1->get_name(), name); |
532 | 18.4E | } |
533 | 24.5k | } |
534 | | |
535 | 26.6k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
536 | | |
537 | 26.6k | auto c_res = ColumnUInt8::create(); |
538 | 26.6k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
539 | 26.6k | vec_res.resize(c0->size()); |
540 | | |
541 | 26.6k | if (c0_string && c1_string) { |
542 | 2.12k | StringImpl::string_vector_string_vector( |
543 | 2.12k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 2.12k | c1_string->get_offsets(), vec_res); |
545 | 24.5k | } else if (c0_string && c1_const) { |
546 | 24.5k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 24.5k | *c1_const_chars, c1_const_size, vec_res); |
548 | 24.5k | } else if (c0_const && c1_string) { |
549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
551 | 6 | vec_res); |
552 | 6 | } else { |
553 | 2 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
554 | 2 | c0->get_name(), c1->get_name(), name); |
555 | 2 | } |
556 | 26.6k | block.replace_by_position(result, std::move(c_res)); |
557 | 26.6k | return Status::OK(); |
558 | 26.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 22.8k | const IColumn* c1) const { | 495 | 22.8k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 22.8k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 22.8k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 22.8k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 22.8k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 22.8k | DCHECK(!(c0_const && c1_const)); | 504 | 22.8k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 22.8k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 22.8k | ColumnString::Offset c0_const_size = 0; | 507 | 22.8k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 22.8k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 22.8k | if (c1_const) { | 523 | 21.4k | const ColumnString* c1_const_string = | 524 | 21.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 21.4k | if (c1_const_string) { | 527 | 21.4k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 21.4k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 18.4E | } else { | 530 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 18.4E | c1->get_name(), name); | 532 | 18.4E | } | 533 | 21.4k | } | 534 | | | 535 | 22.8k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 22.8k | auto c_res = ColumnUInt8::create(); | 538 | 22.8k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 22.8k | vec_res.resize(c0->size()); | 540 | | | 541 | 22.8k | if (c0_string && c1_string) { | 542 | 1.37k | StringImpl::string_vector_string_vector( | 543 | 1.37k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 1.37k | c1_string->get_offsets(), vec_res); | 545 | 21.4k | } else if (c0_string && c1_const) { | 546 | 21.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 21.4k | *c1_const_chars, c1_const_size, vec_res); | 548 | 21.4k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 2 | } else { | 553 | 2 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 2 | c0->get_name(), c1->get_name(), name); | 555 | 2 | } | 556 | 22.8k | block.replace_by_position(result, std::move(c_res)); | 557 | 22.8k | return Status::OK(); | 558 | 22.8k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 1.48k | const IColumn* c1) const { | 495 | 1.48k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 1.48k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 1.48k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 1.48k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 1.48k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 1.48k | DCHECK(!(c0_const && c1_const)); | 504 | 1.48k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 1.48k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 1.48k | ColumnString::Offset c0_const_size = 0; | 507 | 1.48k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 1.48k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 1.48k | if (c1_const) { | 523 | 1.43k | const ColumnString* c1_const_string = | 524 | 1.43k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 1.43k | if (c1_const_string) { | 527 | 1.43k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 1.43k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 1.43k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 1.43k | } | 534 | | | 535 | 1.48k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 1.48k | auto c_res = ColumnUInt8::create(); | 538 | 1.48k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 1.48k | vec_res.resize(c0->size()); | 540 | | | 541 | 1.48k | if (c0_string && c1_string) { | 542 | 52 | StringImpl::string_vector_string_vector( | 543 | 52 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 52 | c1_string->get_offsets(), vec_res); | 545 | 1.43k | } else if (c0_string && c1_const) { | 546 | 1.43k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 1.43k | *c1_const_chars, c1_const_size, vec_res); | 548 | 1.43k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 1.48k | block.replace_by_position(result, std::move(c_res)); | 557 | 1.48k | return Status::OK(); | 558 | 1.48k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 196 | const IColumn* c1) const { | 495 | 196 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 196 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 196 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 196 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 196 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 196 | DCHECK(!(c0_const && c1_const)); | 504 | 196 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 196 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 196 | ColumnString::Offset c0_const_size = 0; | 507 | 196 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 196 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 196 | if (c1_const) { | 523 | 194 | const ColumnString* c1_const_string = | 524 | 194 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 194 | if (c1_const_string) { | 527 | 194 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 194 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 194 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 194 | } | 534 | | | 535 | 196 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 196 | auto c_res = ColumnUInt8::create(); | 538 | 196 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 196 | vec_res.resize(c0->size()); | 540 | | | 541 | 196 | if (c0_string && c1_string) { | 542 | 2 | StringImpl::string_vector_string_vector( | 543 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 2 | c1_string->get_offsets(), vec_res); | 545 | 194 | } else if (c0_string && c1_const) { | 546 | 194 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 194 | *c1_const_chars, c1_const_size, vec_res); | 548 | 194 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 196 | block.replace_by_position(result, std::move(c_res)); | 557 | 196 | return Status::OK(); | 558 | 196 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 600 | const IColumn* c1) const { | 495 | 600 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 600 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 600 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 600 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 600 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 600 | DCHECK(!(c0_const && c1_const)); | 504 | 600 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 600 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 600 | ColumnString::Offset c0_const_size = 0; | 507 | 600 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 600 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 600 | if (c1_const) { | 523 | 506 | const ColumnString* c1_const_string = | 524 | 506 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 506 | if (c1_const_string) { | 527 | 506 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 506 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 506 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 506 | } | 534 | | | 535 | 600 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 600 | auto c_res = ColumnUInt8::create(); | 538 | 600 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 600 | vec_res.resize(c0->size()); | 540 | | | 541 | 600 | if (c0_string && c1_string) { | 542 | 94 | StringImpl::string_vector_string_vector( | 543 | 94 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 94 | c1_string->get_offsets(), vec_res); | 545 | 506 | } else if (c0_string && c1_const) { | 546 | 506 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 506 | *c1_const_chars, c1_const_size, vec_res); | 548 | 506 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 600 | block.replace_by_position(result, std::move(c_res)); | 557 | 600 | return Status::OK(); | 558 | 600 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 676 | const IColumn* c1) const { | 495 | 676 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 676 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 676 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 676 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 676 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 676 | DCHECK(!(c0_const && c1_const)); | 504 | 676 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 676 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 676 | ColumnString::Offset c0_const_size = 0; | 507 | 676 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 676 | if (c0_const) { | 510 | 6 | const ColumnString* c0_const_string = | 511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | | | 513 | 6 | if (c0_const_string) { | 514 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 6 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 6 | } | 521 | | | 522 | 676 | if (c1_const) { | 523 | 234 | const ColumnString* c1_const_string = | 524 | 234 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 234 | if (c1_const_string) { | 527 | 234 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 234 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 234 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 234 | } | 534 | | | 535 | 676 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 676 | auto c_res = ColumnUInt8::create(); | 538 | 676 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 676 | vec_res.resize(c0->size()); | 540 | | | 541 | 676 | if (c0_string && c1_string) { | 542 | 436 | StringImpl::string_vector_string_vector( | 543 | 436 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 436 | c1_string->get_offsets(), vec_res); | 545 | 436 | } else if (c0_string && c1_const) { | 546 | 234 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 234 | *c1_const_chars, c1_const_size, vec_res); | 548 | 234 | } else if (c0_const && c1_string) { | 549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 6 | vec_res); | 552 | 6 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 676 | block.replace_by_position(result, std::move(c_res)); | 557 | 676 | return Status::OK(); | 558 | 676 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 824 | const IColumn* c1) const { | 495 | 824 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 824 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 824 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 824 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 824 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 824 | DCHECK(!(c0_const && c1_const)); | 504 | 824 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 824 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 824 | ColumnString::Offset c0_const_size = 0; | 507 | 824 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 824 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 824 | if (c1_const) { | 523 | 662 | const ColumnString* c1_const_string = | 524 | 662 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 662 | if (c1_const_string) { | 527 | 662 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 662 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 662 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 662 | } | 534 | | | 535 | 824 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 824 | auto c_res = ColumnUInt8::create(); | 538 | 824 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 824 | vec_res.resize(c0->size()); | 540 | | | 541 | 824 | if (c0_string && c1_string) { | 542 | 162 | StringImpl::string_vector_string_vector( | 543 | 162 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 162 | c1_string->get_offsets(), vec_res); | 545 | 662 | } else if (c0_string && c1_const) { | 546 | 662 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 662 | *c1_const_chars, c1_const_size, vec_res); | 548 | 662 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 824 | block.replace_by_position(result, std::move(c_res)); | 557 | 824 | return Status::OK(); | 558 | 824 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 179 | const IColumn* c1) const { |
562 | 179 | bool c0_const = is_column_const(*c0); |
563 | 179 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 179 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 179 | auto c_res = ColumnUInt8::create(); |
568 | 179 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 179 | vec_res.resize(c0->size()); |
570 | | |
571 | 179 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 179 | } else if (c1_const) { |
574 | 170 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 170 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 179 | block.replace_by_position(result, std::move(c_res)); |
580 | 179 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 17 | const IColumn* c1) const { | 562 | 17 | bool c0_const = is_column_const(*c0); | 563 | 17 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 17 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 17 | auto c_res = ColumnUInt8::create(); | 568 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 17 | vec_res.resize(c0->size()); | 570 | | | 571 | 17 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 17 | } else if (c1_const) { | 574 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 13 | } else { | 576 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 4 | } | 578 | | | 579 | 17 | block.replace_by_position(result, std::move(c_res)); | 580 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 8 | const IColumn* c1) const { | 562 | 8 | bool c0_const = is_column_const(*c0); | 563 | 8 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 8 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 8 | auto c_res = ColumnUInt8::create(); | 568 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 8 | vec_res.resize(c0->size()); | 570 | | | 571 | 8 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 8 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 8 | block.replace_by_position(result, std::move(c_res)); | 580 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 9 | const IColumn* c1) const { | 562 | 9 | bool c0_const = is_column_const(*c0); | 563 | 9 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 9 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 9 | auto c_res = ColumnUInt8::create(); | 568 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 9 | vec_res.resize(c0->size()); | 570 | | | 571 | 9 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 9 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 9 | block.replace_by_position(result, std::move(c_res)); | 580 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 68 | const IColumn* c1) const { | 562 | 68 | bool c0_const = is_column_const(*c0); | 563 | 68 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 68 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 68 | auto c_res = ColumnUInt8::create(); | 568 | 68 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 68 | vec_res.resize(c0->size()); | 570 | | | 571 | 68 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 68 | } else if (c1_const) { | 574 | 67 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 67 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 68 | block.replace_by_position(result, std::move(c_res)); | 580 | 68 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 11 | const IColumn* c1) const { | 562 | 11 | bool c0_const = is_column_const(*c0); | 563 | 11 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 11 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 11 | auto c_res = ColumnUInt8::create(); | 568 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 11 | vec_res.resize(c0->size()); | 570 | | | 571 | 11 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 11 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 3 | } | 578 | | | 579 | 11 | block.replace_by_position(result, std::move(c_res)); | 580 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 66 | const IColumn* c1) const { | 562 | 66 | bool c0_const = is_column_const(*c0); | 563 | 66 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 66 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 66 | auto c_res = ColumnUInt8::create(); | 568 | 66 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 66 | vec_res.resize(c0->size()); | 570 | | | 571 | 66 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 66 | } else if (c1_const) { | 574 | 66 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 66 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 66 | block.replace_by_position(result, std::move(c_res)); | 580 | 66 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 179 | const ColumnWithTypeAndName& c1) const { |
584 | 179 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 179 | return Status::OK(); |
586 | 179 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 17 | const ColumnWithTypeAndName& c1) const { | 584 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 17 | return Status::OK(); | 586 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 8 | const ColumnWithTypeAndName& c1) const { | 584 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 8 | return Status::OK(); | 586 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 9 | const ColumnWithTypeAndName& c1) const { | 584 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 9 | return Status::OK(); | 586 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 68 | const ColumnWithTypeAndName& c1) const { | 584 | 68 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 68 | return Status::OK(); | 586 | 68 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 11 | const ColumnWithTypeAndName& c1) const { | 584 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 11 | return Status::OK(); | 586 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 66 | const ColumnWithTypeAndName& c1) const { | 584 | 66 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 66 | return Status::OK(); | 586 | 66 | } |
|
587 | | |
588 | | public: |
589 | 220 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 79 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
|
590 | | |
591 | 536k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 473k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 2.53k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 10.7k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 18.3k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 5.34k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 26.1k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 37.2k | const VExprSPtrs& arguments) const override { |
595 | 37.2k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 37.2k | DORIS_CHECK(op.has_value()); |
597 | 37.2k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 37.2k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.27k | const VExprSPtrs& arguments) const override { | 595 | 9.27k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.27k | DORIS_CHECK(op.has_value()); | 597 | 9.27k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.27k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.16k | const VExprSPtrs& arguments) const override { | 595 | 1.16k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.16k | DORIS_CHECK(op.has_value()); | 597 | 1.16k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.11k | const VExprSPtrs& arguments) const override { | 595 | 5.11k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.11k | DORIS_CHECK(op.has_value()); | 597 | 5.11k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.11k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 7.91k | const VExprSPtrs& arguments) const override { | 595 | 7.91k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 7.91k | DORIS_CHECK(op.has_value()); | 597 | 7.91k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 7.91k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 3.04k | const VExprSPtrs& arguments) const override { | 595 | 3.04k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 3.04k | DORIS_CHECK(op.has_value()); | 597 | 3.04k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 3.04k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 10.7k | const VExprSPtrs& arguments) const override { | 595 | 10.7k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 10.7k | DORIS_CHECK(op.has_value()); | 597 | 10.7k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 10.7k | } |
|
599 | | |
600 | 107k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 107k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 107k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 107k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 36.3k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 36.3k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 36.3k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 36.3k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 3.23k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 3.23k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 3.23k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 3.23k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 17.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 17.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 17.2k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 17.1k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 18.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 18.9k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 19.0k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 18.9k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 9.83k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 9.83k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 9.84k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 9.83k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 22.3k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 22.3k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 22.3k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 22.3k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 90.7k | const VExprSPtrs& arguments) const override { |
607 | 90.7k | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 90.7k | DORIS_CHECK(op.has_value()); |
609 | 90.7k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 90.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 90.7k | const VExprSPtrs& arguments) const override { | 607 | 90.7k | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 90.7k | DORIS_CHECK(op.has_value()); | 609 | 90.7k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 90.7k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
611 | | |
612 | 100k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 100k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 100k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 100k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 95.1k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 95.1k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 95.1k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 95.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 425 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 425 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 425 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 425 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 2.72k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 2.72k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 2.72k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 2.72k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 892 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 892 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 896 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 892 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 926 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 926 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 928 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 926 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 336 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 336 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 336 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 336 | } |
|
616 | | |
617 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
618 | 14 | const VExprSPtrs& arguments) const override { |
619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
620 | 14 | DORIS_CHECK(op.has_value()); |
621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
622 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 618 | 14 | const VExprSPtrs& arguments) const override { | 619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); | 620 | 14 | DORIS_CHECK(op.has_value()); | 621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 622 | 14 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
623 | | |
624 | 4.42k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 4.42k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 4.43k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 4.42k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 1.67k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 1.67k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 1.67k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 1.67k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 219 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 219 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 219 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 219 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 1.34k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 1.34k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 1.35k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 1.34k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 444 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 444 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 448 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 444 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 496 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 496 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 498 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 496 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 242 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 242 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 242 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 242 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 536k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 536k | return std::make_shared<DataTypeUInt8>(); |
632 | 536k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 473k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 473k | return std::make_shared<DataTypeUInt8>(); | 632 | 473k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 2.53k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 2.53k | return std::make_shared<DataTypeUInt8>(); | 632 | 2.53k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 10.7k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 10.7k | return std::make_shared<DataTypeUInt8>(); | 632 | 10.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 18.3k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 18.3k | return std::make_shared<DataTypeUInt8>(); | 632 | 18.3k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 5.33k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 5.33k | return std::make_shared<DataTypeUInt8>(); | 632 | 5.33k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 26.2k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 26.2k | return std::make_shared<DataTypeUInt8>(); | 632 | 26.2k | } |
|
633 | | |
634 | | Status evaluate_inverted_index( |
635 | | const ColumnsWithTypeAndName& arguments, |
636 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
637 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
638 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
639 | 1.34k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.34k | DCHECK(arguments.size() == 1); |
641 | 1.34k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.34k | DCHECK(iterators.size() == 1); |
643 | 1.34k | auto* iter = iterators[0]; |
644 | 1.34k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.34k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.34k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 304 | return Status::OK(); |
650 | 304 | } |
651 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.03k | std::string_view name_view(name); |
653 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 719 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 719 | } else if (name_view == NameLess::name) { |
656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 244 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 163 | } else if (name_view == NameGreater::name) { |
660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 18.4E | } else { |
664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 18.4E | } |
666 | | |
667 | 1.04k | if (segment_v2::is_range_query(query_type) && |
668 | 1.04k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 909 | Field param_value; |
673 | 909 | arguments[0].column->get(0, param_value); |
674 | 909 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 907 | segment_v2::InvertedIndexParam param; |
678 | 907 | param.column_name = data_type_with_name.first; |
679 | 907 | param.column_type = data_type_with_name.second; |
680 | 907 | param.query_value = param_value; |
681 | 907 | param.query_type = query_type; |
682 | 907 | param.num_rows = num_rows; |
683 | 907 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 907 | param.analyzer_ctx = analyzer_ctx; |
685 | 907 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 754 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 754 | if (iter->has_null()) { |
688 | 754 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 754 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 754 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 754 | } |
692 | 754 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 754 | bitmap_result = result; |
694 | 754 | bitmap_result.mask_out_null(); |
695 | | |
696 | 754 | if (name_view == NameNotEquals::name) { |
697 | 59 | roaring::Roaring full_result; |
698 | 59 | full_result.addRange(0, num_rows); |
699 | 59 | bitmap_result.op_not(&full_result); |
700 | 59 | } |
701 | | |
702 | 754 | return Status::OK(); |
703 | 754 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 688 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 688 | DCHECK(arguments.size() == 1); | 641 | 688 | DCHECK(data_type_with_names.size() == 1); | 642 | 688 | DCHECK(iterators.size() == 1); | 643 | 688 | auto* iter = iterators[0]; | 644 | 688 | auto data_type_with_name = data_type_with_names[0]; | 645 | 688 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 688 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 36 | return Status::OK(); | 650 | 36 | } | 651 | 652 | segment_v2::InvertedIndexQueryType query_type; | 652 | 652 | std::string_view name_view(name); | 653 | 653 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 653 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 18.4E | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 18.4E | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 653 | if (segment_v2::is_range_query(query_type) && | 668 | 653 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 653 | Field param_value; | 673 | 653 | arguments[0].column->get(0, param_value); | 674 | 653 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 651 | segment_v2::InvertedIndexParam param; | 678 | 651 | param.column_name = data_type_with_name.first; | 679 | 651 | param.column_type = data_type_with_name.second; | 680 | 651 | param.query_value = param_value; | 681 | 651 | param.query_type = query_type; | 682 | 651 | param.num_rows = num_rows; | 683 | 651 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 651 | param.analyzer_ctx = analyzer_ctx; | 685 | 651 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 605 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 605 | if (iter->has_null()) { | 688 | 605 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 605 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 605 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 605 | } | 692 | 605 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 605 | bitmap_result = result; | 694 | 605 | bitmap_result.mask_out_null(); | 695 | | | 696 | 605 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 605 | return Status::OK(); | 703 | 605 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 72 | DCHECK(arguments.size() == 1); | 641 | 72 | DCHECK(data_type_with_names.size() == 1); | 642 | 72 | DCHECK(iterators.size() == 1); | 643 | 72 | auto* iter = iterators[0]; | 644 | 72 | auto data_type_with_name = data_type_with_names[0]; | 645 | 72 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 6 | return Status::OK(); | 650 | 6 | } | 651 | 66 | segment_v2::InvertedIndexQueryType query_type; | 652 | 66 | std::string_view name_view(name); | 653 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 66 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 0 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 66 | if (segment_v2::is_range_query(query_type) && | 668 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 66 | Field param_value; | 673 | 66 | arguments[0].column->get(0, param_value); | 674 | 66 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 66 | segment_v2::InvertedIndexParam param; | 678 | 66 | param.column_name = data_type_with_name.first; | 679 | 66 | param.column_type = data_type_with_name.second; | 680 | 66 | param.query_value = param_value; | 681 | 66 | param.query_type = query_type; | 682 | 66 | param.num_rows = num_rows; | 683 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 66 | param.analyzer_ctx = analyzer_ctx; | 685 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 59 | if (iter->has_null()) { | 688 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 59 | } | 692 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 59 | bitmap_result = result; | 694 | 59 | bitmap_result.mask_out_null(); | 695 | | | 696 | 59 | if (name_view == NameNotEquals::name) { | 697 | 59 | roaring::Roaring full_result; | 698 | 59 | full_result.addRange(0, num_rows); | 699 | 59 | bitmap_result.op_not(&full_result); | 700 | 59 | } | 701 | | | 702 | 59 | return Status::OK(); | 703 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 110 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 110 | DCHECK(arguments.size() == 1); | 641 | 110 | DCHECK(data_type_with_names.size() == 1); | 642 | 110 | DCHECK(iterators.size() == 1); | 643 | 110 | auto* iter = iterators[0]; | 644 | 110 | auto data_type_with_name = data_type_with_names[0]; | 645 | 110 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 110 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 39 | return Status::OK(); | 650 | 39 | } | 651 | 71 | segment_v2::InvertedIndexQueryType query_type; | 652 | 71 | std::string_view name_view(name); | 653 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 71 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 71 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 73 | } else if (name_view == NameGreater::name) { | 660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 73 | if (segment_v2::is_range_query(query_type) && | 668 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 17 | return Status::OK(); | 671 | 17 | } | 672 | 56 | Field param_value; | 673 | 56 | arguments[0].column->get(0, param_value); | 674 | 56 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 56 | segment_v2::InvertedIndexParam param; | 678 | 56 | param.column_name = data_type_with_name.first; | 679 | 56 | param.column_type = data_type_with_name.second; | 680 | 56 | param.query_value = param_value; | 681 | 56 | param.query_type = query_type; | 682 | 56 | param.num_rows = num_rows; | 683 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 56 | param.analyzer_ctx = analyzer_ctx; | 685 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 37 | if (iter->has_null()) { | 688 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 37 | } | 692 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 37 | bitmap_result = result; | 694 | 37 | bitmap_result.mask_out_null(); | 695 | | | 696 | 37 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 37 | return Status::OK(); | 703 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 179 | DCHECK(arguments.size() == 1); | 641 | 179 | DCHECK(data_type_with_names.size() == 1); | 642 | 179 | DCHECK(iterators.size() == 1); | 643 | 179 | auto* iter = iterators[0]; | 644 | 179 | auto data_type_with_name = data_type_with_names[0]; | 645 | 179 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 86 | return Status::OK(); | 650 | 86 | } | 651 | 93 | segment_v2::InvertedIndexQueryType query_type; | 652 | 93 | std::string_view name_view(name); | 653 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 93 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 93 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 93 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 93 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 93 | if (segment_v2::is_range_query(query_type) && | 668 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 47 | return Status::OK(); | 671 | 47 | } | 672 | 46 | Field param_value; | 673 | 46 | arguments[0].column->get(0, param_value); | 674 | 46 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 46 | segment_v2::InvertedIndexParam param; | 678 | 46 | param.column_name = data_type_with_name.first; | 679 | 46 | param.column_type = data_type_with_name.second; | 680 | 46 | param.query_value = param_value; | 681 | 46 | param.query_type = query_type; | 682 | 46 | param.num_rows = num_rows; | 683 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 46 | param.analyzer_ctx = analyzer_ctx; | 685 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 5 | if (iter->has_null()) { | 688 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 5 | } | 692 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 5 | bitmap_result = result; | 694 | 5 | bitmap_result.mask_out_null(); | 695 | | | 696 | 5 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 5 | return Status::OK(); | 703 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 119 | DCHECK(arguments.size() == 1); | 641 | 119 | DCHECK(data_type_with_names.size() == 1); | 642 | 119 | DCHECK(iterators.size() == 1); | 643 | 119 | auto* iter = iterators[0]; | 644 | 119 | auto data_type_with_name = data_type_with_names[0]; | 645 | 119 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 43 | return Status::OK(); | 650 | 43 | } | 651 | 76 | segment_v2::InvertedIndexQueryType query_type; | 652 | 76 | std::string_view name_view(name); | 653 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 76 | } else if (name_view == NameLess::name) { | 656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 76 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 76 | if (segment_v2::is_range_query(query_type) && | 668 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 18 | return Status::OK(); | 671 | 18 | } | 672 | 58 | Field param_value; | 673 | 58 | arguments[0].column->get(0, param_value); | 674 | 58 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 58 | segment_v2::InvertedIndexParam param; | 678 | 58 | param.column_name = data_type_with_name.first; | 679 | 58 | param.column_type = data_type_with_name.second; | 680 | 58 | param.query_value = param_value; | 681 | 58 | param.query_type = query_type; | 682 | 58 | param.num_rows = num_rows; | 683 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 58 | param.analyzer_ctx = analyzer_ctx; | 685 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 39 | if (iter->has_null()) { | 688 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 39 | } | 692 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 39 | bitmap_result = result; | 694 | 39 | bitmap_result.mask_out_null(); | 695 | | | 696 | 39 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 39 | return Status::OK(); | 703 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 175 | DCHECK(arguments.size() == 1); | 641 | 175 | DCHECK(data_type_with_names.size() == 1); | 642 | 175 | DCHECK(iterators.size() == 1); | 643 | 175 | auto* iter = iterators[0]; | 644 | 175 | auto data_type_with_name = data_type_with_names[0]; | 645 | 175 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 94 | return Status::OK(); | 650 | 94 | } | 651 | 81 | segment_v2::InvertedIndexQueryType query_type; | 652 | 81 | std::string_view name_view(name); | 653 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 81 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 81 | } else if (name_view == NameLessOrEquals::name) { | 658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 81 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 81 | if (segment_v2::is_range_query(query_type) && | 668 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 51 | return Status::OK(); | 671 | 51 | } | 672 | 30 | Field param_value; | 673 | 30 | arguments[0].column->get(0, param_value); | 674 | 30 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 30 | segment_v2::InvertedIndexParam param; | 678 | 30 | param.column_name = data_type_with_name.first; | 679 | 30 | param.column_type = data_type_with_name.second; | 680 | 30 | param.query_value = param_value; | 681 | 30 | param.query_type = query_type; | 682 | 30 | param.num_rows = num_rows; | 683 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 30 | param.analyzer_ctx = analyzer_ctx; | 685 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 9 | if (iter->has_null()) { | 688 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 9 | } | 692 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 9 | bitmap_result = result; | 694 | 9 | bitmap_result.mask_out_null(); | 695 | | | 696 | 9 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 9 | return Status::OK(); | 703 | 9 | } |
|
704 | | |
705 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
706 | 306k | uint32_t result, size_t input_rows_count) const override { |
707 | 306k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 306k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 306k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 306k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 306k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 306k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 306k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 306k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
717 | | |
718 | | /// The case when arguments are the same (tautological comparison). Return constant. |
719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
721 | 306k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 306k | col_left_untyped == col_right_untyped) { |
723 | | /// Always true: =, <=, >= |
724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
728 | 0 | block.get_by_position(result).column = |
729 | 0 | DataTypeUInt8() |
730 | 0 | .create_column_const(input_rows_count, |
731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
732 | 0 | ->convert_to_full_column_if_const(); |
733 | 0 | return Status::OK(); |
734 | 0 | } else { |
735 | 0 | block.get_by_position(result).column = |
736 | 0 | DataTypeUInt8() |
737 | 0 | .create_column_const(input_rows_count, |
738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
739 | 0 | ->convert_to_full_column_if_const(); |
740 | 0 | return Status::OK(); |
741 | 0 | } |
742 | 0 | } |
743 | | |
744 | 570k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 570k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 570k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 194k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 194k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 194k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 11.1k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 11.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 11.1k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 189k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 189k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 189k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 55.3k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 55.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 55.3k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 21.6k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 21.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 21.6k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 98.1k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 98.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 98.1k | }; |
|
747 | | |
748 | 306k | if (can_compare(left_type->get_primitive_type()) && |
749 | 306k | can_compare(right_type->get_primitive_type())) { |
750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
751 | 263k | if (!left_type->equals_ignore_precision(*right_type)) { |
752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
753 | 0 | get_name(), left_type->get_name(), |
754 | 0 | right_type->get_name()); |
755 | 0 | } |
756 | 263k | } |
757 | | |
758 | 306k | auto compare_type = left_type->get_primitive_type(); |
759 | 306k | switch (compare_type) { |
760 | 1.36k | case TYPE_BOOLEAN: |
761 | 1.36k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 19.6k | case TYPE_DATEV2: |
763 | 19.6k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 2.15k | case TYPE_DATETIMEV2: |
765 | 2.15k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 17 | case TYPE_TIMESTAMPTZ: |
767 | 17 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 9.46k | case TYPE_TINYINT: |
769 | 9.46k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 2.94k | case TYPE_SMALLINT: |
771 | 2.94k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 196k | case TYPE_INT: |
773 | 196k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 26.6k | case TYPE_BIGINT: |
775 | 26.6k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 787 | case TYPE_LARGEINT: |
777 | 787 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 61 | case TYPE_IPV4: |
779 | 61 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
780 | 37 | case TYPE_IPV6: |
781 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
782 | 977 | case TYPE_FLOAT: |
783 | 977 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 3.24k | case TYPE_DOUBLE: |
785 | 3.24k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
786 | 4 | case TYPE_TIMEV2: |
787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
788 | 0 | case TYPE_DECIMALV2: |
789 | 487 | case TYPE_DECIMAL32: |
790 | 11.8k | case TYPE_DECIMAL64: |
791 | 15.4k | case TYPE_DECIMAL128I: |
792 | 15.5k | case TYPE_DECIMAL256: |
793 | 15.5k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 15.5k | col_with_type_and_name_right); |
795 | 1.37k | case TYPE_CHAR: |
796 | 10.5k | case TYPE_VARCHAR: |
797 | 26.6k | case TYPE_STRING: |
798 | 26.6k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 179 | default: |
800 | 179 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 179 | col_with_type_and_name_right); |
802 | 306k | } |
803 | 0 | return Status::OK(); |
804 | 306k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 109k | uint32_t result, size_t input_rows_count) const override { | 707 | 109k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 109k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 109k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 109k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 109k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 109k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 109k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 109k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 109k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 109k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 109k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 109k | }; | 747 | | | 748 | 109k | if (can_compare(left_type->get_primitive_type()) && | 749 | 109k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 84.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 84.7k | } | 757 | | | 758 | 109k | auto compare_type = left_type->get_primitive_type(); | 759 | 109k | switch (compare_type) { | 760 | 875 | case TYPE_BOOLEAN: | 761 | 875 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.20k | case TYPE_DATEV2: | 763 | 1.20k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 637 | case TYPE_DATETIMEV2: | 765 | 637 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 4 | case TYPE_TIMESTAMPTZ: | 767 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 5.59k | case TYPE_TINYINT: | 769 | 5.59k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 692 | case TYPE_SMALLINT: | 771 | 692 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 60.8k | case TYPE_INT: | 773 | 60.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 13.8k | case TYPE_BIGINT: | 775 | 13.8k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 118 | case TYPE_LARGEINT: | 777 | 118 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 19 | case TYPE_IPV6: | 781 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 96 | case TYPE_FLOAT: | 783 | 96 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 912 | case TYPE_DOUBLE: | 785 | 912 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 4 | case TYPE_TIMEV2: | 787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 247 | case TYPE_DECIMAL32: | 790 | 490 | case TYPE_DECIMAL64: | 791 | 1.71k | case TYPE_DECIMAL128I: | 792 | 1.74k | case TYPE_DECIMAL256: | 793 | 1.74k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.74k | col_with_type_and_name_right); | 795 | 1.07k | case TYPE_CHAR: | 796 | 9.01k | case TYPE_VARCHAR: | 797 | 22.8k | case TYPE_STRING: | 798 | 22.8k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 17 | default: | 800 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 17 | col_with_type_and_name_right); | 802 | 109k | } | 803 | 0 | return Status::OK(); | 804 | 109k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 6.44k | uint32_t result, size_t input_rows_count) const override { | 707 | 6.44k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 6.44k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 6.44k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 6.44k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 6.44k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 6.44k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 6.44k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 6.44k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 6.44k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 6.44k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 6.44k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 6.44k | }; | 747 | | | 748 | 6.44k | if (can_compare(left_type->get_primitive_type()) && | 749 | 6.44k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 4.67k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 4.67k | } | 757 | | | 758 | 6.44k | auto compare_type = left_type->get_primitive_type(); | 759 | 6.44k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 82 | case TYPE_DATEV2: | 763 | 82 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 2 | case TYPE_DATETIMEV2: | 765 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 0 | case TYPE_TIMESTAMPTZ: | 767 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 100 | case TYPE_TINYINT: | 769 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 8 | case TYPE_SMALLINT: | 771 | 8 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.89k | case TYPE_INT: | 773 | 2.89k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.48k | case TYPE_BIGINT: | 775 | 1.48k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 0 | case TYPE_LARGEINT: | 777 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 0 | case TYPE_IPV4: | 779 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 48 | case TYPE_FLOAT: | 783 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 60 | case TYPE_DOUBLE: | 785 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 0 | case TYPE_DECIMAL32: | 790 | 63 | case TYPE_DECIMAL64: | 791 | 239 | case TYPE_DECIMAL128I: | 792 | 269 | case TYPE_DECIMAL256: | 793 | 269 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 269 | col_with_type_and_name_right); | 795 | 1 | case TYPE_CHAR: | 796 | 299 | case TYPE_VARCHAR: | 797 | 1.48k | case TYPE_STRING: | 798 | 1.48k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 8 | default: | 800 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 8 | col_with_type_and_name_right); | 802 | 6.44k | } | 803 | 0 | return Status::OK(); | 804 | 6.44k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 99.6k | uint32_t result, size_t input_rows_count) const override { | 707 | 99.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 99.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 99.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 99.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 99.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 99.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 99.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 99.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 99.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 99.6k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 99.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 99.6k | }; | 747 | | | 748 | 99.6k | if (can_compare(left_type->get_primitive_type()) && | 749 | 99.6k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 89.8k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 89.8k | } | 757 | | | 758 | 99.6k | auto compare_type = left_type->get_primitive_type(); | 759 | 99.6k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.45k | case TYPE_DATEV2: | 763 | 1.45k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 66 | case TYPE_DATETIMEV2: | 765 | 66 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 1.45k | case TYPE_TINYINT: | 769 | 1.45k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.83k | case TYPE_SMALLINT: | 771 | 1.83k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 74.3k | case TYPE_INT: | 773 | 74.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 8.63k | case TYPE_BIGINT: | 775 | 8.63k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 256 | case TYPE_LARGEINT: | 777 | 256 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 4 | case TYPE_IPV4: | 779 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 220 | case TYPE_FLOAT: | 783 | 220 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 1.59k | case TYPE_DOUBLE: | 785 | 1.59k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 28 | case TYPE_DECIMAL32: | 790 | 8.56k | case TYPE_DECIMAL64: | 791 | 9.57k | case TYPE_DECIMAL128I: | 792 | 9.57k | case TYPE_DECIMAL256: | 793 | 9.57k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 9.57k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 196 | case TYPE_STRING: | 798 | 196 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 9 | default: | 800 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 9 | col_with_type_and_name_right); | 802 | 99.6k | } | 803 | 0 | return Status::OK(); | 804 | 99.6k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 28.2k | uint32_t result, size_t input_rows_count) const override { | 707 | 28.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 28.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 28.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 28.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 28.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 28.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 28.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 28.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 28.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 28.2k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 28.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 28.2k | }; | 747 | | | 748 | 28.2k | if (can_compare(left_type->get_primitive_type()) && | 749 | 28.2k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 27.1k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 27.1k | } | 757 | | | 758 | 28.2k | auto compare_type = left_type->get_primitive_type(); | 759 | 28.2k | switch (compare_type) { | 760 | 185 | case TYPE_BOOLEAN: | 761 | 185 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.48k | case TYPE_DATEV2: | 763 | 1.48k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 585 | case TYPE_DATETIMEV2: | 765 | 585 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 64 | case TYPE_TINYINT: | 769 | 64 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 62 | case TYPE_SMALLINT: | 771 | 62 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 23.7k | case TYPE_INT: | 773 | 23.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 501 | case TYPE_BIGINT: | 775 | 501 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 50 | case TYPE_LARGEINT: | 777 | 50 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 11 | case TYPE_IPV4: | 779 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 218 | case TYPE_FLOAT: | 783 | 218 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 161 | case TYPE_DOUBLE: | 785 | 161 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 5 | case TYPE_DECIMAL32: | 790 | 338 | case TYPE_DECIMAL64: | 791 | 426 | case TYPE_DECIMAL128I: | 792 | 447 | case TYPE_DECIMAL256: | 793 | 447 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 447 | col_with_type_and_name_right); | 795 | 26 | case TYPE_CHAR: | 796 | 290 | case TYPE_VARCHAR: | 797 | 600 | case TYPE_STRING: | 798 | 600 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 68 | default: | 800 | 68 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 68 | col_with_type_and_name_right); | 802 | 28.2k | } | 803 | 0 | return Status::OK(); | 804 | 28.2k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 11.6k | uint32_t result, size_t input_rows_count) const override { | 707 | 11.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 11.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 11.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 11.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 11.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 11.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 11.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 11.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 11.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 11.6k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 11.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 11.6k | }; | 747 | | | 748 | 11.6k | if (can_compare(left_type->get_primitive_type()) && | 749 | 11.6k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 9.99k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 9.99k | } | 757 | | | 758 | 11.6k | auto compare_type = left_type->get_primitive_type(); | 759 | 11.6k | switch (compare_type) { | 760 | 101 | case TYPE_BOOLEAN: | 761 | 101 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.37k | case TYPE_DATEV2: | 763 | 2.37k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 492 | case TYPE_DATETIMEV2: | 765 | 492 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 4 | case TYPE_TIMESTAMPTZ: | 767 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.19k | case TYPE_TINYINT: | 769 | 2.19k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 276 | case TYPE_SMALLINT: | 771 | 276 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.30k | case TYPE_INT: | 773 | 2.30k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.37k | case TYPE_BIGINT: | 775 | 1.37k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 305 | case TYPE_LARGEINT: | 777 | 305 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 16 | case TYPE_IPV6: | 781 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 181 | case TYPE_FLOAT: | 783 | 181 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 359 | case TYPE_DOUBLE: | 785 | 359 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 203 | case TYPE_DECIMAL32: | 790 | 419 | case TYPE_DECIMAL64: | 791 | 946 | case TYPE_DECIMAL128I: | 792 | 947 | case TYPE_DECIMAL256: | 793 | 947 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 947 | col_with_type_and_name_right); | 795 | 189 | case TYPE_CHAR: | 796 | 367 | case TYPE_VARCHAR: | 797 | 676 | case TYPE_STRING: | 798 | 676 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 11 | default: | 800 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 11 | col_with_type_and_name_right); | 802 | 11.6k | } | 803 | 0 | return Status::OK(); | 804 | 11.6k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 50.7k | uint32_t result, size_t input_rows_count) const override { | 707 | 50.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 50.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 50.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 50.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 50.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 50.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 50.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 50.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 50.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 50.7k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 50.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 50.7k | }; | 747 | | | 748 | 50.7k | if (can_compare(left_type->get_primitive_type()) && | 749 | 50.7k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 47.3k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 47.3k | } | 757 | | | 758 | 50.7k | auto compare_type = left_type->get_primitive_type(); | 759 | 50.7k | switch (compare_type) { | 760 | 204 | case TYPE_BOOLEAN: | 761 | 204 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 13.0k | case TYPE_DATEV2: | 763 | 13.0k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 376 | case TYPE_DATETIMEV2: | 765 | 376 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 68 | case TYPE_TINYINT: | 769 | 68 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 77 | case TYPE_SMALLINT: | 771 | 77 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 32.3k | case TYPE_INT: | 773 | 32.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 796 | case TYPE_BIGINT: | 775 | 796 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 58 | case TYPE_LARGEINT: | 777 | 58 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 10 | case TYPE_IPV4: | 779 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 214 | case TYPE_FLOAT: | 783 | 214 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 156 | case TYPE_DOUBLE: | 785 | 156 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 4 | case TYPE_DECIMAL32: | 790 | 2.01k | case TYPE_DECIMAL64: | 791 | 2.53k | case TYPE_DECIMAL128I: | 792 | 2.55k | case TYPE_DECIMAL256: | 793 | 2.55k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 2.55k | col_with_type_and_name_right); | 795 | 77 | case TYPE_CHAR: | 796 | 460 | case TYPE_VARCHAR: | 797 | 824 | case TYPE_STRING: | 798 | 824 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 66 | default: | 800 | 66 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 66 | col_with_type_and_name_right); | 802 | 50.7k | } | 803 | 0 | return Status::OK(); | 804 | 50.7k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |