be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | #include "storage/index/inverted/inverted_index_iterator.h" |
52 | | #include "storage/olap_define.h" |
53 | | |
54 | | namespace doris { |
55 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
56 | | * The comparison functions always return 0 or 1 (UInt8). |
57 | | * |
58 | | * You can compare the following types: |
59 | | * - numbers and decimals; |
60 | | * - strings and fixed strings; |
61 | | * - dates; |
62 | | * - datetimes; |
63 | | * within each group, but not from different groups; |
64 | | * - tuples (lexicographic comparison). |
65 | | * |
66 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
67 | | */ |
68 | | |
69 | | template <typename A, typename B, typename Op> |
70 | | struct NumComparisonImpl { |
71 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
72 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
73 | 11.5k | PaddedPODArray<UInt8>& c) { |
74 | 11.5k | size_t size = a.size(); |
75 | 11.5k | const A* __restrict a_pos = a.data(); |
76 | 11.5k | const B* __restrict b_pos = b.data(); |
77 | 11.5k | UInt8* __restrict c_pos = c.data(); |
78 | 11.5k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 5.44M | while (a_pos < a_end) { |
81 | 5.43M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 5.43M | ++a_pos; |
83 | 5.43M | ++b_pos; |
84 | 5.43M | ++c_pos; |
85 | 5.43M | } |
86 | 11.5k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 66 | PaddedPODArray<UInt8>& c) { | 74 | 66 | size_t size = a.size(); | 75 | 66 | const A* __restrict a_pos = a.data(); | 76 | 66 | const B* __restrict b_pos = b.data(); | 77 | 66 | UInt8* __restrict c_pos = c.data(); | 78 | 66 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 136 | while (a_pos < a_end) { | 81 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 70 | ++a_pos; | 83 | 70 | ++b_pos; | 84 | 70 | ++c_pos; | 85 | 70 | } | 86 | 66 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 196 | PaddedPODArray<UInt8>& c) { | 74 | 196 | size_t size = a.size(); | 75 | 196 | const A* __restrict a_pos = a.data(); | 76 | 196 | const B* __restrict b_pos = b.data(); | 77 | 196 | UInt8* __restrict c_pos = c.data(); | 78 | 196 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.33k | while (a_pos < a_end) { | 81 | 1.13k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.13k | ++a_pos; | 83 | 1.13k | ++b_pos; | 84 | 1.13k | ++c_pos; | 85 | 1.13k | } | 86 | 196 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 200 | PaddedPODArray<UInt8>& c) { | 74 | 200 | size_t size = a.size(); | 75 | 200 | const A* __restrict a_pos = a.data(); | 76 | 200 | const B* __restrict b_pos = b.data(); | 77 | 200 | UInt8* __restrict c_pos = c.data(); | 78 | 200 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 412 | while (a_pos < a_end) { | 81 | 212 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 212 | ++a_pos; | 83 | 212 | ++b_pos; | 84 | 212 | ++c_pos; | 85 | 212 | } | 86 | 200 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 120 | PaddedPODArray<UInt8>& c) { | 74 | 120 | size_t size = a.size(); | 75 | 120 | const A* __restrict a_pos = a.data(); | 76 | 120 | const B* __restrict b_pos = b.data(); | 77 | 120 | UInt8* __restrict c_pos = c.data(); | 78 | 120 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 313 | while (a_pos < a_end) { | 81 | 193 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 193 | ++a_pos; | 83 | 193 | ++b_pos; | 84 | 193 | ++c_pos; | 85 | 193 | } | 86 | 120 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12 | while (a_pos < a_end) { | 81 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 10 | ++a_pos; | 83 | 10 | ++b_pos; | 84 | 10 | ++c_pos; | 85 | 10 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 185 | PaddedPODArray<UInt8>& c) { | 74 | 185 | size_t size = a.size(); | 75 | 185 | const A* __restrict a_pos = a.data(); | 76 | 185 | const B* __restrict b_pos = b.data(); | 77 | 185 | UInt8* __restrict c_pos = c.data(); | 78 | 185 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 507 | while (a_pos < a_end) { | 81 | 322 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 322 | ++a_pos; | 83 | 322 | ++b_pos; | 84 | 322 | ++c_pos; | 85 | 322 | } | 86 | 185 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 96 | PaddedPODArray<UInt8>& c) { | 74 | 96 | size_t size = a.size(); | 75 | 96 | const A* __restrict a_pos = a.data(); | 76 | 96 | const B* __restrict b_pos = b.data(); | 77 | 96 | UInt8* __restrict c_pos = c.data(); | 78 | 96 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 192 | while (a_pos < a_end) { | 81 | 96 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 96 | ++a_pos; | 83 | 96 | ++b_pos; | 84 | 96 | ++c_pos; | 85 | 96 | } | 86 | 96 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1.01k | PaddedPODArray<UInt8>& c) { | 74 | 1.01k | size_t size = a.size(); | 75 | 1.01k | const A* __restrict a_pos = a.data(); | 76 | 1.01k | const B* __restrict b_pos = b.data(); | 77 | 1.01k | UInt8* __restrict c_pos = c.data(); | 78 | 1.01k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 19.7k | while (a_pos < a_end) { | 81 | 18.7k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.7k | ++a_pos; | 83 | 18.7k | ++b_pos; | 84 | 18.7k | ++c_pos; | 85 | 18.7k | } | 86 | 1.01k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 174 | PaddedPODArray<UInt8>& c) { | 74 | 174 | size_t size = a.size(); | 75 | 174 | const A* __restrict a_pos = a.data(); | 76 | 174 | const B* __restrict b_pos = b.data(); | 77 | 174 | UInt8* __restrict c_pos = c.data(); | 78 | 174 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.64k | while (a_pos < a_end) { | 81 | 1.47k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.47k | ++a_pos; | 83 | 1.47k | ++b_pos; | 84 | 1.47k | ++c_pos; | 85 | 1.47k | } | 86 | 174 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 47 | PaddedPODArray<UInt8>& c) { | 74 | 47 | size_t size = a.size(); | 75 | 47 | const A* __restrict a_pos = a.data(); | 76 | 47 | const B* __restrict b_pos = b.data(); | 77 | 47 | UInt8* __restrict c_pos = c.data(); | 78 | 47 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 94 | while (a_pos < a_end) { | 81 | 47 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 47 | ++a_pos; | 83 | 47 | ++b_pos; | 84 | 47 | ++c_pos; | 85 | 47 | } | 86 | 47 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 5 | PaddedPODArray<UInt8>& c) { | 74 | 5 | size_t size = a.size(); | 75 | 5 | const A* __restrict a_pos = a.data(); | 76 | 5 | const B* __restrict b_pos = b.data(); | 77 | 5 | UInt8* __restrict c_pos = c.data(); | 78 | 5 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5 | ++a_pos; | 83 | 5 | ++b_pos; | 84 | 5 | ++c_pos; | 85 | 5 | } | 86 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 13 | PaddedPODArray<UInt8>& c) { | 74 | 13 | size_t size = a.size(); | 75 | 13 | const A* __restrict a_pos = a.data(); | 76 | 13 | const B* __restrict b_pos = b.data(); | 77 | 13 | UInt8* __restrict c_pos = c.data(); | 78 | 13 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 26 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 776 | PaddedPODArray<UInt8>& c) { | 74 | 776 | size_t size = a.size(); | 75 | 776 | const A* __restrict a_pos = a.data(); | 76 | 776 | const B* __restrict b_pos = b.data(); | 77 | 776 | UInt8* __restrict c_pos = c.data(); | 78 | 776 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 38.4k | while (a_pos < a_end) { | 81 | 37.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 37.6k | ++a_pos; | 83 | 37.6k | ++b_pos; | 84 | 37.6k | ++c_pos; | 85 | 37.6k | } | 86 | 776 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 73 | PaddedPODArray<UInt8>& c) { | 74 | 73 | size_t size = a.size(); | 75 | 73 | const A* __restrict a_pos = a.data(); | 76 | 73 | const B* __restrict b_pos = b.data(); | 77 | 73 | UInt8* __restrict c_pos = c.data(); | 78 | 73 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 165 | while (a_pos < a_end) { | 81 | 92 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 92 | ++a_pos; | 83 | 92 | ++b_pos; | 84 | 92 | ++c_pos; | 85 | 92 | } | 86 | 73 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 87 | PaddedPODArray<UInt8>& c) { | 74 | 87 | size_t size = a.size(); | 75 | 87 | const A* __restrict a_pos = a.data(); | 76 | 87 | const B* __restrict b_pos = b.data(); | 77 | 87 | UInt8* __restrict c_pos = c.data(); | 78 | 87 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 245 | while (a_pos < a_end) { | 81 | 158 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 158 | ++a_pos; | 83 | 158 | ++b_pos; | 84 | 158 | ++c_pos; | 85 | 158 | } | 86 | 87 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 52 | PaddedPODArray<UInt8>& c) { | 74 | 52 | size_t size = a.size(); | 75 | 52 | const A* __restrict a_pos = a.data(); | 76 | 52 | const B* __restrict b_pos = b.data(); | 77 | 52 | UInt8* __restrict c_pos = c.data(); | 78 | 52 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 104 | while (a_pos < a_end) { | 81 | 52 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 52 | ++a_pos; | 83 | 52 | ++b_pos; | 84 | 52 | ++c_pos; | 85 | 52 | } | 86 | 52 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 39 | PaddedPODArray<UInt8>& c) { | 74 | 39 | size_t size = a.size(); | 75 | 39 | const A* __restrict a_pos = a.data(); | 76 | 39 | const B* __restrict b_pos = b.data(); | 77 | 39 | UInt8* __restrict c_pos = c.data(); | 78 | 39 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 108 | while (a_pos < a_end) { | 81 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 69 | ++a_pos; | 83 | 69 | ++b_pos; | 84 | 69 | ++c_pos; | 85 | 69 | } | 86 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 9 | PaddedPODArray<UInt8>& c) { | 74 | 9 | size_t size = a.size(); | 75 | 9 | const A* __restrict a_pos = a.data(); | 76 | 9 | const B* __restrict b_pos = b.data(); | 77 | 9 | UInt8* __restrict c_pos = c.data(); | 78 | 9 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 22 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 9 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 54 | PaddedPODArray<UInt8>& c) { | 74 | 54 | size_t size = a.size(); | 75 | 54 | const A* __restrict a_pos = a.data(); | 76 | 54 | const B* __restrict b_pos = b.data(); | 77 | 54 | UInt8* __restrict c_pos = c.data(); | 78 | 54 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 243 | while (a_pos < a_end) { | 81 | 189 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 189 | ++a_pos; | 83 | 189 | ++b_pos; | 84 | 189 | ++c_pos; | 85 | 189 | } | 86 | 54 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 832 | PaddedPODArray<UInt8>& c) { | 74 | 832 | size_t size = a.size(); | 75 | 832 | const A* __restrict a_pos = a.data(); | 76 | 832 | const B* __restrict b_pos = b.data(); | 77 | 832 | UInt8* __restrict c_pos = c.data(); | 78 | 832 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 311k | while (a_pos < a_end) { | 81 | 310k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 310k | ++a_pos; | 83 | 310k | ++b_pos; | 84 | 310k | ++c_pos; | 85 | 310k | } | 86 | 832 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 340 | PaddedPODArray<UInt8>& c) { | 74 | 340 | size_t size = a.size(); | 75 | 340 | const A* __restrict a_pos = a.data(); | 76 | 340 | const B* __restrict b_pos = b.data(); | 77 | 340 | UInt8* __restrict c_pos = c.data(); | 78 | 340 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.70k | while (a_pos < a_end) { | 81 | 6.36k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6.36k | ++a_pos; | 83 | 6.36k | ++b_pos; | 84 | 6.36k | ++c_pos; | 85 | 6.36k | } | 86 | 340 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 80 | while (a_pos < a_end) { | 81 | 57 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 57 | ++a_pos; | 83 | 57 | ++b_pos; | 84 | 57 | ++c_pos; | 85 | 57 | } | 86 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 954 | PaddedPODArray<UInt8>& c) { | 74 | 954 | size_t size = a.size(); | 75 | 954 | const A* __restrict a_pos = a.data(); | 76 | 954 | const B* __restrict b_pos = b.data(); | 77 | 954 | UInt8* __restrict c_pos = c.data(); | 78 | 954 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.63M | while (a_pos < a_end) { | 81 | 2.63M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.63M | ++a_pos; | 83 | 2.63M | ++b_pos; | 84 | 2.63M | ++c_pos; | 85 | 2.63M | } | 86 | 954 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 35 | PaddedPODArray<UInt8>& c) { | 74 | 35 | size_t size = a.size(); | 75 | 35 | const A* __restrict a_pos = a.data(); | 76 | 35 | const B* __restrict b_pos = b.data(); | 77 | 35 | UInt8* __restrict c_pos = c.data(); | 78 | 35 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 90 | while (a_pos < a_end) { | 81 | 55 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 55 | ++a_pos; | 83 | 55 | ++b_pos; | 84 | 55 | ++c_pos; | 85 | 55 | } | 86 | 35 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 75 | PaddedPODArray<UInt8>& c) { | 74 | 75 | size_t size = a.size(); | 75 | 75 | const A* __restrict a_pos = a.data(); | 76 | 75 | const B* __restrict b_pos = b.data(); | 77 | 75 | UInt8* __restrict c_pos = c.data(); | 78 | 75 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 394 | while (a_pos < a_end) { | 81 | 319 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 319 | ++a_pos; | 83 | 319 | ++b_pos; | 84 | 319 | ++c_pos; | 85 | 319 | } | 86 | 75 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 112 | PaddedPODArray<UInt8>& c) { | 74 | 112 | size_t size = a.size(); | 75 | 112 | const A* __restrict a_pos = a.data(); | 76 | 112 | const B* __restrict b_pos = b.data(); | 77 | 112 | UInt8* __restrict c_pos = c.data(); | 78 | 112 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 376 | while (a_pos < a_end) { | 81 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 264 | ++a_pos; | 83 | 264 | ++b_pos; | 84 | 264 | ++c_pos; | 85 | 264 | } | 86 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 71 | PaddedPODArray<UInt8>& c) { | 74 | 71 | size_t size = a.size(); | 75 | 71 | const A* __restrict a_pos = a.data(); | 76 | 71 | const B* __restrict b_pos = b.data(); | 77 | 71 | UInt8* __restrict c_pos = c.data(); | 78 | 71 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 8.57k | while (a_pos < a_end) { | 81 | 8.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 8.50k | ++a_pos; | 83 | 8.50k | ++b_pos; | 84 | 8.50k | ++c_pos; | 85 | 8.50k | } | 86 | 71 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 179 | PaddedPODArray<UInt8>& c) { | 74 | 179 | size_t size = a.size(); | 75 | 179 | const A* __restrict a_pos = a.data(); | 76 | 179 | const B* __restrict b_pos = b.data(); | 77 | 179 | UInt8* __restrict c_pos = c.data(); | 78 | 179 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 800k | while (a_pos < a_end) { | 81 | 800k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 800k | ++a_pos; | 83 | 800k | ++b_pos; | 84 | 800k | ++c_pos; | 85 | 800k | } | 86 | 179 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 21 | PaddedPODArray<UInt8>& c) { | 74 | 21 | size_t size = a.size(); | 75 | 21 | const A* __restrict a_pos = a.data(); | 76 | 21 | const B* __restrict b_pos = b.data(); | 77 | 21 | UInt8* __restrict c_pos = c.data(); | 78 | 21 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 61 | while (a_pos < a_end) { | 81 | 40 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 40 | ++a_pos; | 83 | 40 | ++b_pos; | 84 | 40 | ++c_pos; | 85 | 40 | } | 86 | 21 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 30 | PaddedPODArray<UInt8>& c) { | 74 | 30 | size_t size = a.size(); | 75 | 30 | const A* __restrict a_pos = a.data(); | 76 | 30 | const B* __restrict b_pos = b.data(); | 77 | 30 | UInt8* __restrict c_pos = c.data(); | 78 | 30 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 119 | while (a_pos < a_end) { | 81 | 89 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 89 | ++a_pos; | 83 | 89 | ++b_pos; | 84 | 89 | ++c_pos; | 85 | 89 | } | 86 | 30 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 6 | PaddedPODArray<UInt8>& c) { | 74 | 6 | size_t size = a.size(); | 75 | 6 | const A* __restrict a_pos = a.data(); | 76 | 6 | const B* __restrict b_pos = b.data(); | 77 | 6 | UInt8* __restrict c_pos = c.data(); | 78 | 6 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 65 | while (a_pos < a_end) { | 81 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 59 | ++a_pos; | 83 | 59 | ++b_pos; | 84 | 59 | ++c_pos; | 85 | 59 | } | 86 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 361 | PaddedPODArray<UInt8>& c) { | 74 | 361 | size_t size = a.size(); | 75 | 361 | const A* __restrict a_pos = a.data(); | 76 | 361 | const B* __restrict b_pos = b.data(); | 77 | 361 | UInt8* __restrict c_pos = c.data(); | 78 | 361 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.46k | while (a_pos < a_end) { | 81 | 1.10k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.10k | ++a_pos; | 83 | 1.10k | ++b_pos; | 84 | 1.10k | ++c_pos; | 85 | 1.10k | } | 86 | 361 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 16 | PaddedPODArray<UInt8>& c) { | 74 | 16 | size_t size = a.size(); | 75 | 16 | const A* __restrict a_pos = a.data(); | 76 | 16 | const B* __restrict b_pos = b.data(); | 77 | 16 | UInt8* __restrict c_pos = c.data(); | 78 | 16 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 4.14k | while (a_pos < a_end) { | 81 | 4.13k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4.13k | ++a_pos; | 83 | 4.13k | ++b_pos; | 84 | 4.13k | ++c_pos; | 85 | 4.13k | } | 86 | 16 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 24 | PaddedPODArray<UInt8>& c) { | 74 | 24 | size_t size = a.size(); | 75 | 24 | const A* __restrict a_pos = a.data(); | 76 | 24 | const B* __restrict b_pos = b.data(); | 77 | 24 | UInt8* __restrict c_pos = c.data(); | 78 | 24 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12.3k | while (a_pos < a_end) { | 81 | 12.3k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 12.3k | ++a_pos; | 83 | 12.3k | ++b_pos; | 84 | 12.3k | ++c_pos; | 85 | 12.3k | } | 86 | 24 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 108 | PaddedPODArray<UInt8>& c) { | 74 | 108 | size_t size = a.size(); | 75 | 108 | const A* __restrict a_pos = a.data(); | 76 | 108 | const B* __restrict b_pos = b.data(); | 77 | 108 | UInt8* __restrict c_pos = c.data(); | 78 | 108 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 864 | while (a_pos < a_end) { | 81 | 756 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 756 | ++a_pos; | 83 | 756 | ++b_pos; | 84 | 756 | ++c_pos; | 85 | 756 | } | 86 | 108 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 68 | while (a_pos < a_end) { | 81 | 45 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 45 | ++a_pos; | 83 | 45 | ++b_pos; | 84 | 45 | ++c_pos; | 85 | 45 | } | 86 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 86 | PaddedPODArray<UInt8>& c) { | 74 | 86 | size_t size = a.size(); | 75 | 86 | const A* __restrict a_pos = a.data(); | 76 | 86 | const B* __restrict b_pos = b.data(); | 77 | 86 | UInt8* __restrict c_pos = c.data(); | 78 | 86 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 346 | while (a_pos < a_end) { | 81 | 260 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 260 | ++a_pos; | 83 | 260 | ++b_pos; | 84 | 260 | ++c_pos; | 85 | 260 | } | 86 | 86 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.78k | PaddedPODArray<UInt8>& c) { | 74 | 1.78k | size_t size = a.size(); | 75 | 1.78k | const A* __restrict a_pos = a.data(); | 76 | 1.78k | const B* __restrict b_pos = b.data(); | 77 | 1.78k | UInt8* __restrict c_pos = c.data(); | 78 | 1.78k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.19M | while (a_pos < a_end) { | 81 | 1.19M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.19M | ++a_pos; | 83 | 1.19M | ++b_pos; | 84 | 1.19M | ++c_pos; | 85 | 1.19M | } | 86 | 1.78k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 235 | PaddedPODArray<UInt8>& c) { | 74 | 235 | size_t size = a.size(); | 75 | 235 | const A* __restrict a_pos = a.data(); | 76 | 235 | const B* __restrict b_pos = b.data(); | 77 | 235 | UInt8* __restrict c_pos = c.data(); | 78 | 235 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 818 | while (a_pos < a_end) { | 81 | 583 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 583 | ++a_pos; | 83 | 583 | ++b_pos; | 84 | 583 | ++c_pos; | 85 | 583 | } | 86 | 235 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 109 | PaddedPODArray<UInt8>& c) { | 74 | 109 | size_t size = a.size(); | 75 | 109 | const A* __restrict a_pos = a.data(); | 76 | 109 | const B* __restrict b_pos = b.data(); | 77 | 109 | UInt8* __restrict c_pos = c.data(); | 78 | 109 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 235 | while (a_pos < a_end) { | 81 | 126 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 126 | ++a_pos; | 83 | 126 | ++b_pos; | 84 | 126 | ++c_pos; | 85 | 126 | } | 86 | 109 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 220 | PaddedPODArray<UInt8>& c) { | 74 | 220 | size_t size = a.size(); | 75 | 220 | const A* __restrict a_pos = a.data(); | 76 | 220 | const B* __restrict b_pos = b.data(); | 77 | 220 | UInt8* __restrict c_pos = c.data(); | 78 | 220 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 614 | while (a_pos < a_end) { | 81 | 394 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 394 | ++a_pos; | 83 | 394 | ++b_pos; | 84 | 394 | ++c_pos; | 85 | 394 | } | 86 | 220 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 159 | PaddedPODArray<UInt8>& c) { | 74 | 159 | size_t size = a.size(); | 75 | 159 | const A* __restrict a_pos = a.data(); | 76 | 159 | const B* __restrict b_pos = b.data(); | 77 | 159 | UInt8* __restrict c_pos = c.data(); | 78 | 159 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 494 | while (a_pos < a_end) { | 81 | 335 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 335 | ++a_pos; | 83 | 335 | ++b_pos; | 84 | 335 | ++c_pos; | 85 | 335 | } | 86 | 159 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 916 | PaddedPODArray<UInt8>& c) { | 74 | 916 | size_t size = a.size(); | 75 | 916 | const A* __restrict a_pos = a.data(); | 76 | 916 | const B* __restrict b_pos = b.data(); | 77 | 916 | UInt8* __restrict c_pos = c.data(); | 78 | 916 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 18.9k | while (a_pos < a_end) { | 81 | 17.9k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 17.9k | ++a_pos; | 83 | 17.9k | ++b_pos; | 84 | 17.9k | ++c_pos; | 85 | 17.9k | } | 86 | 916 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 273 | PaddedPODArray<UInt8>& c) { | 74 | 273 | size_t size = a.size(); | 75 | 273 | const A* __restrict a_pos = a.data(); | 76 | 273 | const B* __restrict b_pos = b.data(); | 77 | 273 | UInt8* __restrict c_pos = c.data(); | 78 | 273 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 349k | while (a_pos < a_end) { | 81 | 349k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 349k | ++a_pos; | 83 | 349k | ++b_pos; | 84 | 349k | ++c_pos; | 85 | 349k | } | 86 | 273 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 132 | PaddedPODArray<UInt8>& c) { | 74 | 132 | size_t size = a.size(); | 75 | 132 | const A* __restrict a_pos = a.data(); | 76 | 132 | const B* __restrict b_pos = b.data(); | 77 | 132 | UInt8* __restrict c_pos = c.data(); | 78 | 132 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 438 | while (a_pos < a_end) { | 81 | 306 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 306 | ++a_pos; | 83 | 306 | ++b_pos; | 84 | 306 | ++c_pos; | 85 | 306 | } | 86 | 132 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 110 | PaddedPODArray<UInt8>& c) { | 74 | 110 | size_t size = a.size(); | 75 | 110 | const A* __restrict a_pos = a.data(); | 76 | 110 | const B* __restrict b_pos = b.data(); | 77 | 110 | UInt8* __restrict c_pos = c.data(); | 78 | 110 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 868 | while (a_pos < a_end) { | 81 | 758 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 758 | ++a_pos; | 83 | 758 | ++b_pos; | 84 | 758 | ++c_pos; | 85 | 758 | } | 86 | 110 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 131 | PaddedPODArray<UInt8>& c) { | 74 | 131 | size_t size = a.size(); | 75 | 131 | const A* __restrict a_pos = a.data(); | 76 | 131 | const B* __restrict b_pos = b.data(); | 77 | 131 | UInt8* __restrict c_pos = c.data(); | 78 | 131 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 455 | while (a_pos < a_end) { | 81 | 324 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 324 | ++a_pos; | 83 | 324 | ++b_pos; | 84 | 324 | ++c_pos; | 85 | 324 | } | 86 | 131 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 134 | PaddedPODArray<UInt8>& c) { | 74 | 134 | size_t size = a.size(); | 75 | 134 | const A* __restrict a_pos = a.data(); | 76 | 134 | const B* __restrict b_pos = b.data(); | 77 | 134 | UInt8* __restrict c_pos = c.data(); | 78 | 134 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 485 | while (a_pos < a_end) { | 81 | 351 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 351 | ++a_pos; | 83 | 351 | ++b_pos; | 84 | 351 | ++c_pos; | 85 | 351 | } | 86 | 134 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 401 | PaddedPODArray<UInt8>& c) { | 74 | 401 | size_t size = a.size(); | 75 | 401 | const A* __restrict a_pos = a.data(); | 76 | 401 | const B* __restrict b_pos = b.data(); | 77 | 401 | UInt8* __restrict c_pos = c.data(); | 78 | 401 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.04k | while (a_pos < a_end) { | 81 | 5.64k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.64k | ++a_pos; | 83 | 5.64k | ++b_pos; | 84 | 5.64k | ++c_pos; | 85 | 5.64k | } | 86 | 401 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 26 | PaddedPODArray<UInt8>& c) { | 74 | 26 | size_t size = a.size(); | 75 | 26 | const A* __restrict a_pos = a.data(); | 76 | 26 | const B* __restrict b_pos = b.data(); | 77 | 26 | UInt8* __restrict c_pos = c.data(); | 78 | 26 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 72 | while (a_pos < a_end) { | 81 | 46 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 46 | ++a_pos; | 83 | 46 | ++b_pos; | 84 | 46 | ++c_pos; | 85 | 46 | } | 86 | 26 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 5 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 16.4k | while (a_pos < a_end) { | 81 | 16.4k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 16.4k | ++a_pos; | 83 | 16.4k | ++b_pos; | 84 | 16.4k | ++c_pos; | 85 | 16.4k | } | 86 | 23 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 75 | PaddedPODArray<UInt8>& c) { | 74 | 75 | size_t size = a.size(); | 75 | 75 | const A* __restrict a_pos = a.data(); | 76 | 75 | const B* __restrict b_pos = b.data(); | 77 | 75 | UInt8* __restrict c_pos = c.data(); | 78 | 75 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 202 | while (a_pos < a_end) { | 81 | 127 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 127 | ++a_pos; | 83 | 127 | ++b_pos; | 84 | 127 | ++c_pos; | 85 | 127 | } | 86 | 75 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
87 | | |
88 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
89 | 59.8k | PaddedPODArray<UInt8>& c) { |
90 | 59.8k | size_t size = a.size(); |
91 | 59.8k | const A* __restrict a_pos = a.data(); |
92 | 59.8k | UInt8* __restrict c_pos = c.data(); |
93 | 59.8k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 38.0M | while (a_pos < a_end) { |
96 | 37.9M | *c_pos = Op::apply(*a_pos, b); |
97 | 37.9M | ++a_pos; |
98 | 37.9M | ++c_pos; |
99 | 37.9M | } |
100 | 59.8k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 32 | PaddedPODArray<UInt8>& c) { | 90 | 32 | size_t size = a.size(); | 91 | 32 | const A* __restrict a_pos = a.data(); | 92 | 32 | UInt8* __restrict c_pos = c.data(); | 93 | 32 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 181 | while (a_pos < a_end) { | 96 | 149 | *c_pos = Op::apply(*a_pos, b); | 97 | 149 | ++a_pos; | 98 | 149 | ++c_pos; | 99 | 149 | } | 100 | 32 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 389 | PaddedPODArray<UInt8>& c) { | 90 | 389 | size_t size = a.size(); | 91 | 389 | const A* __restrict a_pos = a.data(); | 92 | 389 | UInt8* __restrict c_pos = c.data(); | 93 | 389 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 204k | while (a_pos < a_end) { | 96 | 204k | *c_pos = Op::apply(*a_pos, b); | 97 | 204k | ++a_pos; | 98 | 204k | ++c_pos; | 99 | 204k | } | 100 | 389 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 178 | PaddedPODArray<UInt8>& c) { | 90 | 178 | size_t size = a.size(); | 91 | 178 | const A* __restrict a_pos = a.data(); | 92 | 178 | UInt8* __restrict c_pos = c.data(); | 93 | 178 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 125k | while (a_pos < a_end) { | 96 | 125k | *c_pos = Op::apply(*a_pos, b); | 97 | 125k | ++a_pos; | 98 | 125k | ++c_pos; | 99 | 125k | } | 100 | 178 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 89 | PaddedPODArray<UInt8>& c) { | 90 | 89 | size_t size = a.size(); | 91 | 89 | const A* __restrict a_pos = a.data(); | 92 | 89 | UInt8* __restrict c_pos = c.data(); | 93 | 89 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 184 | while (a_pos < a_end) { | 96 | 95 | *c_pos = Op::apply(*a_pos, b); | 97 | 95 | ++a_pos; | 98 | 95 | ++c_pos; | 99 | 95 | } | 100 | 89 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 20 | while (a_pos < a_end) { | 96 | 10 | *c_pos = Op::apply(*a_pos, b); | 97 | 10 | ++a_pos; | 98 | 10 | ++c_pos; | 99 | 10 | } | 100 | 10 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.99k | PaddedPODArray<UInt8>& c) { | 90 | 5.99k | size_t size = a.size(); | 91 | 5.99k | const A* __restrict a_pos = a.data(); | 92 | 5.99k | UInt8* __restrict c_pos = c.data(); | 93 | 5.99k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.24M | while (a_pos < a_end) { | 96 | 9.23M | *c_pos = Op::apply(*a_pos, b); | 97 | 9.23M | ++a_pos; | 98 | 9.23M | ++c_pos; | 99 | 9.23M | } | 100 | 5.99k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 305 | PaddedPODArray<UInt8>& c) { | 90 | 305 | size_t size = a.size(); | 91 | 305 | const A* __restrict a_pos = a.data(); | 92 | 305 | UInt8* __restrict c_pos = c.data(); | 93 | 305 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 101k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 305 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.28k | PaddedPODArray<UInt8>& c) { | 90 | 2.28k | size_t size = a.size(); | 91 | 2.28k | const A* __restrict a_pos = a.data(); | 92 | 2.28k | UInt8* __restrict c_pos = c.data(); | 93 | 2.28k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 202k | while (a_pos < a_end) { | 96 | 200k | *c_pos = Op::apply(*a_pos, b); | 97 | 200k | ++a_pos; | 98 | 200k | ++c_pos; | 99 | 200k | } | 100 | 2.28k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7.17k | PaddedPODArray<UInt8>& c) { | 90 | 7.17k | size_t size = a.size(); | 91 | 7.17k | const A* __restrict a_pos = a.data(); | 92 | 7.17k | UInt8* __restrict c_pos = c.data(); | 93 | 7.17k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.46M | while (a_pos < a_end) { | 96 | 5.46M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.46M | ++a_pos; | 98 | 5.46M | ++c_pos; | 99 | 5.46M | } | 100 | 7.17k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 37 | PaddedPODArray<UInt8>& c) { | 90 | 37 | size_t size = a.size(); | 91 | 37 | const A* __restrict a_pos = a.data(); | 92 | 37 | UInt8* __restrict c_pos = c.data(); | 93 | 37 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 100k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 37 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7 | PaddedPODArray<UInt8>& c) { | 90 | 7 | size_t size = a.size(); | 91 | 7 | const A* __restrict a_pos = a.data(); | 92 | 7 | UInt8* __restrict c_pos = c.data(); | 93 | 7 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 21 | while (a_pos < a_end) { | 96 | 14 | *c_pos = Op::apply(*a_pos, b); | 97 | 14 | ++a_pos; | 98 | 14 | ++c_pos; | 99 | 14 | } | 100 | 7 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 4 | *c_pos = Op::apply(*a_pos, b); | 97 | 4 | ++a_pos; | 98 | 4 | ++c_pos; | 99 | 4 | } | 100 | 4 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.02k | PaddedPODArray<UInt8>& c) { | 90 | 2.02k | size_t size = a.size(); | 91 | 2.02k | const A* __restrict a_pos = a.data(); | 92 | 2.02k | UInt8* __restrict c_pos = c.data(); | 93 | 2.02k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 68.5k | while (a_pos < a_end) { | 96 | 66.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 66.5k | ++a_pos; | 98 | 66.5k | ++c_pos; | 99 | 66.5k | } | 100 | 2.02k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 611 | PaddedPODArray<UInt8>& c) { | 90 | 611 | size_t size = a.size(); | 91 | 611 | const A* __restrict a_pos = a.data(); | 92 | 611 | UInt8* __restrict c_pos = c.data(); | 93 | 611 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 713k | while (a_pos < a_end) { | 96 | 712k | *c_pos = Op::apply(*a_pos, b); | 97 | 712k | ++a_pos; | 98 | 712k | ++c_pos; | 99 | 712k | } | 100 | 611 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 82 | while (a_pos < a_end) { | 96 | 51 | *c_pos = Op::apply(*a_pos, b); | 97 | 51 | ++a_pos; | 98 | 51 | ++c_pos; | 99 | 51 | } | 100 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 6 | *c_pos = Op::apply(*a_pos, b); | 97 | 6 | ++a_pos; | 98 | 6 | ++c_pos; | 99 | 6 | } | 100 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 78 | while (a_pos < a_end) { | 96 | 50 | *c_pos = Op::apply(*a_pos, b); | 97 | 50 | ++a_pos; | 98 | 50 | ++c_pos; | 99 | 50 | } | 100 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 282 | PaddedPODArray<UInt8>& c) { | 90 | 282 | size_t size = a.size(); | 91 | 282 | const A* __restrict a_pos = a.data(); | 92 | 282 | UInt8* __restrict c_pos = c.data(); | 93 | 282 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.01k | while (a_pos < a_end) { | 96 | 1.73k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.73k | ++a_pos; | 98 | 1.73k | ++c_pos; | 99 | 1.73k | } | 100 | 282 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 768 | PaddedPODArray<UInt8>& c) { | 90 | 768 | size_t size = a.size(); | 91 | 768 | const A* __restrict a_pos = a.data(); | 92 | 768 | UInt8* __restrict c_pos = c.data(); | 93 | 768 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.95k | while (a_pos < a_end) { | 96 | 5.18k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.18k | ++a_pos; | 98 | 5.18k | ++c_pos; | 99 | 5.18k | } | 100 | 768 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 70 | while (a_pos < a_end) { | 96 | 42 | *c_pos = Op::apply(*a_pos, b); | 97 | 42 | ++a_pos; | 98 | 42 | ++c_pos; | 99 | 42 | } | 100 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 40 | PaddedPODArray<UInt8>& c) { | 90 | 40 | size_t size = a.size(); | 91 | 40 | const A* __restrict a_pos = a.data(); | 92 | 40 | UInt8* __restrict c_pos = c.data(); | 93 | 40 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 282 | while (a_pos < a_end) { | 96 | 242 | *c_pos = Op::apply(*a_pos, b); | 97 | 242 | ++a_pos; | 98 | 242 | ++c_pos; | 99 | 242 | } | 100 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 41 | PaddedPODArray<UInt8>& c) { | 90 | 41 | size_t size = a.size(); | 91 | 41 | const A* __restrict a_pos = a.data(); | 92 | 41 | UInt8* __restrict c_pos = c.data(); | 93 | 41 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 149 | while (a_pos < a_end) { | 96 | 108 | *c_pos = Op::apply(*a_pos, b); | 97 | 108 | ++a_pos; | 98 | 108 | ++c_pos; | 99 | 108 | } | 100 | 41 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 416 | PaddedPODArray<UInt8>& c) { | 90 | 416 | size_t size = a.size(); | 91 | 416 | const A* __restrict a_pos = a.data(); | 92 | 416 | UInt8* __restrict c_pos = c.data(); | 93 | 416 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.34M | while (a_pos < a_end) { | 96 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.34M | ++a_pos; | 98 | 1.34M | ++c_pos; | 99 | 1.34M | } | 100 | 416 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 5 | *c_pos = Op::apply(*a_pos, b); | 97 | 5 | ++a_pos; | 98 | 5 | ++c_pos; | 99 | 5 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 59 | PaddedPODArray<UInt8>& c) { | 90 | 59 | size_t size = a.size(); | 91 | 59 | const A* __restrict a_pos = a.data(); | 92 | 59 | UInt8* __restrict c_pos = c.data(); | 93 | 59 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 263 | while (a_pos < a_end) { | 96 | 204 | *c_pos = Op::apply(*a_pos, b); | 97 | 204 | ++a_pos; | 98 | 204 | ++c_pos; | 99 | 204 | } | 100 | 59 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 37 | PaddedPODArray<UInt8>& c) { | 90 | 37 | size_t size = a.size(); | 91 | 37 | const A* __restrict a_pos = a.data(); | 92 | 37 | UInt8* __restrict c_pos = c.data(); | 93 | 37 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86 | while (a_pos < a_end) { | 96 | 49 | *c_pos = Op::apply(*a_pos, b); | 97 | 49 | ++a_pos; | 98 | 49 | ++c_pos; | 99 | 49 | } | 100 | 37 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 112 | while (a_pos < a_end) { | 96 | 66 | *c_pos = Op::apply(*a_pos, b); | 97 | 66 | ++a_pos; | 98 | 66 | ++c_pos; | 99 | 66 | } | 100 | 46 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 7 | *c_pos = Op::apply(*a_pos, b); | 97 | 7 | ++a_pos; | 98 | 7 | ++c_pos; | 99 | 7 | } | 100 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.56k | PaddedPODArray<UInt8>& c) { | 90 | 1.56k | size_t size = a.size(); | 91 | 1.56k | const A* __restrict a_pos = a.data(); | 92 | 1.56k | UInt8* __restrict c_pos = c.data(); | 93 | 1.56k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 13.8k | while (a_pos < a_end) { | 96 | 12.2k | *c_pos = Op::apply(*a_pos, b); | 97 | 12.2k | ++a_pos; | 98 | 12.2k | ++c_pos; | 99 | 12.2k | } | 100 | 1.56k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.15k | PaddedPODArray<UInt8>& c) { | 90 | 2.15k | size_t size = a.size(); | 91 | 2.15k | const A* __restrict a_pos = a.data(); | 92 | 2.15k | UInt8* __restrict c_pos = c.data(); | 93 | 2.15k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.88k | while (a_pos < a_end) { | 96 | 3.73k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.73k | ++a_pos; | 98 | 3.73k | ++c_pos; | 99 | 3.73k | } | 100 | 2.15k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.00k | PaddedPODArray<UInt8>& c) { | 90 | 2.00k | size_t size = a.size(); | 91 | 2.00k | const A* __restrict a_pos = a.data(); | 92 | 2.00k | UInt8* __restrict c_pos = c.data(); | 93 | 2.00k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.35k | while (a_pos < a_end) { | 96 | 5.35k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.35k | ++a_pos; | 98 | 5.35k | ++c_pos; | 99 | 5.35k | } | 100 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 242 | PaddedPODArray<UInt8>& c) { | 90 | 242 | size_t size = a.size(); | 91 | 242 | const A* __restrict a_pos = a.data(); | 92 | 242 | UInt8* __restrict c_pos = c.data(); | 93 | 242 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.13k | while (a_pos < a_end) { | 96 | 893 | *c_pos = Op::apply(*a_pos, b); | 97 | 893 | ++a_pos; | 98 | 893 | ++c_pos; | 99 | 893 | } | 100 | 242 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10.4k | PaddedPODArray<UInt8>& c) { | 90 | 10.4k | size_t size = a.size(); | 91 | 10.4k | const A* __restrict a_pos = a.data(); | 92 | 10.4k | UInt8* __restrict c_pos = c.data(); | 93 | 10.4k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.27M | while (a_pos < a_end) { | 96 | 5.26M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.26M | ++a_pos; | 98 | 5.26M | ++c_pos; | 99 | 5.26M | } | 100 | 10.4k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4.60k | PaddedPODArray<UInt8>& c) { | 90 | 4.60k | size_t size = a.size(); | 91 | 4.60k | const A* __restrict a_pos = a.data(); | 92 | 4.60k | UInt8* __restrict c_pos = c.data(); | 93 | 4.60k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 977k | while (a_pos < a_end) { | 96 | 972k | *c_pos = Op::apply(*a_pos, b); | 97 | 972k | ++a_pos; | 98 | 972k | ++c_pos; | 99 | 972k | } | 100 | 4.60k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.82k | PaddedPODArray<UInt8>& c) { | 90 | 1.82k | size_t size = a.size(); | 91 | 1.82k | const A* __restrict a_pos = a.data(); | 92 | 1.82k | UInt8* __restrict c_pos = c.data(); | 93 | 1.82k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 99.3k | while (a_pos < a_end) { | 96 | 97.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 97.4k | ++a_pos; | 98 | 97.4k | ++c_pos; | 99 | 97.4k | } | 100 | 1.82k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.04k | PaddedPODArray<UInt8>& c) { | 90 | 1.04k | size_t size = a.size(); | 91 | 1.04k | const A* __restrict a_pos = a.data(); | 92 | 1.04k | UInt8* __restrict c_pos = c.data(); | 93 | 1.04k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 32.7k | while (a_pos < a_end) { | 96 | 31.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 31.7k | ++a_pos; | 98 | 31.7k | ++c_pos; | 99 | 31.7k | } | 100 | 1.04k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 278 | PaddedPODArray<UInt8>& c) { | 90 | 278 | size_t size = a.size(); | 91 | 278 | const A* __restrict a_pos = a.data(); | 92 | 278 | UInt8* __restrict c_pos = c.data(); | 93 | 278 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.91k | while (a_pos < a_end) { | 96 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.63k | ++a_pos; | 98 | 1.63k | ++c_pos; | 99 | 1.63k | } | 100 | 278 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 74 | PaddedPODArray<UInt8>& c) { | 90 | 74 | size_t size = a.size(); | 91 | 74 | const A* __restrict a_pos = a.data(); | 92 | 74 | UInt8* __restrict c_pos = c.data(); | 93 | 74 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 85.1k | while (a_pos < a_end) { | 96 | 85.0k | *c_pos = Op::apply(*a_pos, b); | 97 | 85.0k | ++a_pos; | 98 | 85.0k | ++c_pos; | 99 | 85.0k | } | 100 | 74 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 31 | while (a_pos < a_end) { | 96 | 28 | *c_pos = Op::apply(*a_pos, b); | 97 | 28 | ++a_pos; | 98 | 28 | ++c_pos; | 99 | 28 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 22 | while (a_pos < a_end) { | 96 | 20 | *c_pos = Op::apply(*a_pos, b); | 97 | 20 | ++a_pos; | 98 | 20 | ++c_pos; | 99 | 20 | } | 100 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 507 | PaddedPODArray<UInt8>& c) { | 90 | 507 | size_t size = a.size(); | 91 | 507 | const A* __restrict a_pos = a.data(); | 92 | 507 | UInt8* __restrict c_pos = c.data(); | 93 | 507 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.12k | while (a_pos < a_end) { | 96 | 3.61k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.61k | ++a_pos; | 98 | 3.61k | ++c_pos; | 99 | 3.61k | } | 100 | 507 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 347 | PaddedPODArray<UInt8>& c) { | 90 | 347 | size_t size = a.size(); | 91 | 347 | const A* __restrict a_pos = a.data(); | 92 | 347 | UInt8* __restrict c_pos = c.data(); | 93 | 347 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.02k | while (a_pos < a_end) { | 96 | 6.67k | *c_pos = Op::apply(*a_pos, b); | 97 | 6.67k | ++a_pos; | 98 | 6.67k | ++c_pos; | 99 | 6.67k | } | 100 | 347 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 401 | PaddedPODArray<UInt8>& c) { | 90 | 401 | size_t size = a.size(); | 91 | 401 | const A* __restrict a_pos = a.data(); | 92 | 401 | UInt8* __restrict c_pos = c.data(); | 93 | 401 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.18k | while (a_pos < a_end) { | 96 | 2.78k | *c_pos = Op::apply(*a_pos, b); | 97 | 2.78k | ++a_pos; | 98 | 2.78k | ++c_pos; | 99 | 2.78k | } | 100 | 401 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 564 | PaddedPODArray<UInt8>& c) { | 90 | 564 | size_t size = a.size(); | 91 | 564 | const A* __restrict a_pos = a.data(); | 92 | 564 | UInt8* __restrict c_pos = c.data(); | 93 | 564 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.02k | while (a_pos < a_end) { | 96 | 8.46k | *c_pos = Op::apply(*a_pos, b); | 97 | 8.46k | ++a_pos; | 98 | 8.46k | ++c_pos; | 99 | 8.46k | } | 100 | 564 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.21k | PaddedPODArray<UInt8>& c) { | 90 | 1.21k | size_t size = a.size(); | 91 | 1.21k | const A* __restrict a_pos = a.data(); | 92 | 1.21k | UInt8* __restrict c_pos = c.data(); | 93 | 1.21k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 284k | while (a_pos < a_end) { | 96 | 283k | *c_pos = Op::apply(*a_pos, b); | 97 | 283k | ++a_pos; | 98 | 283k | ++c_pos; | 99 | 283k | } | 100 | 1.21k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 30 | PaddedPODArray<UInt8>& c) { | 90 | 30 | size_t size = a.size(); | 91 | 30 | const A* __restrict a_pos = a.data(); | 92 | 30 | UInt8* __restrict c_pos = c.data(); | 93 | 30 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 131k | while (a_pos < a_end) { | 96 | 131k | *c_pos = Op::apply(*a_pos, b); | 97 | 131k | ++a_pos; | 98 | 131k | ++c_pos; | 99 | 131k | } | 100 | 30 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 34.7k | while (a_pos < a_end) { | 96 | 34.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 34.7k | ++a_pos; | 98 | 34.7k | ++c_pos; | 99 | 34.7k | } | 100 | 28 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 504 | PaddedPODArray<UInt8>& c) { | 90 | 504 | size_t size = a.size(); | 91 | 504 | const A* __restrict a_pos = a.data(); | 92 | 504 | UInt8* __restrict c_pos = c.data(); | 93 | 504 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.42M | while (a_pos < a_end) { | 96 | 1.42M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.42M | ++a_pos; | 98 | 1.42M | ++c_pos; | 99 | 1.42M | } | 100 | 504 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 131 | PaddedPODArray<UInt8>& c) { | 90 | 131 | size_t size = a.size(); | 91 | 131 | const A* __restrict a_pos = a.data(); | 92 | 131 | UInt8* __restrict c_pos = c.data(); | 93 | 131 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 602k | while (a_pos < a_end) { | 96 | 602k | *c_pos = Op::apply(*a_pos, b); | 97 | 602k | ++a_pos; | 98 | 602k | ++c_pos; | 99 | 602k | } | 100 | 131 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 116 | PaddedPODArray<UInt8>& c) { | 90 | 116 | size_t size = a.size(); | 91 | 116 | const A* __restrict a_pos = a.data(); | 92 | 116 | UInt8* __restrict c_pos = c.data(); | 93 | 116 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 427 | while (a_pos < a_end) { | 96 | 311 | *c_pos = Op::apply(*a_pos, b); | 97 | 311 | ++a_pos; | 98 | 311 | ++c_pos; | 99 | 311 | } | 100 | 116 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 73 | PaddedPODArray<UInt8>& c) { | 90 | 73 | size_t size = a.size(); | 91 | 73 | const A* __restrict a_pos = a.data(); | 92 | 73 | UInt8* __restrict c_pos = c.data(); | 93 | 73 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 359 | while (a_pos < a_end) { | 96 | 286 | *c_pos = Op::apply(*a_pos, b); | 97 | 286 | ++a_pos; | 98 | 286 | ++c_pos; | 99 | 286 | } | 100 | 73 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 113 | while (a_pos < a_end) { | 96 | 67 | *c_pos = Op::apply(*a_pos, b); | 97 | 67 | ++a_pos; | 98 | 67 | ++c_pos; | 99 | 67 | } | 100 | 46 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 38 | PaddedPODArray<UInt8>& c) { | 90 | 38 | size_t size = a.size(); | 91 | 38 | const A* __restrict a_pos = a.data(); | 92 | 38 | UInt8* __restrict c_pos = c.data(); | 93 | 38 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 91 | while (a_pos < a_end) { | 96 | 53 | *c_pos = Op::apply(*a_pos, b); | 97 | 53 | ++a_pos; | 98 | 53 | ++c_pos; | 99 | 53 | } | 100 | 38 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3 | while (a_pos < a_end) { | 96 | 2 | *c_pos = Op::apply(*a_pos, b); | 97 | 2 | ++a_pos; | 98 | 2 | ++c_pos; | 99 | 2 | } | 100 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 41 | PaddedPODArray<UInt8>& c) { | 90 | 41 | size_t size = a.size(); | 91 | 41 | const A* __restrict a_pos = a.data(); | 92 | 41 | UInt8* __restrict c_pos = c.data(); | 93 | 41 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 27.5k | while (a_pos < a_end) { | 96 | 27.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 27.5k | ++a_pos; | 98 | 27.5k | ++c_pos; | 99 | 27.5k | } | 100 | 41 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 59 | PaddedPODArray<UInt8>& c) { | 90 | 59 | size_t size = a.size(); | 91 | 59 | const A* __restrict a_pos = a.data(); | 92 | 59 | UInt8* __restrict c_pos = c.data(); | 93 | 59 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 95.3k | while (a_pos < a_end) { | 96 | 95.3k | *c_pos = Op::apply(*a_pos, b); | 97 | 95.3k | ++a_pos; | 98 | 95.3k | ++c_pos; | 99 | 95.3k | } | 100 | 59 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 65 | PaddedPODArray<UInt8>& c) { | 90 | 65 | size_t size = a.size(); | 91 | 65 | const A* __restrict a_pos = a.data(); | 92 | 65 | UInt8* __restrict c_pos = c.data(); | 93 | 65 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 151k | while (a_pos < a_end) { | 96 | 151k | *c_pos = Op::apply(*a_pos, b); | 97 | 151k | ++a_pos; | 98 | 151k | ++c_pos; | 99 | 151k | } | 100 | 65 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 72 | PaddedPODArray<UInt8>& c) { | 90 | 72 | size_t size = a.size(); | 91 | 72 | const A* __restrict a_pos = a.data(); | 92 | 72 | UInt8* __restrict c_pos = c.data(); | 93 | 72 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 93.5k | while (a_pos < a_end) { | 96 | 93.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 93.4k | ++a_pos; | 98 | 93.4k | ++c_pos; | 99 | 93.4k | } | 100 | 72 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.53k | PaddedPODArray<UInt8>& c) { | 90 | 1.53k | size_t size = a.size(); | 91 | 1.53k | const A* __restrict a_pos = a.data(); | 92 | 1.53k | UInt8* __restrict c_pos = c.data(); | 93 | 1.53k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.12M | while (a_pos < a_end) { | 96 | 3.12M | *c_pos = Op::apply(*a_pos, b); | 97 | 3.12M | ++a_pos; | 98 | 3.12M | ++c_pos; | 99 | 3.12M | } | 100 | 1.53k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.51k | PaddedPODArray<UInt8>& c) { | 90 | 6.51k | size_t size = a.size(); | 91 | 6.51k | const A* __restrict a_pos = a.data(); | 92 | 6.51k | UInt8* __restrict c_pos = c.data(); | 93 | 6.51k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.07M | while (a_pos < a_end) { | 96 | 7.06M | *c_pos = Op::apply(*a_pos, b); | 97 | 7.06M | ++a_pos; | 98 | 7.06M | ++c_pos; | 99 | 7.06M | } | 100 | 6.51k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 777 | PaddedPODArray<UInt8>& c) { | 90 | 777 | size_t size = a.size(); | 91 | 777 | const A* __restrict a_pos = a.data(); | 92 | 777 | UInt8* __restrict c_pos = c.data(); | 93 | 777 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.99k | while (a_pos < a_end) { | 96 | 3.21k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.21k | ++a_pos; | 98 | 3.21k | ++c_pos; | 99 | 3.21k | } | 100 | 777 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 578 | PaddedPODArray<UInt8>& c) { | 90 | 578 | size_t size = a.size(); | 91 | 578 | const A* __restrict a_pos = a.data(); | 92 | 578 | UInt8* __restrict c_pos = c.data(); | 93 | 578 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 46.0k | while (a_pos < a_end) { | 96 | 45.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 45.5k | ++a_pos; | 98 | 45.5k | ++c_pos; | 99 | 45.5k | } | 100 | 578 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 23 | PaddedPODArray<UInt8>& c) { | 90 | 23 | size_t size = a.size(); | 91 | 23 | const A* __restrict a_pos = a.data(); | 92 | 23 | UInt8* __restrict c_pos = c.data(); | 93 | 23 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 87.1k | while (a_pos < a_end) { | 96 | 87.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 87.1k | ++a_pos; | 98 | 87.1k | ++c_pos; | 99 | 87.1k | } | 100 | 23 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 33 | PaddedPODArray<UInt8>& c) { | 90 | 33 | size_t size = a.size(); | 91 | 33 | const A* __restrict a_pos = a.data(); | 92 | 33 | UInt8* __restrict c_pos = c.data(); | 93 | 33 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 36.2k | while (a_pos < a_end) { | 96 | 36.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 36.1k | ++a_pos; | 98 | 36.1k | ++c_pos; | 99 | 36.1k | } | 100 | 33 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 475 | PaddedPODArray<UInt8>& c) { | 90 | 475 | size_t size = a.size(); | 91 | 475 | const A* __restrict a_pos = a.data(); | 92 | 475 | UInt8* __restrict c_pos = c.data(); | 93 | 475 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 49.6k | while (a_pos < a_end) { | 96 | 49.2k | *c_pos = Op::apply(*a_pos, b); | 97 | 49.2k | ++a_pos; | 98 | 49.2k | ++c_pos; | 99 | 49.2k | } | 100 | 475 | } |
_ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 319 | PaddedPODArray<UInt8>& c) { | 90 | 319 | size_t size = a.size(); | 91 | 319 | const A* __restrict a_pos = a.data(); | 92 | 319 | UInt8* __restrict c_pos = c.data(); | 93 | 319 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.42k | while (a_pos < a_end) { | 96 | 3.10k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.10k | ++a_pos; | 98 | 3.10k | ++c_pos; | 99 | 3.10k | } | 100 | 319 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 28 | while (a_pos < a_end) { | 96 | 18 | *c_pos = Op::apply(*a_pos, b); | 97 | 18 | ++a_pos; | 98 | 18 | ++c_pos; | 99 | 18 | } | 100 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 145 | PaddedPODArray<UInt8>& c) { | 90 | 145 | size_t size = a.size(); | 91 | 145 | const A* __restrict a_pos = a.data(); | 92 | 145 | UInt8* __restrict c_pos = c.data(); | 93 | 145 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 355k | while (a_pos < a_end) { | 96 | 355k | *c_pos = Op::apply(*a_pos, b); | 97 | 355k | ++a_pos; | 98 | 355k | ++c_pos; | 99 | 355k | } | 100 | 145 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 92 | PaddedPODArray<UInt8>& c) { | 90 | 92 | size_t size = a.size(); | 91 | 92 | const A* __restrict a_pos = a.data(); | 92 | 92 | UInt8* __restrict c_pos = c.data(); | 93 | 92 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 275k | while (a_pos < a_end) { | 96 | 275k | *c_pos = Op::apply(*a_pos, b); | 97 | 275k | ++a_pos; | 98 | 275k | ++c_pos; | 99 | 275k | } | 100 | 92 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
101 | | |
102 | 8.37k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 8.37k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 8.37k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 102 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 12 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 288 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 288 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 288 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 142 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 142 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 142 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 1.19k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 1.19k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 1.19k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 8 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 8 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 54 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 748 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 748 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 748 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 240 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 228 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 3.69k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 3.69k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 3.69k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 493 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 493 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 493 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 28 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 28 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 252 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 252 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 252 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 193 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 193 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 193 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 84 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 84 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 84 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 77 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 77 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 77 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 549 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 549 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 549 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
105 | | }; |
106 | | |
107 | | /// Generic version, implemented for columns of same type. |
108 | | template <typename Op> |
109 | | struct GenericComparisonImpl { |
110 | 22 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 73 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
112 | 51 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
113 | 51 | } |
114 | 22 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 14 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 44 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 30 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 30 | } | 114 | 14 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 2 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 12 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 10 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 10 | } | 114 | 2 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 13 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 9 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 9 | } | 114 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
115 | | |
116 | 111 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 111 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 190k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 190k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 190k | } |
121 | 111 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 19 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 19 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 60 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 41 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 41 | } | 121 | 19 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 29 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 29 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 84.0k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 83.9k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 83.9k | } | 121 | 29 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 39 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 39 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 106k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 106k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 106k | } | 121 | 39 | } |
|
122 | | |
123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
125 | 1 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); | 125 | 1 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
126 | | }; |
127 | | |
128 | | template <typename Op> |
129 | | struct StringComparisonImpl { |
130 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
131 | | const ColumnString::Offsets& a_offsets, |
132 | | const ColumnString::Chars& b_data, |
133 | | const ColumnString::Offsets& b_offsets, |
134 | 423 | PaddedPODArray<UInt8>& c) { |
135 | 423 | size_t size = a_offsets.size(); |
136 | 423 | ColumnString::Offset prev_a_offset = 0; |
137 | 423 | ColumnString::Offset prev_b_offset = 0; |
138 | 423 | const auto* a_pos = a_data.data(); |
139 | 423 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.57k | for (size_t i = 0; i < size; ++i) { |
142 | 1.15k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.15k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.15k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.15k | 0); |
146 | | |
147 | 1.15k | prev_a_offset = a_offsets[i]; |
148 | 1.15k | prev_b_offset = b_offsets[i]; |
149 | 1.15k | } |
150 | 423 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 2 | PaddedPODArray<UInt8>& c) { | 135 | 2 | size_t size = a_offsets.size(); | 136 | 2 | ColumnString::Offset prev_a_offset = 0; | 137 | 2 | ColumnString::Offset prev_b_offset = 0; | 138 | 2 | const auto* a_pos = a_data.data(); | 139 | 2 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 49 | for (size_t i = 0; i < size; ++i) { | 142 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 47 | 0); | 146 | | | 147 | 47 | prev_a_offset = a_offsets[i]; | 148 | 47 | prev_b_offset = b_offsets[i]; | 149 | 47 | } | 150 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 31 | PaddedPODArray<UInt8>& c) { | 135 | 31 | size_t size = a_offsets.size(); | 136 | 31 | ColumnString::Offset prev_a_offset = 0; | 137 | 31 | ColumnString::Offset prev_b_offset = 0; | 138 | 31 | const auto* a_pos = a_data.data(); | 139 | 31 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 218 | for (size_t i = 0; i < size; ++i) { | 142 | 187 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 187 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 187 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 187 | 0); | 146 | | | 147 | 187 | prev_a_offset = a_offsets[i]; | 148 | 187 | prev_b_offset = b_offsets[i]; | 149 | 187 | } | 150 | 31 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 390 | PaddedPODArray<UInt8>& c) { | 135 | 390 | size_t size = a_offsets.size(); | 136 | 390 | ColumnString::Offset prev_a_offset = 0; | 137 | 390 | ColumnString::Offset prev_b_offset = 0; | 138 | 390 | const auto* a_pos = a_data.data(); | 139 | 390 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.31k | for (size_t i = 0; i < size; ++i) { | 142 | 922 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 922 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 922 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 922 | 0); | 146 | | | 147 | 922 | prev_a_offset = a_offsets[i]; | 148 | 922 | prev_b_offset = b_offsets[i]; | 149 | 922 | } | 150 | 390 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
151 | | |
152 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
153 | | const ColumnString::Offsets& a_offsets, |
154 | | const ColumnString::Chars& b_data, |
155 | | ColumnString::Offset b_size, |
156 | 829 | PaddedPODArray<UInt8>& c) { |
157 | 829 | size_t size = a_offsets.size(); |
158 | 829 | ColumnString::Offset prev_a_offset = 0; |
159 | 829 | const auto* a_pos = a_data.data(); |
160 | 829 | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.06M | for (size_t i = 0; i < size; ++i) { |
163 | 1.06M | c[i] = Op::apply( |
164 | 1.06M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.06M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.06M | 0); |
167 | | |
168 | 1.06M | prev_a_offset = a_offsets[i]; |
169 | 1.06M | } |
170 | 829 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 207 | PaddedPODArray<UInt8>& c) { | 157 | 207 | size_t size = a_offsets.size(); | 158 | 207 | ColumnString::Offset prev_a_offset = 0; | 159 | 207 | const auto* a_pos = a_data.data(); | 160 | 207 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 358k | for (size_t i = 0; i < size; ++i) { | 163 | 358k | c[i] = Op::apply( | 164 | 358k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 358k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 358k | 0); | 167 | | | 168 | 358k | prev_a_offset = a_offsets[i]; | 169 | 358k | } | 170 | 207 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 108 | PaddedPODArray<UInt8>& c) { | 157 | 108 | size_t size = a_offsets.size(); | 158 | 108 | ColumnString::Offset prev_a_offset = 0; | 159 | 108 | const auto* a_pos = a_data.data(); | 160 | 108 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 105k | for (size_t i = 0; i < size; ++i) { | 163 | 105k | c[i] = Op::apply( | 164 | 105k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 105k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 105k | 0); | 167 | | | 168 | 105k | prev_a_offset = a_offsets[i]; | 169 | 105k | } | 170 | 108 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 188 | PaddedPODArray<UInt8>& c) { | 157 | 188 | size_t size = a_offsets.size(); | 158 | 188 | ColumnString::Offset prev_a_offset = 0; | 159 | 188 | const auto* a_pos = a_data.data(); | 160 | 188 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 306k | for (size_t i = 0; i < size; ++i) { | 163 | 306k | c[i] = Op::apply( | 164 | 306k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 306k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 306k | 0); | 167 | | | 168 | 306k | prev_a_offset = a_offsets[i]; | 169 | 306k | } | 170 | 188 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 326 | PaddedPODArray<UInt8>& c) { | 157 | 326 | size_t size = a_offsets.size(); | 158 | 326 | ColumnString::Offset prev_a_offset = 0; | 159 | 326 | const auto* a_pos = a_data.data(); | 160 | 326 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 298k | for (size_t i = 0; i < size; ++i) { | 163 | 297k | c[i] = Op::apply( | 164 | 297k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 297k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 297k | 0); | 167 | | | 168 | 297k | prev_a_offset = a_offsets[i]; | 169 | 297k | } | 170 | 326 | } |
|
171 | | |
172 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
173 | | ColumnString::Offset a_size, |
174 | | const ColumnString::Chars& b_data, |
175 | | const ColumnString::Offsets& b_offsets, |
176 | 76 | PaddedPODArray<UInt8>& c) { |
177 | 76 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
178 | 76 | a_data, a_size, c); |
179 | 76 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 70 | PaddedPODArray<UInt8>& c) { | 177 | 70 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 70 | a_data, a_size, c); | 179 | 70 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 6 | PaddedPODArray<UInt8>& c) { | 177 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 6 | a_data, a_size, c); | 179 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
180 | | }; |
181 | | |
182 | | template <bool positive> |
183 | | struct StringEqualsImpl { |
184 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
185 | | const ColumnString::Offsets& a_offsets, |
186 | | const ColumnString::Chars& b_data, |
187 | | const ColumnString::Offsets& b_offsets, |
188 | 443 | PaddedPODArray<UInt8>& c) { |
189 | 443 | size_t size = a_offsets.size(); |
190 | 443 | ColumnString::Offset prev_a_offset = 0; |
191 | 443 | ColumnString::Offset prev_b_offset = 0; |
192 | 443 | const auto* a_pos = a_data.data(); |
193 | 443 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 13.7k | for (size_t i = 0; i < size; ++i) { |
196 | 13.2k | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 13.2k | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 13.2k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 13.2k | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 13.2k | prev_a_offset = a_offsets[i]; |
203 | 13.2k | prev_b_offset = b_offsets[i]; |
204 | 13.2k | } |
205 | 443 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 428 | PaddedPODArray<UInt8>& c) { | 189 | 428 | size_t size = a_offsets.size(); | 190 | 428 | ColumnString::Offset prev_a_offset = 0; | 191 | 428 | ColumnString::Offset prev_b_offset = 0; | 192 | 428 | const auto* a_pos = a_data.data(); | 193 | 428 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 8.54k | for (size_t i = 0; i < size; ++i) { | 196 | 8.12k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 8.12k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 8.12k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 8.12k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 8.12k | prev_a_offset = a_offsets[i]; | 203 | 8.12k | prev_b_offset = b_offsets[i]; | 204 | 8.12k | } | 205 | 428 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 15 | PaddedPODArray<UInt8>& c) { | 189 | 15 | size_t size = a_offsets.size(); | 190 | 15 | ColumnString::Offset prev_a_offset = 0; | 191 | 15 | ColumnString::Offset prev_b_offset = 0; | 192 | 15 | const auto* a_pos = a_data.data(); | 193 | 15 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 5.15k | for (size_t i = 0; i < size; ++i) { | 196 | 5.14k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 5.14k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 5.14k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 5.14k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 5.14k | prev_a_offset = a_offsets[i]; | 203 | 5.14k | prev_b_offset = b_offsets[i]; | 204 | 5.14k | } | 205 | 15 | } |
|
206 | | |
207 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
208 | | const ColumnString::Offsets& a_offsets, |
209 | | const ColumnString::Chars& b_data, |
210 | | ColumnString::Offset b_size, |
211 | 21.3k | PaddedPODArray<UInt8>& c) { |
212 | 21.3k | size_t size = a_offsets.size(); |
213 | 21.3k | if (b_size == 0) { |
214 | 1 | auto* __restrict data = c.data(); |
215 | 1 | auto* __restrict offsets = a_offsets.data(); |
216 | | |
217 | 1 | ColumnString::Offset prev_a_offset = 0; |
218 | 4 | for (size_t i = 0; i < size; ++i) { |
219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
220 | 3 | prev_a_offset = offsets[i]; |
221 | 3 | } |
222 | 21.3k | } else { |
223 | 21.3k | ColumnString::Offset prev_a_offset = 0; |
224 | 21.3k | const auto* a_pos = a_data.data(); |
225 | 21.3k | const auto* b_pos = b_data.data(); |
226 | 9.71M | for (size_t i = 0; i < size; ++i) { |
227 | 9.69M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 9.69M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 9.69M | b_pos, b_size); |
230 | 9.69M | prev_a_offset = a_offsets[i]; |
231 | 9.69M | } |
232 | 21.3k | } |
233 | 21.3k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 21.2k | PaddedPODArray<UInt8>& c) { | 212 | 21.2k | size_t size = a_offsets.size(); | 213 | 21.2k | if (b_size == 0) { | 214 | 0 | auto* __restrict data = c.data(); | 215 | 0 | auto* __restrict offsets = a_offsets.data(); | 216 | |
| 217 | 0 | ColumnString::Offset prev_a_offset = 0; | 218 | 0 | for (size_t i = 0; i < size; ++i) { | 219 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 0 | prev_a_offset = offsets[i]; | 221 | 0 | } | 222 | 21.2k | } else { | 223 | 21.2k | ColumnString::Offset prev_a_offset = 0; | 224 | 21.2k | const auto* a_pos = a_data.data(); | 225 | 21.2k | const auto* b_pos = b_data.data(); | 226 | 9.65M | for (size_t i = 0; i < size; ++i) { | 227 | 9.63M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 9.63M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 9.63M | b_pos, b_size); | 230 | 9.63M | prev_a_offset = a_offsets[i]; | 231 | 9.63M | } | 232 | 21.2k | } | 233 | 21.2k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 116 | PaddedPODArray<UInt8>& c) { | 212 | 116 | size_t size = a_offsets.size(); | 213 | 116 | if (b_size == 0) { | 214 | 1 | auto* __restrict data = c.data(); | 215 | 1 | auto* __restrict offsets = a_offsets.data(); | 216 | | | 217 | 1 | ColumnString::Offset prev_a_offset = 0; | 218 | 4 | for (size_t i = 0; i < size; ++i) { | 219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 3 | prev_a_offset = offsets[i]; | 221 | 3 | } | 222 | 115 | } else { | 223 | 115 | ColumnString::Offset prev_a_offset = 0; | 224 | 115 | const auto* a_pos = a_data.data(); | 225 | 115 | const auto* b_pos = b_data.data(); | 226 | 58.1k | for (size_t i = 0; i < size; ++i) { | 227 | 58.0k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 58.0k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 58.0k | b_pos, b_size); | 230 | 58.0k | prev_a_offset = a_offsets[i]; | 231 | 58.0k | } | 232 | 115 | } | 233 | 116 | } |
|
234 | | |
235 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
236 | | ColumnString::Offset a_size, |
237 | | const ColumnString::Chars& b_data, |
238 | | const ColumnString::Offsets& b_offsets, |
239 | 16 | PaddedPODArray<UInt8>& c) { |
240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 16 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 16 | PaddedPODArray<UInt8>& c) { | 240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 16 | } |
Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
242 | | }; |
243 | | |
244 | | template <PrimitiveType PT> |
245 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
246 | | |
247 | | template <PrimitiveType PT> |
248 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
249 | | |
250 | | struct NameEquals { |
251 | | static constexpr auto name = "eq"; |
252 | | }; |
253 | | struct NameNotEquals { |
254 | | static constexpr auto name = "ne"; |
255 | | }; |
256 | | struct NameLess { |
257 | | static constexpr auto name = "lt"; |
258 | | }; |
259 | | struct NameGreater { |
260 | | static constexpr auto name = "gt"; |
261 | | }; |
262 | | struct NameLessOrEquals { |
263 | | static constexpr auto name = "le"; |
264 | | }; |
265 | | struct NameGreaterOrEquals { |
266 | | static constexpr auto name = "ge"; |
267 | | }; |
268 | | |
269 | | namespace comparison_zonemap_detail { |
270 | | enum class Op { |
271 | | EQ, |
272 | | NE, |
273 | | LT, |
274 | | LE, |
275 | | GT, |
276 | | GE, |
277 | | }; |
278 | | |
279 | 19 | inline Op symmetric_op(Op op) { |
280 | 19 | switch (op) { |
281 | 0 | case Op::EQ: |
282 | 0 | case Op::NE: |
283 | 0 | return op; |
284 | 11 | case Op::LT: |
285 | 11 | return Op::GT; |
286 | 6 | case Op::LE: |
287 | 6 | return Op::GE; |
288 | 0 | case Op::GT: |
289 | 0 | return Op::LT; |
290 | 2 | case Op::GE: |
291 | 2 | return Op::LE; |
292 | 19 | } |
293 | 0 | __builtin_unreachable(); |
294 | 19 | } |
295 | | |
296 | | // Return true when `L <op> R` cannot be TRUE for any row, given that every non-null value of the |
297 | | // left operand lies in [lmin, lmax] and every non-null value of the right operand lies in |
298 | | // [rmin, rmax]. This only compares the four bounds: callers must already have rejected zone maps |
299 | | // whose bounds are unusable and columns that hold no non-null value at all. |
300 | | // |
301 | | // The slot-vs-literal path passes the literal as the degenerate range [literal, literal], which |
302 | | // reduces every branch below to the plain slot-vs-literal test it replaced. |
303 | | inline bool range_vs_range_no_match(const Field& lmin, const Field& lmax, const Field& rmin, |
304 | 3.41k | const Field& rmax, Op op) { |
305 | 3.41k | switch (op) { |
306 | 1.77k | case Op::EQ: |
307 | | // Disjoint ranges cannot share a value. |
308 | 1.77k | return lmin > rmax || rmin > lmax; |
309 | 163 | case Op::NE: |
310 | | // Only provable when both sides collapse to the same single value. |
311 | 163 | return lmin == lmax && rmin == rmax && lmin == rmin; |
312 | 563 | case Op::LT: |
313 | 563 | return lmin >= rmax; |
314 | 258 | case Op::LE: |
315 | 258 | return lmin > rmax; |
316 | 325 | case Op::GT: |
317 | 325 | return rmin >= lmax; |
318 | 317 | case Op::GE: |
319 | 317 | return rmin > lmax; |
320 | 3.41k | } |
321 | 0 | __builtin_unreachable(); |
322 | 3.41k | } |
323 | | |
324 | | inline ZoneMapFilterResult evaluate_slot_literal(const ZoneMapEvalContext& ctx, |
325 | | const expr_zonemap::SlotLiteral& slot_literal, |
326 | 3.26k | Op op) { |
327 | 3.26k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal.slot_index, |
328 | 3.26k | slot_literal.slot_type); |
329 | 3.26k | if (slot_type == nullptr) { |
330 | 293 | return unsupported_zonemap_filter(ctx); |
331 | 293 | } |
332 | 2.97k | auto zone_map_ptr = ctx.zone_map(slot_literal.slot_index); |
333 | 2.97k | if (zone_map_ptr == nullptr) { |
334 | 44 | return unsupported_zonemap_filter(ctx); |
335 | 44 | } |
336 | 2.93k | const auto& zone_map = *zone_map_ptr; |
337 | 2.93k | if (!zone_map.has_not_null) { |
338 | 55 | return ZoneMapFilterResult::kNoMatch; |
339 | 55 | } |
340 | 2.87k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
341 | 109 | return unsupported_zonemap_filter(ctx); |
342 | 109 | } |
343 | | |
344 | 2.76k | const auto effective_op = slot_literal.literal_on_left ? symmetric_op(op) : op; |
345 | 2.76k | const auto& literal = slot_literal.literal; |
346 | 2.76k | const bool literal_is_nan = literal.is_nan(); |
347 | 2.76k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
348 | 2.76k | (effective_op == Op::NE && !literal_is_nan) || |
349 | 2.76k | (effective_op == Op::GT && !literal_is_nan) || |
350 | 2.76k | effective_op == Op::GE; |
351 | 2.76k | if (ctx.floating_nan_count_unknown(slot_literal.slot_index) && hidden_nan_can_match) { |
352 | | // Parquet bounds omit NaNs, so only operators that cannot match a hidden NaN may prune. |
353 | 52 | return unsupported_zonemap_filter(ctx); |
354 | 52 | } |
355 | 2.71k | return range_vs_range_no_match(zone_map.min_value, zone_map.max_value, literal, literal, |
356 | 2.71k | effective_op) |
357 | 2.71k | ? ZoneMapFilterResult::kNoMatch |
358 | 2.71k | : ZoneMapFilterResult::kMayMatch; |
359 | 2.76k | } |
360 | | |
361 | | inline ZoneMapFilterResult evaluate_slot_slot(const ZoneMapEvalContext& ctx, |
362 | 751 | const expr_zonemap::SlotSlot& slot_slot, Op op) { |
363 | 751 | const auto left_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_slot.left_slot_index, |
364 | 751 | slot_slot.left_type); |
365 | 751 | const auto right_type = expr_zonemap::fetch_compatible_slot_type( |
366 | 751 | ctx, slot_slot.right_slot_index, slot_slot.right_type); |
367 | 751 | if (left_type == nullptr || right_type == nullptr) { |
368 | | // The context skips a slot entirely when the segment cannot apply predicates on it. |
369 | 1 | return unsupported_zonemap_filter(ctx); |
370 | 1 | } |
371 | 750 | const auto left_zone_map = ctx.zone_map(slot_slot.left_slot_index); |
372 | 750 | const auto right_zone_map = ctx.zone_map(slot_slot.right_slot_index); |
373 | 750 | if (left_zone_map == nullptr || right_zone_map == nullptr) { |
374 | | // A slot can be present with a data type but no zone map, so this is a separate check. |
375 | 9 | return unsupported_zonemap_filter(ctx); |
376 | 9 | } |
377 | | // A column holding no non-null value makes the comparison NULL on every row, which never |
378 | | // satisfies a WHERE conjunct. This must run before the range checks below: an all-null zone map |
379 | | // leaves min/max default-constructed as TYPE_NULL, which the range checks would fatal on. |
380 | 741 | if (!left_zone_map->has_not_null || !right_zone_map->has_not_null) { |
381 | 22 | return ZoneMapFilterResult::kNoMatch; |
382 | 22 | } |
383 | 719 | if (!expr_zonemap::range_stats_usable_for_zonemap(*left_zone_map, left_type) || |
384 | 719 | !expr_zonemap::range_stats_usable_for_zonemap(*right_zone_map, right_type)) { |
385 | 9 | return unsupported_zonemap_filter(ctx); |
386 | 9 | } |
387 | | // A native string zone-map max of exactly MAX_ZONE_MAP_INDEX_SIZE bytes was bumped upward, |
388 | | // and may also have been truncated (segments written before the carry fix may hold a bump |
389 | | // that wrapped on 0xff), so a bound of that length is not a reliable fence for a two-sided |
390 | | // proof. A shorter bound is the exact value; the bump never changes the length, so this also |
391 | | // rejects those wrapped bounds. |
392 | | // The test only decides whether to trust the bound as a fence. A Parquet-sourced string bound |
393 | | // shorter than the cap is not necessarily exact, but it is a spec-conservative min/max, which |
394 | | // is all a range proof needs; do not tighten this to assume exactness below the cap. |
395 | | // data_types_compatible pairs strings only with strings, so checking one side's type is enough |
396 | | // to know all four bounds are strings. |
397 | 710 | if (is_string_type(remove_nullable(left_type)->get_primitive_type())) { |
398 | 393 | auto is_untruncated = [](const Field& f) { |
399 | 393 | return f.get<TYPE_STRING>().size() < MAX_ZONE_MAP_INDEX_SIZE; |
400 | 393 | }; |
401 | 99 | if (!is_untruncated(left_zone_map->min_value) || |
402 | 99 | !is_untruncated(left_zone_map->max_value) || |
403 | 99 | !is_untruncated(right_zone_map->min_value) || |
404 | 99 | !is_untruncated(right_zone_map->max_value)) { |
405 | 3 | return unsupported_zonemap_filter(ctx); |
406 | 3 | } |
407 | 99 | } |
408 | | // Parquet bounds omit NaN without recording how many were skipped, so a zone map that looks |
409 | | // like a single point may still hide one, which would flip the NE rule from false to true. The |
410 | | // slot-vs-literal path can reason per operator because it knows whether the literal is NaN; |
411 | | // with two slots there is no literal, so bail out for every operator instead. |
412 | 707 | if (ctx.floating_nan_count_unknown(slot_slot.left_slot_index) || |
413 | 707 | ctx.floating_nan_count_unknown(slot_slot.right_slot_index)) { |
414 | 12 | return unsupported_zonemap_filter(ctx); |
415 | 12 | } |
416 | 695 | return range_vs_range_no_match(left_zone_map->min_value, left_zone_map->max_value, |
417 | 695 | right_zone_map->min_value, right_zone_map->max_value, op) |
418 | 695 | ? ZoneMapFilterResult::kNoMatch |
419 | 695 | : ZoneMapFilterResult::kMayMatch; |
420 | 707 | } |
421 | | |
422 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
423 | 4.00k | Op op) { |
424 | 4.00k | if (auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
425 | 4.00k | slot_literal.has_value()) { |
426 | 3.28k | return evaluate_slot_literal(ctx, *slot_literal, op); |
427 | 3.28k | } |
428 | 723 | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
429 | | // can_evaluate_zonemap_filter accepts exactly the two shapes handled above, so reaching this |
430 | | // point means the capability gate and this evaluator went out of sync. |
431 | 723 | DORIS_CHECK(slot_slot.has_value()); |
432 | 723 | return evaluate_slot_slot(ctx, *slot_slot, op); |
433 | 4.00k | } |
434 | | |
435 | 34.2k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
436 | 34.2k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
437 | 34.2k | if (!slot_literal.has_value()) { |
438 | 20.4k | return false; |
439 | 20.4k | } |
440 | | |
441 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
442 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
443 | | // shape here before evaluate_zonemap_filter is called. |
444 | 13.8k | if (slot_literal->literal.is_null()) { |
445 | 4 | return false; |
446 | 4 | } |
447 | | |
448 | 13.8k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
449 | 13.8k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
450 | 13.8k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
451 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
452 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
453 | | // values without running expression casts, so conservatively skip this optimization. |
454 | 1 | return false; |
455 | 1 | } |
456 | | |
457 | 13.8k | return true; |
458 | 13.8k | } |
459 | | |
460 | | // Accept a comparison whose both operands are slot references. Kept separate from can_evaluate on |
461 | | // purpose: can_evaluate also gates dictionary filtering and can_evaluate_equality, and both of |
462 | | // those dereference extract_slot_and_literal behind a DORIS_CHECK, so widening it would abort on a |
463 | | // slot-vs-slot expression. Only can_evaluate_zonemap_filter ORs this in. |
464 | 20.1k | inline bool can_evaluate_slot_slot(const VExprSPtrs& arguments) { |
465 | 20.1k | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
466 | 20.1k | if (!slot_slot.has_value()) { |
467 | 18.1k | return false; |
468 | 18.1k | } |
469 | 1.92k | DORIS_CHECK(slot_slot->left_type != nullptr); |
470 | 1.92k | DORIS_CHECK(slot_slot->right_type != nullptr); |
471 | | // Reject types whose slot-slot bounds cannot be compared safely: |
472 | | // - VARBINARY: v1 Parquet produces a TYPE_STRING bound for it, which |
473 | | // range_stats_usable_for_zonemap aborts on instead of falling back. |
474 | | // - VARIANT: a segment types a path slot by its inferred leaf type (a typed `v.a` is INT), so |
475 | | // fetch_compatible_slot_type's check against the VARIANT expression type would fail. |
476 | | // - ARRAY/MAP/STRUCT, JSONB, aggregate states: Field orders every pair of them as equal. |
477 | | // A truncated string bound is rejected later, in evaluate_slot_slot, by its length. |
478 | 4.03k | const auto excluded = [](const DataTypePtr& type) { |
479 | 4.03k | const auto primitive_type = remove_nullable(type)->get_primitive_type(); |
480 | 4.05k | return is_varbinary(primitive_type) || primitive_type == TYPE_VARIANT || |
481 | 4.04k | primitive_type == TYPE_JSONB || is_complex_type(primitive_type) || |
482 | 4.04k | is_var_len_object(primitive_type); |
483 | 4.03k | }; |
484 | 2.01k | if (excluded(slot_slot->left_type) || excluded(slot_slot->right_type)) { |
485 | 15 | return false; |
486 | 15 | } |
487 | | // The two zone maps' Fields are compared directly and Field comparison throws on mismatched |
488 | | // non-string types, so reject incompatible column pairs here. A pair differing only by width or |
489 | | // decimal scale never reaches this point anyway, because the optimizer inserts a cast and a |
490 | | // cast is not a VSlotRef. |
491 | 1.90k | return expr_zonemap::data_types_compatible(slot_slot->left_type, slot_slot->right_type); |
492 | 1.92k | } |
493 | | |
494 | 0 | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
495 | 0 | if (op != Op::EQ || !can_evaluate(arguments)) { |
496 | 0 | return false; |
497 | 0 | } |
498 | 0 | const auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
499 | 0 | DORIS_CHECK(slot_literal.has_value()); |
500 | 0 | // Bloom membership cannot disprove Doris NaN equality across different physical encodings. |
501 | 0 | return !slot_literal->literal.is_nan(); |
502 | 0 | } |
503 | | |
504 | 27 | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
505 | 27 | switch (op) { |
506 | 8 | case Op::EQ: |
507 | 8 | return value == literal; |
508 | 0 | case Op::NE: |
509 | 0 | return value != literal; |
510 | 5 | case Op::LT: |
511 | 5 | return value < literal; |
512 | 0 | case Op::LE: |
513 | 0 | return value <= literal; |
514 | 14 | case Op::GT: |
515 | 14 | return value > literal; |
516 | 0 | case Op::GE: |
517 | 0 | return value >= literal; |
518 | 27 | } |
519 | 0 | __builtin_unreachable(); |
520 | 27 | } |
521 | | |
522 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
523 | 14 | const VExprSPtrs& arguments, Op op) { |
524 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
525 | 14 | DORIS_CHECK(slot_literal.has_value()); |
526 | 14 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
527 | 14 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
528 | 0 | return ZoneMapFilterResult::kUnsupported; |
529 | 0 | } |
530 | 14 | DORIS_CHECK( |
531 | 14 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
532 | 14 | if (slot_literal->literal.is_null()) { |
533 | 0 | return ZoneMapFilterResult::kUnsupported; |
534 | 0 | } |
535 | 14 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
536 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
537 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
538 | 14 | return std::ranges::any_of(dictionary->values, |
539 | 27 | [&](const Field& value) { |
540 | 27 | return dictionary_value_matches(value, slot_literal->literal, |
541 | 27 | effective_op); |
542 | 27 | }) |
543 | 14 | ? ZoneMapFilterResult::kMayMatch |
544 | 14 | : ZoneMapFilterResult::kNoMatch; |
545 | 14 | } |
546 | | |
547 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
548 | 19 | const VExprSPtrs& arguments, Op op) { |
549 | 19 | DORIS_CHECK(op == Op::EQ); |
550 | 19 | auto slot_literal = expr_zonemap::extract_bloom_filter_slot_and_literal(arguments); |
551 | 19 | DORIS_CHECK(slot_literal.has_value()); |
552 | 19 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
553 | 19 | } |
554 | | |
555 | 38.6k | inline std::optional<Op> op_from_name(std::string_view name) { |
556 | 38.6k | if (name == NameEquals::name) { |
557 | 17.4k | return Op::EQ; |
558 | 17.4k | } |
559 | 21.1k | if (name == NameNotEquals::name) { |
560 | 1.62k | return Op::NE; |
561 | 1.62k | } |
562 | 19.5k | if (name == NameLess::name) { |
563 | 5.40k | return Op::LT; |
564 | 5.40k | } |
565 | 14.1k | if (name == NameLessOrEquals::name) { |
566 | 2.57k | return Op::LE; |
567 | 2.57k | } |
568 | 11.5k | if (name == NameGreater::name) { |
569 | 6.12k | return Op::GT; |
570 | 6.12k | } |
571 | 5.75k | if (name == NameGreaterOrEquals::name) { |
572 | 5.75k | return Op::GE; |
573 | 5.75k | } |
574 | 18.4E | return std::nullopt; |
575 | 5.47k | } |
576 | | } // namespace comparison_zonemap_detail |
577 | | |
578 | | template <template <PrimitiveType> class Op, typename Name> |
579 | | class FunctionComparison : public IFunction { |
580 | | public: |
581 | | static constexpr auto name = Name::name; |
582 | 302k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 582 | 273k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 582 | 1.28k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 582 | 7.24k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 582 | 7.82k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 582 | 4.06k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 582 | 9.10k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
583 | | |
584 | 303k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 584 | 273k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 584 | 1.29k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 584 | 7.25k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 584 | 7.83k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 584 | 4.07k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 584 | 9.10k | FunctionComparison() = default; |
|
585 | | |
586 | 689k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 586 | 682k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 586 | 612 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 586 | 2.36k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 586 | 2.07k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 586 | 1.28k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 586 | 920 | double execute_cost() const override { return 0.5; } |
|
587 | | |
588 | | private: |
589 | | template <PrimitiveType PT> |
590 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
591 | 71.3k | const ColumnPtr& col_right_ptr) const { |
592 | 71.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
593 | 71.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
594 | | |
595 | 71.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
596 | 71.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
597 | | |
598 | 71.3k | DCHECK(!(left_is_const && right_is_const)); |
599 | | |
600 | 71.3k | if (!left_is_const && !right_is_const) { |
601 | 11.5k | auto col_res = ColumnUInt8::create(); |
602 | | |
603 | 11.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
604 | 11.5k | vec_res.resize(col_left->get_data().size()); |
605 | 11.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
606 | 11.5k | typename PrimitiveTypeTraits<PT>::CppType, |
607 | 11.5k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
608 | 11.5k | vec_res); |
609 | | |
610 | 11.5k | block.replace_by_position(result, std::move(col_res)); |
611 | 59.8k | } else if (!left_is_const && right_is_const) { |
612 | 51.4k | auto col_res = ColumnUInt8::create(); |
613 | | |
614 | 51.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
615 | 51.4k | vec_res.resize(col_left->size()); |
616 | 51.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
617 | 51.4k | typename PrimitiveTypeTraits<PT>::CppType, |
618 | 51.4k | Op<PT>>::vector_constant(col_left->get_data(), |
619 | 51.4k | col_right->get_element(0), vec_res); |
620 | | |
621 | 51.4k | block.replace_by_position(result, std::move(col_res)); |
622 | 51.4k | } else if (left_is_const && !right_is_const) { |
623 | 8.37k | auto col_res = ColumnUInt8::create(); |
624 | | |
625 | 8.37k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
626 | 8.37k | vec_res.resize(col_right->size()); |
627 | 8.37k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
628 | 8.37k | typename PrimitiveTypeTraits<PT>::CppType, |
629 | 8.37k | Op<PT>>::constant_vector(col_left->get_element(0), |
630 | 8.37k | col_right->get_data(), vec_res); |
631 | | |
632 | 8.37k | block.replace_by_position(result, std::move(col_res)); |
633 | 8.37k | } |
634 | 71.3k | return Status::OK(); |
635 | 71.3k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 98 | const ColumnPtr& col_right_ptr) const { | 592 | 98 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 98 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 98 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 98 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 98 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 98 | if (!left_is_const && !right_is_const) { | 601 | 66 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 66 | vec_res.resize(col_left->get_data().size()); | 605 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 66 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 66 | vec_res); | 609 | | | 610 | 66 | block.replace_by_position(result, std::move(col_res)); | 611 | 66 | } else if (!left_is_const && right_is_const) { | 612 | 32 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 32 | vec_res.resize(col_left->size()); | 616 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 32 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 32 | col_right->get_element(0), vec_res); | 620 | | | 621 | 32 | block.replace_by_position(result, std::move(col_res)); | 622 | 32 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 98 | return Status::OK(); | 635 | 98 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 585 | const ColumnPtr& col_right_ptr) const { | 592 | 585 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 585 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 585 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 585 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 585 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 585 | if (!left_is_const && !right_is_const) { | 601 | 196 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 196 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 196 | vec_res.resize(col_left->get_data().size()); | 605 | 196 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 196 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 196 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 196 | vec_res); | 609 | | | 610 | 196 | block.replace_by_position(result, std::move(col_res)); | 611 | 389 | } else if (!left_is_const && right_is_const) { | 612 | 389 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 389 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 389 | vec_res.resize(col_left->size()); | 616 | 389 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 389 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 389 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 389 | col_right->get_element(0), vec_res); | 620 | | | 621 | 389 | block.replace_by_position(result, std::move(col_res)); | 622 | 389 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 585 | return Status::OK(); | 635 | 585 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 378 | const ColumnPtr& col_right_ptr) const { | 592 | 378 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 378 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 378 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 378 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 378 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 378 | if (!left_is_const && !right_is_const) { | 601 | 200 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 200 | vec_res.resize(col_left->get_data().size()); | 605 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 200 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 200 | vec_res); | 609 | | | 610 | 200 | block.replace_by_position(result, std::move(col_res)); | 611 | 200 | } else if (!left_is_const && right_is_const) { | 612 | 178 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 178 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 178 | vec_res.resize(col_left->size()); | 616 | 178 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 178 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 178 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 178 | col_right->get_element(0), vec_res); | 620 | | | 621 | 178 | block.replace_by_position(result, std::move(col_res)); | 622 | 178 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 378 | return Status::OK(); | 635 | 378 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 209 | const ColumnPtr& col_right_ptr) const { | 592 | 209 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 209 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 209 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 209 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 209 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 209 | if (!left_is_const && !right_is_const) { | 601 | 120 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 120 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 120 | vec_res.resize(col_left->get_data().size()); | 605 | 120 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 120 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 120 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 120 | vec_res); | 609 | | | 610 | 120 | block.replace_by_position(result, std::move(col_res)); | 611 | 120 | } else if (!left_is_const && right_is_const) { | 612 | 77 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 77 | vec_res.resize(col_left->size()); | 616 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 77 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 77 | col_right->get_element(0), vec_res); | 620 | | | 621 | 77 | block.replace_by_position(result, std::move(col_res)); | 622 | 77 | } else if (left_is_const && !right_is_const) { | 623 | 12 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 12 | vec_res.resize(col_right->size()); | 627 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 12 | col_right->get_data(), vec_res); | 631 | | | 632 | 12 | block.replace_by_position(result, std::move(col_res)); | 633 | 12 | } | 634 | 209 | return Status::OK(); | 635 | 209 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 12 | const ColumnPtr& col_right_ptr) const { | 592 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 12 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 12 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 10 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 12 | return Status::OK(); | 635 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.18k | const ColumnPtr& col_right_ptr) const { | 592 | 6.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.18k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.18k | if (!left_is_const && !right_is_const) { | 601 | 184 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 184 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 184 | vec_res.resize(col_left->get_data().size()); | 605 | 184 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 184 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 184 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 184 | vec_res); | 609 | | | 610 | 184 | block.replace_by_position(result, std::move(col_res)); | 611 | 5.99k | } else if (!left_is_const && right_is_const) { | 612 | 5.70k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.70k | vec_res.resize(col_left->size()); | 616 | 5.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.70k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.70k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.70k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.70k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.70k | } else if (left_is_const && !right_is_const) { | 623 | 288 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 288 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 288 | vec_res.resize(col_right->size()); | 627 | 288 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 288 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 288 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 288 | col_right->get_data(), vec_res); | 631 | | | 632 | 288 | block.replace_by_position(result, std::move(col_res)); | 633 | 288 | } | 634 | 6.18k | return Status::OK(); | 635 | 6.18k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 400 | const ColumnPtr& col_right_ptr) const { | 592 | 400 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 400 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 400 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 400 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 400 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 400 | if (!left_is_const && !right_is_const) { | 601 | 96 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 96 | vec_res.resize(col_left->get_data().size()); | 605 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 96 | vec_res); | 609 | | | 610 | 96 | block.replace_by_position(result, std::move(col_res)); | 611 | 304 | } else if (!left_is_const && right_is_const) { | 612 | 268 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 268 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 268 | vec_res.resize(col_left->size()); | 616 | 268 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 268 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 268 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 268 | col_right->get_element(0), vec_res); | 620 | | | 621 | 268 | block.replace_by_position(result, std::move(col_res)); | 622 | 268 | } else if (left_is_const && !right_is_const) { | 623 | 36 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 36 | vec_res.resize(col_right->size()); | 627 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 36 | col_right->get_data(), vec_res); | 631 | | | 632 | 36 | block.replace_by_position(result, std::move(col_res)); | 633 | 36 | } | 634 | 400 | return Status::OK(); | 635 | 400 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3.29k | const ColumnPtr& col_right_ptr) const { | 592 | 3.29k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3.29k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3.29k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3.29k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3.29k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3.29k | if (!left_is_const && !right_is_const) { | 601 | 1.01k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.01k | vec_res.resize(col_left->get_data().size()); | 605 | 1.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.01k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.01k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.01k | vec_res); | 609 | | | 610 | 1.01k | block.replace_by_position(result, std::move(col_res)); | 611 | 2.27k | } else if (!left_is_const && right_is_const) { | 612 | 2.13k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.13k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.13k | vec_res.resize(col_left->size()); | 616 | 2.13k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.13k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.13k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.13k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.13k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.13k | } else if (left_is_const && !right_is_const) { | 623 | 142 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 142 | vec_res.resize(col_right->size()); | 627 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 142 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 142 | col_right->get_data(), vec_res); | 631 | | | 632 | 142 | block.replace_by_position(result, std::move(col_res)); | 633 | 142 | } | 634 | 3.29k | return Status::OK(); | 635 | 3.29k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 7.35k | const ColumnPtr& col_right_ptr) const { | 592 | 7.35k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 7.35k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 7.35k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 7.35k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 7.35k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 7.35k | if (!left_is_const && !right_is_const) { | 601 | 173 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 173 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 173 | vec_res.resize(col_left->get_data().size()); | 605 | 173 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 173 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 173 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 173 | vec_res); | 609 | | | 610 | 173 | block.replace_by_position(result, std::move(col_res)); | 611 | 7.17k | } else if (!left_is_const && right_is_const) { | 612 | 5.98k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.98k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.98k | vec_res.resize(col_left->size()); | 616 | 5.98k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.98k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.98k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.98k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.98k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.98k | } else if (left_is_const && !right_is_const) { | 623 | 1.19k | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 1.19k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 1.19k | vec_res.resize(col_right->size()); | 627 | 1.19k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 1.19k | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 1.19k | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 1.19k | col_right->get_data(), vec_res); | 631 | | | 632 | 1.19k | block.replace_by_position(result, std::move(col_res)); | 633 | 1.19k | } | 634 | 7.35k | return Status::OK(); | 635 | 7.35k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 84 | const ColumnPtr& col_right_ptr) const { | 592 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 84 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 84 | if (!left_is_const && !right_is_const) { | 601 | 47 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 47 | vec_res.resize(col_left->get_data().size()); | 605 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 47 | vec_res); | 609 | | | 610 | 47 | block.replace_by_position(result, std::move(col_res)); | 611 | 47 | } else if (!left_is_const && right_is_const) { | 612 | 29 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 29 | vec_res.resize(col_left->size()); | 616 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 29 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 29 | col_right->get_element(0), vec_res); | 620 | | | 621 | 29 | block.replace_by_position(result, std::move(col_res)); | 622 | 29 | } else if (left_is_const && !right_is_const) { | 623 | 8 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 8 | vec_res.resize(col_right->size()); | 627 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 8 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 8 | col_right->get_data(), vec_res); | 631 | | | 632 | 8 | block.replace_by_position(result, std::move(col_res)); | 633 | 8 | } | 634 | 84 | return Status::OK(); | 635 | 84 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 12 | const ColumnPtr& col_right_ptr) const { | 592 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 12 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 12 | if (!left_is_const && !right_is_const) { | 601 | 5 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 5 | vec_res.resize(col_left->get_data().size()); | 605 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 5 | vec_res); | 609 | | | 610 | 5 | block.replace_by_position(result, std::move(col_res)); | 611 | 7 | } else if (!left_is_const && right_is_const) { | 612 | 7 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 7 | vec_res.resize(col_left->size()); | 616 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 7 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 7 | col_right->get_element(0), vec_res); | 620 | | | 621 | 7 | block.replace_by_position(result, std::move(col_res)); | 622 | 7 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 12 | return Status::OK(); | 635 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 17 | const ColumnPtr& col_right_ptr) const { | 592 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 17 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 17 | if (!left_is_const && !right_is_const) { | 601 | 13 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 13 | vec_res.resize(col_left->get_data().size()); | 605 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 13 | vec_res); | 609 | | | 610 | 13 | block.replace_by_position(result, std::move(col_res)); | 611 | 13 | } else if (!left_is_const && right_is_const) { | 612 | 4 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 4 | vec_res.resize(col_left->size()); | 616 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 4 | col_right->get_element(0), vec_res); | 620 | | | 621 | 4 | block.replace_by_position(result, std::move(col_res)); | 622 | 4 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 17 | return Status::OK(); | 635 | 17 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.79k | const ColumnPtr& col_right_ptr) const { | 592 | 2.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.79k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.79k | if (!left_is_const && !right_is_const) { | 601 | 776 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 776 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 776 | vec_res.resize(col_left->get_data().size()); | 605 | 776 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 776 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 776 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 776 | vec_res); | 609 | | | 610 | 776 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.02k | } else if (!left_is_const && right_is_const) { | 612 | 1.96k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.96k | vec_res.resize(col_left->size()); | 616 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.96k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.96k | } else if (left_is_const && !right_is_const) { | 623 | 54 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 54 | vec_res.resize(col_right->size()); | 627 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 54 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 54 | col_right->get_data(), vec_res); | 631 | | | 632 | 54 | block.replace_by_position(result, std::move(col_res)); | 633 | 54 | } | 634 | 2.79k | return Status::OK(); | 635 | 2.79k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 73 | const ColumnPtr& col_right_ptr) const { | 592 | 73 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 73 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 73 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 73 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 73 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 73 | if (!left_is_const && !right_is_const) { | 601 | 73 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 73 | vec_res.resize(col_left->get_data().size()); | 605 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 73 | vec_res); | 609 | | | 610 | 73 | block.replace_by_position(result, std::move(col_res)); | 611 | 73 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 73 | return Status::OK(); | 635 | 73 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 698 | const ColumnPtr& col_right_ptr) const { | 592 | 698 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 698 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 698 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 698 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 698 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 698 | if (!left_is_const && !right_is_const) { | 601 | 87 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 87 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 87 | vec_res.resize(col_left->get_data().size()); | 605 | 87 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 87 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 87 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 87 | vec_res); | 609 | | | 610 | 87 | block.replace_by_position(result, std::move(col_res)); | 611 | 611 | } else if (!left_is_const && right_is_const) { | 612 | 611 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 611 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 611 | vec_res.resize(col_left->size()); | 616 | 611 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 611 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 611 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 611 | col_right->get_element(0), vec_res); | 620 | | | 621 | 611 | block.replace_by_position(result, std::move(col_res)); | 622 | 611 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 698 | return Status::OK(); | 635 | 698 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 52 | const ColumnPtr& col_right_ptr) const { | 592 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 52 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 52 | if (!left_is_const && !right_is_const) { | 601 | 52 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 52 | vec_res.resize(col_left->get_data().size()); | 605 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 52 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 52 | vec_res); | 609 | | | 610 | 52 | block.replace_by_position(result, std::move(col_res)); | 611 | 52 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 52 | return Status::OK(); | 635 | 52 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 70 | const ColumnPtr& col_right_ptr) const { | 592 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 70 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 70 | if (!left_is_const && !right_is_const) { | 601 | 39 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 39 | vec_res.resize(col_left->get_data().size()); | 605 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 39 | vec_res); | 609 | | | 610 | 39 | block.replace_by_position(result, std::move(col_res)); | 611 | 39 | } else if (!left_is_const && right_is_const) { | 612 | 31 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 31 | vec_res.resize(col_left->size()); | 616 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 31 | col_right->get_element(0), vec_res); | 620 | | | 621 | 31 | block.replace_by_position(result, std::move(col_res)); | 622 | 31 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 70 | return Status::OK(); | 635 | 70 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 11 | const ColumnPtr& col_right_ptr) const { | 592 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 11 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 11 | if (!left_is_const && !right_is_const) { | 601 | 9 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 9 | vec_res.resize(col_left->get_data().size()); | 605 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 9 | vec_res); | 609 | | | 610 | 9 | block.replace_by_position(result, std::move(col_res)); | 611 | 9 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 11 | return Status::OK(); | 635 | 11 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 82 | const ColumnPtr& col_right_ptr) const { | 592 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 82 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 82 | if (!left_is_const && !right_is_const) { | 601 | 54 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 54 | vec_res.resize(col_left->get_data().size()); | 605 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 54 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 54 | vec_res); | 609 | | | 610 | 54 | block.replace_by_position(result, std::move(col_res)); | 611 | 54 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 28 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 82 | return Status::OK(); | 635 | 82 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.11k | const ColumnPtr& col_right_ptr) const { | 592 | 1.11k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.11k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.11k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.11k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.11k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.11k | if (!left_is_const && !right_is_const) { | 601 | 832 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 832 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 832 | vec_res.resize(col_left->get_data().size()); | 605 | 832 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 832 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 832 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 832 | vec_res); | 609 | | | 610 | 832 | block.replace_by_position(result, std::move(col_res)); | 611 | 832 | } else if (!left_is_const && right_is_const) { | 612 | 282 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 282 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 282 | vec_res.resize(col_left->size()); | 616 | 282 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 282 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 282 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 282 | col_right->get_element(0), vec_res); | 620 | | | 621 | 282 | block.replace_by_position(result, std::move(col_res)); | 622 | 282 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.11k | return Status::OK(); | 635 | 1.11k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.10k | const ColumnPtr& col_right_ptr) const { | 592 | 1.10k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.10k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.10k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.10k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.10k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.10k | if (!left_is_const && !right_is_const) { | 601 | 339 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 339 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 339 | vec_res.resize(col_left->get_data().size()); | 605 | 339 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 339 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 339 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 339 | vec_res); | 609 | | | 610 | 339 | block.replace_by_position(result, std::move(col_res)); | 611 | 767 | } else if (!left_is_const && right_is_const) { | 612 | 20 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 20 | vec_res.resize(col_left->size()); | 616 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 20 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 20 | col_right->get_element(0), vec_res); | 620 | | | 621 | 20 | block.replace_by_position(result, std::move(col_res)); | 622 | 748 | } else if (left_is_const && !right_is_const) { | 623 | 748 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 748 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 748 | vec_res.resize(col_right->size()); | 627 | 748 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 748 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 748 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 748 | col_right->get_data(), vec_res); | 631 | | | 632 | 748 | block.replace_by_position(result, std::move(col_res)); | 633 | 748 | } | 634 | 1.10k | return Status::OK(); | 635 | 1.10k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 48 | const ColumnPtr& col_right_ptr) const { | 592 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 48 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 48 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 28 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 28 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 48 | return Status::OK(); | 635 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 63 | const ColumnPtr& col_right_ptr) const { | 592 | 63 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 63 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 63 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 63 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 63 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 63 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 40 | } else if (!left_is_const && right_is_const) { | 612 | 40 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 40 | vec_res.resize(col_left->size()); | 616 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 40 | col_right->get_element(0), vec_res); | 620 | | | 621 | 40 | block.replace_by_position(result, std::move(col_res)); | 622 | 40 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 63 | return Status::OK(); | 635 | 63 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 995 | const ColumnPtr& col_right_ptr) const { | 592 | 995 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 995 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 995 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 995 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 995 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 995 | if (!left_is_const && !right_is_const) { | 601 | 954 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 954 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 954 | vec_res.resize(col_left->get_data().size()); | 605 | 954 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 954 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 954 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 954 | vec_res); | 609 | | | 610 | 954 | block.replace_by_position(result, std::move(col_res)); | 611 | 954 | } else if (!left_is_const && right_is_const) { | 612 | 41 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 41 | vec_res.resize(col_left->size()); | 616 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 41 | col_right->get_element(0), vec_res); | 620 | | | 621 | 41 | block.replace_by_position(result, std::move(col_res)); | 622 | 41 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 995 | return Status::OK(); | 635 | 995 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3 | const ColumnPtr& col_right_ptr) const { | 592 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 3 | return Status::OK(); | 635 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 72 | const ColumnPtr& col_right_ptr) const { | 592 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 72 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 72 | if (!left_is_const && !right_is_const) { | 601 | 35 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 35 | vec_res.resize(col_left->get_data().size()); | 605 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 35 | vec_res); | 609 | | | 610 | 35 | block.replace_by_position(result, std::move(col_res)); | 611 | 37 | } else if (!left_is_const && right_is_const) { | 612 | 37 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 37 | vec_res.resize(col_left->size()); | 616 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 37 | col_right->get_element(0), vec_res); | 620 | | | 621 | 37 | block.replace_by_position(result, std::move(col_res)); | 622 | 37 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 72 | return Status::OK(); | 635 | 72 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.62k | const ColumnPtr& col_right_ptr) const { | 592 | 1.62k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.62k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.62k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.62k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.62k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.62k | if (!left_is_const && !right_is_const) { | 601 | 75 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 75 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 75 | vec_res.resize(col_left->get_data().size()); | 605 | 75 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 75 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 75 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 75 | vec_res); | 609 | | | 610 | 75 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.54k | } else if (!left_is_const && right_is_const) { | 612 | 1.30k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.30k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.30k | vec_res.resize(col_left->size()); | 616 | 1.30k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.30k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.30k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.30k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.30k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.30k | } else if (left_is_const && !right_is_const) { | 623 | 240 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 240 | vec_res.resize(col_right->size()); | 627 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 240 | col_right->get_data(), vec_res); | 631 | | | 632 | 240 | block.replace_by_position(result, std::move(col_res)); | 633 | 240 | } | 634 | 1.62k | return Status::OK(); | 635 | 1.62k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.34k | const ColumnPtr& col_right_ptr) const { | 592 | 2.34k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.34k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.34k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.34k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.34k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.34k | if (!left_is_const && !right_is_const) { | 601 | 112 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 112 | vec_res.resize(col_left->get_data().size()); | 605 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 112 | vec_res); | 609 | | | 610 | 112 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.22k | } else if (!left_is_const && right_is_const) { | 612 | 1.99k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.99k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.99k | vec_res.resize(col_left->size()); | 616 | 1.99k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.99k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.99k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.99k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.99k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.99k | } else if (left_is_const && !right_is_const) { | 623 | 228 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 228 | vec_res.resize(col_right->size()); | 627 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 228 | col_right->get_data(), vec_res); | 631 | | | 632 | 228 | block.replace_by_position(result, std::move(col_res)); | 633 | 228 | } | 634 | 2.34k | return Status::OK(); | 635 | 2.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 13.9k | const ColumnPtr& col_right_ptr) const { | 592 | 13.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 13.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 13.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 13.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 13.9k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 13.9k | if (!left_is_const && !right_is_const) { | 601 | 71 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 71 | vec_res.resize(col_left->get_data().size()); | 605 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 71 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 71 | vec_res); | 609 | | | 610 | 71 | block.replace_by_position(result, std::move(col_res)); | 611 | 13.9k | } else if (!left_is_const && right_is_const) { | 612 | 10.2k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10.2k | vec_res.resize(col_left->size()); | 616 | 10.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10.2k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10.2k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10.2k | col_right->get_element(0), vec_res); | 620 | | | 621 | 10.2k | block.replace_by_position(result, std::move(col_res)); | 622 | 10.2k | } else if (left_is_const && !right_is_const) { | 623 | 3.69k | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 3.69k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 3.69k | vec_res.resize(col_right->size()); | 627 | 3.69k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 3.69k | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 3.69k | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 3.69k | col_right->get_data(), vec_res); | 631 | | | 632 | 3.69k | block.replace_by_position(result, std::move(col_res)); | 633 | 3.69k | } | 634 | 13.9k | return Status::OK(); | 635 | 13.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.41k | const ColumnPtr& col_right_ptr) const { | 592 | 2.41k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.41k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.41k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.41k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.41k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.41k | if (!left_is_const && !right_is_const) { | 601 | 179 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 179 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 179 | vec_res.resize(col_left->get_data().size()); | 605 | 179 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 179 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 179 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 179 | vec_res); | 609 | | | 610 | 179 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.23k | } else if (!left_is_const && right_is_const) { | 612 | 1.73k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.73k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.73k | vec_res.resize(col_left->size()); | 616 | 1.73k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.73k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.73k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.73k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.73k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.73k | } else if (left_is_const && !right_is_const) { | 623 | 493 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 493 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 493 | vec_res.resize(col_right->size()); | 627 | 493 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 493 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 493 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 493 | col_right->get_data(), vec_res); | 631 | | | 632 | 493 | block.replace_by_position(result, std::move(col_res)); | 633 | 493 | } | 634 | 2.41k | return Status::OK(); | 635 | 2.41k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 227 | const ColumnPtr& col_right_ptr) const { | 592 | 227 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 227 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 227 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 227 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 227 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 227 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 225 | } else if (!left_is_const && right_is_const) { | 612 | 199 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 199 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 199 | vec_res.resize(col_left->size()); | 616 | 199 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 199 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 199 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 199 | col_right->get_element(0), vec_res); | 620 | | | 621 | 199 | block.replace_by_position(result, std::move(col_res)); | 622 | 199 | } else if (left_is_const && !right_is_const) { | 623 | 28 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 28 | vec_res.resize(col_right->size()); | 627 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 28 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 28 | col_right->get_data(), vec_res); | 631 | | | 632 | 28 | block.replace_by_position(result, std::move(col_res)); | 633 | 28 | } | 634 | 227 | return Status::OK(); | 635 | 227 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 4 | const ColumnPtr& col_right_ptr) const { | 592 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 4 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 4 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 4 | return Status::OK(); | 635 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 611 | const ColumnPtr& col_right_ptr) const { | 592 | 611 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 611 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 611 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 611 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 611 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 611 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 507 | } else if (!left_is_const && right_is_const) { | 612 | 507 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 507 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 507 | vec_res.resize(col_left->size()); | 616 | 507 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 507 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 507 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 507 | col_right->get_element(0), vec_res); | 620 | | | 621 | 507 | block.replace_by_position(result, std::move(col_res)); | 622 | 507 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 611 | return Status::OK(); | 635 | 611 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 422 | const ColumnPtr& col_right_ptr) const { | 592 | 422 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 422 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 422 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 422 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 422 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 422 | if (!left_is_const && !right_is_const) { | 601 | 21 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 21 | vec_res.resize(col_left->get_data().size()); | 605 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 21 | vec_res); | 609 | | | 610 | 21 | block.replace_by_position(result, std::move(col_res)); | 611 | 401 | } else if (!left_is_const && right_is_const) { | 612 | 401 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 401 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 401 | vec_res.resize(col_left->size()); | 616 | 401 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 401 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 401 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 401 | col_right->get_element(0), vec_res); | 620 | | | 621 | 401 | block.replace_by_position(result, std::move(col_res)); | 622 | 401 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 422 | return Status::OK(); | 635 | 422 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 591 | const ColumnPtr& col_right_ptr) const { | 592 | 591 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 591 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 591 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 591 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 591 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 591 | if (!left_is_const && !right_is_const) { | 601 | 30 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 30 | vec_res.resize(col_left->get_data().size()); | 605 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 30 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 30 | vec_res); | 609 | | | 610 | 30 | block.replace_by_position(result, std::move(col_res)); | 611 | 564 | } else if (!left_is_const && right_is_const) { | 612 | 564 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 564 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 564 | vec_res.resize(col_left->size()); | 616 | 564 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 564 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 564 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 564 | col_right->get_element(0), vec_res); | 620 | | | 621 | 564 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 591 | return Status::OK(); | 635 | 591 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 30 | const ColumnPtr& col_right_ptr) const { | 592 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 30 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 30 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 30 | } else if (!left_is_const && right_is_const) { | 612 | 30 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 30 | vec_res.resize(col_left->size()); | 616 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 30 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 30 | col_right->get_element(0), vec_res); | 620 | | | 621 | 30 | block.replace_by_position(result, std::move(col_res)); | 622 | 30 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 30 | return Status::OK(); | 635 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 506 | const ColumnPtr& col_right_ptr) const { | 592 | 506 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 506 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 506 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 506 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 506 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 506 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 505 | } else if (!left_is_const && right_is_const) { | 612 | 499 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 499 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 499 | vec_res.resize(col_left->size()); | 616 | 499 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 499 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 499 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 499 | col_right->get_element(0), vec_res); | 620 | | | 621 | 499 | block.replace_by_position(result, std::move(col_res)); | 622 | 499 | } else if (left_is_const && !right_is_const) { | 623 | 6 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 6 | vec_res.resize(col_right->size()); | 627 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 6 | col_right->get_data(), vec_res); | 631 | | | 632 | 6 | block.replace_by_position(result, std::move(col_res)); | 633 | 6 | } | 634 | 506 | return Status::OK(); | 635 | 506 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 122 | const ColumnPtr& col_right_ptr) const { | 592 | 122 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 122 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 122 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 122 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 122 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 122 | if (!left_is_const && !right_is_const) { | 601 | 6 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 6 | vec_res.resize(col_left->get_data().size()); | 605 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 6 | vec_res); | 609 | | | 610 | 6 | block.replace_by_position(result, std::move(col_res)); | 611 | 116 | } else if (!left_is_const && right_is_const) { | 612 | 116 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 116 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 116 | vec_res.resize(col_left->size()); | 616 | 116 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 116 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 116 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 116 | col_right->get_element(0), vec_res); | 620 | | | 621 | 116 | block.replace_by_position(result, std::move(col_res)); | 622 | 116 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 122 | return Status::OK(); | 635 | 122 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 406 | const ColumnPtr& col_right_ptr) const { | 592 | 406 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 406 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 406 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 406 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 406 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 406 | if (!left_is_const && !right_is_const) { | 601 | 360 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 360 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 360 | vec_res.resize(col_left->get_data().size()); | 605 | 360 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 360 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 360 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 360 | vec_res); | 609 | | | 610 | 360 | block.replace_by_position(result, std::move(col_res)); | 611 | 360 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 46 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 406 | return Status::OK(); | 635 | 406 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 41 | const ColumnPtr& col_right_ptr) const { | 592 | 41 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 41 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 41 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 41 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 41 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 41 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 41 | } else if (!left_is_const && right_is_const) { | 612 | 41 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 41 | vec_res.resize(col_left->size()); | 616 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 41 | col_right->get_element(0), vec_res); | 620 | | | 621 | 41 | block.replace_by_position(result, std::move(col_res)); | 622 | 41 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 41 | return Status::OK(); | 635 | 41 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 65 | const ColumnPtr& col_right_ptr) const { | 592 | 65 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 65 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 65 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 65 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 65 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 65 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 65 | } else if (!left_is_const && right_is_const) { | 612 | 65 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 65 | vec_res.resize(col_left->size()); | 616 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 65 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 65 | col_right->get_element(0), vec_res); | 620 | | | 621 | 65 | block.replace_by_position(result, std::move(col_res)); | 622 | 65 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 65 | return Status::OK(); | 635 | 65 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.00k | const ColumnPtr& col_right_ptr) const { | 592 | 1.00k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.00k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.00k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.00k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.00k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.00k | if (!left_is_const && !right_is_const) { | 601 | 16 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 16 | vec_res.resize(col_left->get_data().size()); | 605 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 16 | vec_res); | 609 | | | 610 | 16 | block.replace_by_position(result, std::move(col_res)); | 611 | 984 | } else if (!left_is_const && right_is_const) { | 612 | 984 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 984 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 984 | vec_res.resize(col_left->size()); | 616 | 984 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 984 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 984 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 984 | col_right->get_element(0), vec_res); | 620 | | | 621 | 984 | block.replace_by_position(result, std::move(col_res)); | 622 | 984 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.00k | return Status::OK(); | 635 | 1.00k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 753 | const ColumnPtr& col_right_ptr) const { | 592 | 753 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 753 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 753 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 753 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 753 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 753 | if (!left_is_const && !right_is_const) { | 601 | 24 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 24 | vec_res.resize(col_left->get_data().size()); | 605 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 24 | vec_res); | 609 | | | 610 | 24 | block.replace_by_position(result, std::move(col_res)); | 611 | 729 | } else if (!left_is_const && right_is_const) { | 612 | 729 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 729 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 729 | vec_res.resize(col_left->size()); | 616 | 729 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 729 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 729 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 729 | col_right->get_element(0), vec_res); | 620 | | | 621 | 729 | block.replace_by_position(result, std::move(col_res)); | 622 | 729 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 753 | return Status::OK(); | 635 | 753 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 23 | const ColumnPtr& col_right_ptr) const { | 592 | 23 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 23 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 23 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 23 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 23 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 23 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 23 | } else if (!left_is_const && right_is_const) { | 612 | 23 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 23 | vec_res.resize(col_left->size()); | 616 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 23 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 23 | col_right->get_element(0), vec_res); | 620 | | | 621 | 23 | block.replace_by_position(result, std::move(col_res)); | 622 | 23 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 23 | return Status::OK(); | 635 | 23 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 583 | const ColumnPtr& col_right_ptr) const { | 592 | 583 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 583 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 583 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 583 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 583 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 583 | if (!left_is_const && !right_is_const) { | 601 | 108 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 108 | vec_res.resize(col_left->get_data().size()); | 605 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 108 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 108 | vec_res); | 609 | | | 610 | 108 | block.replace_by_position(result, std::move(col_res)); | 611 | 475 | } else if (!left_is_const && right_is_const) { | 612 | 475 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 475 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 475 | vec_res.resize(col_left->size()); | 616 | 475 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 475 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 475 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 475 | col_right->get_element(0), vec_res); | 620 | | | 621 | 475 | block.replace_by_position(result, std::move(col_res)); | 622 | 475 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 583 | return Status::OK(); | 635 | 583 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 30 | const ColumnPtr& col_right_ptr) const { | 592 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 30 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 30 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 30 | return Status::OK(); | 635 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 168 | const ColumnPtr& col_right_ptr) const { | 592 | 168 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 168 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 168 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 168 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 168 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 168 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 145 | } else if (!left_is_const && right_is_const) { | 612 | 145 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 145 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 145 | vec_res.resize(col_left->size()); | 616 | 145 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 145 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 145 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 145 | col_right->get_element(0), vec_res); | 620 | | | 621 | 145 | block.replace_by_position(result, std::move(col_res)); | 622 | 145 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 168 | return Status::OK(); | 635 | 168 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 86 | const ColumnPtr& col_right_ptr) const { | 592 | 86 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 86 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 86 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 86 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 86 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 86 | if (!left_is_const && !right_is_const) { | 601 | 86 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 86 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 86 | vec_res.resize(col_left->get_data().size()); | 605 | 86 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 86 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 86 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 86 | vec_res); | 609 | | | 610 | 86 | block.replace_by_position(result, std::move(col_res)); | 611 | 86 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 86 | return Status::OK(); | 635 | 86 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.20k | const ColumnPtr& col_right_ptr) const { | 592 | 2.20k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.20k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.20k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.20k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.20k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.20k | if (!left_is_const && !right_is_const) { | 601 | 1.78k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.78k | vec_res.resize(col_left->get_data().size()); | 605 | 1.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.78k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.78k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.78k | vec_res); | 609 | | | 610 | 1.78k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.78k | } else if (!left_is_const && right_is_const) { | 612 | 416 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 416 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 416 | vec_res.resize(col_left->size()); | 616 | 416 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 416 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 416 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 416 | col_right->get_element(0), vec_res); | 620 | | | 621 | 416 | block.replace_by_position(result, std::move(col_res)); | 622 | 416 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2.20k | return Status::OK(); | 635 | 2.20k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 294 | const ColumnPtr& col_right_ptr) const { | 592 | 294 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 294 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 294 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 294 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 294 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 294 | if (!left_is_const && !right_is_const) { | 601 | 235 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 235 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 235 | vec_res.resize(col_left->get_data().size()); | 605 | 235 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 235 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 235 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 235 | vec_res); | 609 | | | 610 | 235 | block.replace_by_position(result, std::move(col_res)); | 611 | 235 | } else if (!left_is_const && right_is_const) { | 612 | 59 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 59 | vec_res.resize(col_left->size()); | 616 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 59 | col_right->get_element(0), vec_res); | 620 | | | 621 | 59 | block.replace_by_position(result, std::move(col_res)); | 622 | 59 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 294 | return Status::OK(); | 635 | 294 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 155 | const ColumnPtr& col_right_ptr) const { | 592 | 155 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 155 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 155 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 155 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 155 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 155 | if (!left_is_const && !right_is_const) { | 601 | 109 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 109 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 109 | vec_res.resize(col_left->get_data().size()); | 605 | 109 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 109 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 109 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 109 | vec_res); | 609 | | | 610 | 109 | block.replace_by_position(result, std::move(col_res)); | 611 | 109 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 46 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 155 | return Status::OK(); | 635 | 155 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 1 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1 | vec_res.resize(col_left->size()); | 616 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1 | col_right->get_element(0), vec_res); | 620 | | | 621 | 1 | block.replace_by_position(result, std::move(col_res)); | 622 | 1 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.38k | const ColumnPtr& col_right_ptr) const { | 592 | 2.38k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.38k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.38k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.38k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.38k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.38k | if (!left_is_const && !right_is_const) { | 601 | 220 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 220 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 220 | vec_res.resize(col_left->get_data().size()); | 605 | 220 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 220 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 220 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 220 | vec_res); | 609 | | | 610 | 220 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.16k | } else if (!left_is_const && right_is_const) { | 612 | 1.91k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.91k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.91k | vec_res.resize(col_left->size()); | 616 | 1.91k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.91k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.91k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.91k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.91k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.91k | } else if (left_is_const && !right_is_const) { | 623 | 252 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 252 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 252 | vec_res.resize(col_right->size()); | 627 | 252 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 252 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 252 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 252 | col_right->get_data(), vec_res); | 631 | | | 632 | 252 | block.replace_by_position(result, std::move(col_res)); | 633 | 252 | } | 634 | 2.38k | return Status::OK(); | 635 | 2.38k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 173 | const ColumnPtr& col_right_ptr) const { | 592 | 173 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 173 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 173 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 173 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 173 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 173 | if (!left_is_const && !right_is_const) { | 601 | 159 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 159 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 159 | vec_res.resize(col_left->get_data().size()); | 605 | 159 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 159 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 159 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 159 | vec_res); | 609 | | | 610 | 159 | block.replace_by_position(result, std::move(col_res)); | 611 | 159 | } else if (!left_is_const && right_is_const) { | 612 | 14 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 14 | vec_res.resize(col_left->size()); | 616 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 14 | col_right->get_element(0), vec_res); | 620 | | | 621 | 14 | block.replace_by_position(result, std::move(col_res)); | 622 | 14 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 173 | return Status::OK(); | 635 | 173 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.02k | const ColumnPtr& col_right_ptr) const { | 592 | 2.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.02k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.02k | if (!left_is_const && !right_is_const) { | 601 | 916 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 916 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 916 | vec_res.resize(col_left->get_data().size()); | 605 | 916 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 916 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 916 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 916 | vec_res); | 609 | | | 610 | 916 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.10k | } else if (!left_is_const && right_is_const) { | 612 | 913 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 913 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 913 | vec_res.resize(col_left->size()); | 616 | 913 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 913 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 913 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 913 | col_right->get_element(0), vec_res); | 620 | | | 621 | 913 | block.replace_by_position(result, std::move(col_res)); | 622 | 913 | } else if (left_is_const && !right_is_const) { | 623 | 193 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 193 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 193 | vec_res.resize(col_right->size()); | 627 | 193 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 193 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 193 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 193 | col_right->get_data(), vec_res); | 631 | | | 632 | 193 | block.replace_by_position(result, std::move(col_res)); | 633 | 193 | } | 634 | 2.02k | return Status::OK(); | 635 | 2.02k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 906 | const ColumnPtr& col_right_ptr) const { | 592 | 906 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 906 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 906 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 906 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 906 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 906 | if (!left_is_const && !right_is_const) { | 601 | 273 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 273 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 273 | vec_res.resize(col_left->get_data().size()); | 605 | 273 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 273 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 273 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 273 | vec_res); | 609 | | | 610 | 273 | block.replace_by_position(result, std::move(col_res)); | 611 | 633 | } else if (!left_is_const && right_is_const) { | 612 | 549 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 549 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 549 | vec_res.resize(col_left->size()); | 616 | 549 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 549 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 549 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 549 | col_right->get_element(0), vec_res); | 620 | | | 621 | 549 | block.replace_by_position(result, std::move(col_res)); | 622 | 549 | } else if (left_is_const && !right_is_const) { | 623 | 84 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 84 | vec_res.resize(col_right->size()); | 627 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 84 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 84 | col_right->get_data(), vec_res); | 631 | | | 632 | 84 | block.replace_by_position(result, std::move(col_res)); | 633 | 84 | } | 634 | 906 | return Status::OK(); | 635 | 906 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 255 | const ColumnPtr& col_right_ptr) const { | 592 | 255 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 255 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 255 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 255 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 255 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 255 | if (!left_is_const && !right_is_const) { | 601 | 132 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 132 | vec_res.resize(col_left->get_data().size()); | 605 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 132 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 132 | vec_res); | 609 | | | 610 | 132 | block.replace_by_position(result, std::move(col_res)); | 611 | 132 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 77 | } else if (left_is_const && !right_is_const) { | 623 | 77 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 77 | vec_res.resize(col_right->size()); | 627 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 77 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 77 | col_right->get_data(), vec_res); | 631 | | | 632 | 77 | block.replace_by_position(result, std::move(col_res)); | 633 | 77 | } | 634 | 255 | return Status::OK(); | 635 | 255 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 17 | const ColumnPtr& col_right_ptr) const { | 592 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 17 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 17 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 17 | return Status::OK(); | 635 | 17 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 15 | const ColumnPtr& col_right_ptr) const { | 592 | 15 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 15 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 15 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 15 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 15 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 15 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 15 | return Status::OK(); | 635 | 15 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 457 | const ColumnPtr& col_right_ptr) const { | 592 | 457 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 457 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 457 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 457 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 457 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 457 | if (!left_is_const && !right_is_const) { | 601 | 110 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 110 | vec_res.resize(col_left->get_data().size()); | 605 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 110 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 110 | vec_res); | 609 | | | 610 | 110 | block.replace_by_position(result, std::move(col_res)); | 611 | 347 | } else if (!left_is_const && right_is_const) { | 612 | 347 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 347 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 347 | vec_res.resize(col_left->size()); | 616 | 347 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 347 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 347 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 347 | col_right->get_element(0), vec_res); | 620 | | | 621 | 347 | block.replace_by_position(result, std::move(col_res)); | 622 | 347 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 457 | return Status::OK(); | 635 | 457 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 131 | const ColumnPtr& col_right_ptr) const { | 592 | 131 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 131 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 131 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 131 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 131 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 131 | if (!left_is_const && !right_is_const) { | 601 | 131 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 131 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 131 | vec_res.resize(col_left->get_data().size()); | 605 | 131 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 131 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 131 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 131 | vec_res); | 609 | | | 610 | 131 | block.replace_by_position(result, std::move(col_res)); | 611 | 131 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 131 | return Status::OK(); | 635 | 131 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.34k | const ColumnPtr& col_right_ptr) const { | 592 | 1.34k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.34k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.34k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.34k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.34k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.34k | if (!left_is_const && !right_is_const) { | 601 | 134 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 134 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 134 | vec_res.resize(col_left->get_data().size()); | 605 | 134 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 134 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 134 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 134 | vec_res); | 609 | | | 610 | 134 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.21k | } else if (!left_is_const && right_is_const) { | 612 | 1.21k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.21k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.21k | vec_res.resize(col_left->size()); | 616 | 1.21k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.21k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.21k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.21k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.21k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.21k | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.34k | return Status::OK(); | 635 | 1.34k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 28 | const ColumnPtr& col_right_ptr) const { | 592 | 28 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 28 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 28 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 28 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 28 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 28 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 28 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 28 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 28 | return Status::OK(); | 635 | 28 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 527 | const ColumnPtr& col_right_ptr) const { | 592 | 527 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 527 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 527 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 527 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 527 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 527 | if (!left_is_const && !right_is_const) { | 601 | 398 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 398 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 398 | vec_res.resize(col_left->get_data().size()); | 605 | 398 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 398 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 398 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 398 | vec_res); | 609 | | | 610 | 398 | block.replace_by_position(result, std::move(col_res)); | 611 | 398 | } else if (!left_is_const && right_is_const) { | 612 | 125 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 125 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 125 | vec_res.resize(col_left->size()); | 616 | 125 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 125 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 125 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 125 | col_right->get_element(0), vec_res); | 620 | | | 621 | 125 | block.replace_by_position(result, std::move(col_res)); | 622 | 125 | } else if (left_is_const && !right_is_const) { | 623 | 5 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 5 | vec_res.resize(col_right->size()); | 627 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 5 | col_right->get_data(), vec_res); | 631 | | | 632 | 5 | block.replace_by_position(result, std::move(col_res)); | 633 | 5 | } | 634 | 527 | return Status::OK(); | 635 | 527 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 73 | const ColumnPtr& col_right_ptr) const { | 592 | 73 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 73 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 73 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 73 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 73 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 73 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 73 | } else if (!left_is_const && right_is_const) { | 612 | 73 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 73 | vec_res.resize(col_left->size()); | 616 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 73 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 73 | col_right->get_element(0), vec_res); | 620 | | | 621 | 73 | block.replace_by_position(result, std::move(col_res)); | 622 | 73 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 73 | return Status::OK(); | 635 | 73 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 64 | const ColumnPtr& col_right_ptr) const { | 592 | 64 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 64 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 64 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 64 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 64 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 64 | if (!left_is_const && !right_is_const) { | 601 | 26 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 26 | vec_res.resize(col_left->get_data().size()); | 605 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 26 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 26 | vec_res); | 609 | | | 610 | 26 | block.replace_by_position(result, std::move(col_res)); | 611 | 38 | } else if (!left_is_const && right_is_const) { | 612 | 38 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 38 | vec_res.resize(col_left->size()); | 616 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 38 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 38 | col_right->get_element(0), vec_res); | 620 | | | 621 | 38 | block.replace_by_position(result, std::move(col_res)); | 622 | 38 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 64 | return Status::OK(); | 635 | 64 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 1 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1 | vec_res.resize(col_left->size()); | 616 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1 | col_right->get_element(0), vec_res); | 620 | | | 621 | 1 | block.replace_by_position(result, std::move(col_res)); | 622 | 1 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 60 | const ColumnPtr& col_right_ptr) const { | 592 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 60 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 60 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 59 | } else if (!left_is_const && right_is_const) { | 612 | 59 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 59 | vec_res.resize(col_left->size()); | 616 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 59 | col_right->get_element(0), vec_res); | 620 | | | 621 | 59 | block.replace_by_position(result, std::move(col_res)); | 622 | 59 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 60 | return Status::OK(); | 635 | 60 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 72 | const ColumnPtr& col_right_ptr) const { | 592 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 72 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 72 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 72 | } else if (!left_is_const && right_is_const) { | 612 | 72 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 72 | vec_res.resize(col_left->size()); | 616 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 72 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 72 | col_right->get_element(0), vec_res); | 620 | | | 621 | 72 | block.replace_by_position(result, std::move(col_res)); | 622 | 72 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 72 | return Status::OK(); | 635 | 72 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 7.07k | const ColumnPtr& col_right_ptr) const { | 592 | 7.07k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 7.07k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 7.07k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 7.07k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 7.07k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 7.07k | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 7.05k | } else if (!left_is_const && right_is_const) { | 612 | 6.50k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 6.50k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 6.50k | vec_res.resize(col_left->size()); | 616 | 6.50k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 6.50k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 6.50k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 6.50k | col_right->get_element(0), vec_res); | 620 | | | 621 | 6.50k | block.replace_by_position(result, std::move(col_res)); | 622 | 6.50k | } else if (left_is_const && !right_is_const) { | 623 | 549 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 549 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 549 | vec_res.resize(col_right->size()); | 627 | 549 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 549 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 549 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 549 | col_right->get_data(), vec_res); | 631 | | | 632 | 549 | block.replace_by_position(result, std::move(col_res)); | 633 | 549 | } | 634 | 7.07k | return Status::OK(); | 635 | 7.07k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 701 | const ColumnPtr& col_right_ptr) const { | 592 | 701 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 701 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 701 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 701 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 701 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 701 | if (!left_is_const && !right_is_const) { | 601 | 75 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 75 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 75 | vec_res.resize(col_left->get_data().size()); | 605 | 75 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 75 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 75 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 75 | vec_res); | 609 | | | 610 | 75 | block.replace_by_position(result, std::move(col_res)); | 611 | 626 | } else if (!left_is_const && right_is_const) { | 612 | 578 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 578 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 578 | vec_res.resize(col_left->size()); | 616 | 578 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 578 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 578 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 578 | col_right->get_element(0), vec_res); | 620 | | | 621 | 578 | block.replace_by_position(result, std::move(col_res)); | 622 | 578 | } else if (left_is_const && !right_is_const) { | 623 | 48 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 48 | vec_res.resize(col_right->size()); | 627 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 48 | col_right->get_data(), vec_res); | 631 | | | 632 | 48 | block.replace_by_position(result, std::move(col_res)); | 633 | 48 | } | 634 | 701 | return Status::OK(); | 635 | 701 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 33 | const ColumnPtr& col_right_ptr) const { | 592 | 33 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 33 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 33 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 33 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 33 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 33 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 33 | } else if (!left_is_const && right_is_const) { | 612 | 33 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 33 | vec_res.resize(col_left->size()); | 616 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 33 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 33 | col_right->get_element(0), vec_res); | 620 | | | 621 | 33 | block.replace_by_position(result, std::move(col_res)); | 622 | 33 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 33 | return Status::OK(); | 635 | 33 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 423 | const ColumnPtr& col_right_ptr) const { | 592 | 423 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 423 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 423 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 423 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 423 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 423 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 319 | } else if (!left_is_const && right_is_const) { | 612 | 319 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 319 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 319 | vec_res.resize(col_left->size()); | 616 | 319 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 319 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 319 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 319 | col_right->get_element(0), vec_res); | 620 | | | 621 | 319 | block.replace_by_position(result, std::move(col_res)); | 622 | 319 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 423 | return Status::OK(); | 635 | 423 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 19 | const ColumnPtr& col_right_ptr) const { | 592 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 19 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 19 | if (!left_is_const && !right_is_const) { | 601 | 19 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 19 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 19 | vec_res.resize(col_left->get_data().size()); | 605 | 19 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 19 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 19 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 19 | vec_res); | 609 | | | 610 | 19 | block.replace_by_position(result, std::move(col_res)); | 611 | 19 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 19 | return Status::OK(); | 635 | 19 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 112 | const ColumnPtr& col_right_ptr) const { | 592 | 112 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 112 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 112 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 112 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 112 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 112 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 92 | } else if (!left_is_const && right_is_const) { | 612 | 92 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 92 | vec_res.resize(col_left->size()); | 616 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 92 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 92 | col_right->get_element(0), vec_res); | 620 | | | 621 | 92 | block.replace_by_position(result, std::move(col_res)); | 622 | 92 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 112 | return Status::OK(); | 635 | 112 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
636 | | |
637 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
638 | 3.02k | const ColumnWithTypeAndName& col_right) const { |
639 | 3.02k | auto call = [&](const auto& type) -> bool { |
640 | 3.02k | using DispatchType = std::decay_t<decltype(type)>; |
641 | 3.02k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
642 | 3.02k | block, result, col_left, col_right); |
643 | 3.02k | return true; |
644 | 3.02k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 100 | auto call = [&](const auto& type) -> bool { | 640 | 100 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 100 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 100 | block, result, col_left, col_right); | 643 | 100 | return true; | 644 | 100 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 105 | auto call = [&](const auto& type) -> bool { | 640 | 105 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 105 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 105 | block, result, col_left, col_right); | 643 | 105 | return true; | 644 | 105 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 822 | auto call = [&](const auto& type) -> bool { | 640 | 822 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 822 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 822 | block, result, col_left, col_right); | 643 | 822 | return true; | 644 | 822 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 14 | auto call = [&](const auto& type) -> bool { | 640 | 14 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 14 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 14 | block, result, col_left, col_right); | 643 | 14 | return true; | 644 | 14 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 67 | auto call = [&](const auto& type) -> bool { | 640 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 67 | block, result, col_left, col_right); | 643 | 67 | return true; | 644 | 67 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 28 | auto call = [&](const auto& type) -> bool { | 640 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 28 | block, result, col_left, col_right); | 643 | 28 | return true; | 644 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 30 | auto call = [&](const auto& type) -> bool { | 640 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 30 | block, result, col_left, col_right); | 643 | 30 | return true; | 644 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 8 | auto call = [&](const auto& type) -> bool { | 640 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 8 | block, result, col_left, col_right); | 643 | 8 | return true; | 644 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 67 | auto call = [&](const auto& type) -> bool { | 640 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 67 | block, result, col_left, col_right); | 643 | 67 | return true; | 644 | 67 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 662 | auto call = [&](const auto& type) -> bool { | 640 | 662 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 662 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 662 | block, result, col_left, col_right); | 643 | 662 | return true; | 644 | 662 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 2 | auto call = [&](const auto& type) -> bool { | 640 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 2 | block, result, col_left, col_right); | 643 | 2 | return true; | 644 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 1 | auto call = [&](const auto& type) -> bool { | 640 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1 | block, result, col_left, col_right); | 643 | 1 | return true; | 644 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 57 | auto call = [&](const auto& type) -> bool { | 640 | 57 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 57 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 57 | block, result, col_left, col_right); | 643 | 57 | return true; | 644 | 57 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 77 | auto call = [&](const auto& type) -> bool { | 640 | 77 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 77 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 77 | block, result, col_left, col_right); | 643 | 77 | return true; | 644 | 77 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 17 | auto call = [&](const auto& type) -> bool { | 640 | 17 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 17 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 17 | block, result, col_left, col_right); | 643 | 17 | return true; | 644 | 17 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 162 | auto call = [&](const auto& type) -> bool { | 640 | 162 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 162 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 162 | block, result, col_left, col_right); | 643 | 162 | return true; | 644 | 162 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 182 | auto call = [&](const auto& type) -> bool { | 640 | 182 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 182 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 182 | block, result, col_left, col_right); | 643 | 182 | return true; | 644 | 182 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 460 | auto call = [&](const auto& type) -> bool { | 640 | 460 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 460 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 460 | block, result, col_left, col_right); | 643 | 460 | return true; | 644 | 460 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 1 | auto call = [&](const auto& type) -> bool { | 640 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1 | block, result, col_left, col_right); | 643 | 1 | return true; | 644 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 4 | auto call = [&](const auto& type) -> bool { | 640 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 4 | block, result, col_left, col_right); | 643 | 4 | return true; | 644 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 67 | auto call = [&](const auto& type) -> bool { | 640 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 67 | block, result, col_left, col_right); | 643 | 67 | return true; | 644 | 67 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 84 | auto call = [&](const auto& type) -> bool { | 640 | 84 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 84 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 84 | block, result, col_left, col_right); | 643 | 84 | return true; | 644 | 84 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 12 | auto call = [&](const auto& type) -> bool { | 640 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 12 | block, result, col_left, col_right); | 643 | 12 | return true; | 644 | 12 | }; |
|
645 | | |
646 | 3.02k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
647 | 0 | return Status::RuntimeError( |
648 | 0 | "type of left column {} is not equal to type of right column {}", |
649 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
650 | 0 | } |
651 | | |
652 | 3.02k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
654 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
655 | 0 | } |
656 | 3.02k | return Status::OK(); |
657 | 3.02k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 1.04k | const ColumnWithTypeAndName& col_right) const { | 639 | 1.04k | auto call = [&](const auto& type) -> bool { | 640 | 1.04k | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1.04k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1.04k | block, result, col_left, col_right); | 643 | 1.04k | return true; | 644 | 1.04k | }; | 645 | | | 646 | 1.04k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 1.04k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 1.04k | return Status::OK(); | 657 | 1.04k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 125 | const ColumnWithTypeAndName& col_right) const { | 639 | 125 | auto call = [&](const auto& type) -> bool { | 640 | 125 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 125 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 125 | block, result, col_left, col_right); | 643 | 125 | return true; | 644 | 125 | }; | 645 | | | 646 | 125 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 125 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 125 | return Status::OK(); | 657 | 125 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 739 | const ColumnWithTypeAndName& col_right) const { | 639 | 739 | auto call = [&](const auto& type) -> bool { | 640 | 739 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 739 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 739 | block, result, col_left, col_right); | 643 | 739 | return true; | 644 | 739 | }; | 645 | | | 646 | 739 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 739 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 739 | return Status::OK(); | 657 | 739 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 152 | const ColumnWithTypeAndName& col_right) const { | 639 | 152 | auto call = [&](const auto& type) -> bool { | 640 | 152 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 152 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 152 | block, result, col_left, col_right); | 643 | 152 | return true; | 644 | 152 | }; | 645 | | | 646 | 152 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 152 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 152 | return Status::OK(); | 657 | 152 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 805 | const ColumnWithTypeAndName& col_right) const { | 639 | 805 | auto call = [&](const auto& type) -> bool { | 640 | 805 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 805 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 805 | block, result, col_left, col_right); | 643 | 805 | return true; | 644 | 805 | }; | 645 | | | 646 | 805 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 805 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 805 | return Status::OK(); | 657 | 805 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 166 | const ColumnWithTypeAndName& col_right) const { | 639 | 166 | auto call = [&](const auto& type) -> bool { | 640 | 166 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 166 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 166 | block, result, col_left, col_right); | 643 | 166 | return true; | 644 | 166 | }; | 645 | | | 646 | 166 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 166 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 166 | return Status::OK(); | 657 | 166 | } |
|
658 | | |
659 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
660 | 23.0k | const IColumn* c1) const { |
661 | 23.0k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
662 | 23.0k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
663 | 23.0k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
664 | 23.0k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
665 | 23.0k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
667 | 0 | c0->get_name(), c1->get_name(), name); |
668 | 0 | } |
669 | 23.0k | DCHECK(!(c0_const && c1_const)); |
670 | 23.0k | const ColumnString::Chars* c0_const_chars = nullptr; |
671 | 23.0k | const ColumnString::Chars* c1_const_chars = nullptr; |
672 | 23.0k | ColumnString::Offset c0_const_size = 0; |
673 | 23.0k | ColumnString::Offset c1_const_size = 0; |
674 | | |
675 | 23.0k | if (c0_const) { |
676 | 92 | const ColumnString* c0_const_string = |
677 | 92 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
678 | | |
679 | 92 | if (c0_const_string) { |
680 | 92 | c0_const_chars = &c0_const_string->get_chars(); |
681 | 92 | c0_const_size = c0_const_string->get_offsets()[0]; |
682 | 92 | } else { |
683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
684 | 0 | c0->get_name(), name); |
685 | 0 | } |
686 | 92 | } |
687 | | |
688 | 23.0k | if (c1_const) { |
689 | 22.1k | const ColumnString* c1_const_string = |
690 | 22.1k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
691 | | |
692 | 22.1k | if (c1_const_string) { |
693 | 22.1k | c1_const_chars = &c1_const_string->get_chars(); |
694 | 22.1k | c1_const_size = c1_const_string->get_offsets()[0]; |
695 | 22.1k | } else { |
696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
697 | 0 | c1->get_name(), name); |
698 | 0 | } |
699 | 22.1k | } |
700 | | |
701 | 23.0k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
702 | | |
703 | 23.0k | auto c_res = ColumnUInt8::create(); |
704 | 23.0k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
705 | 23.0k | vec_res.resize(c0->size()); |
706 | | |
707 | 23.0k | if (c0_string && c1_string) { |
708 | 866 | StringImpl::string_vector_string_vector( |
709 | 866 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
710 | 866 | c1_string->get_offsets(), vec_res); |
711 | 22.2k | } else if (c0_string && c1_const) { |
712 | 22.1k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
713 | 22.1k | *c1_const_chars, c1_const_size, vec_res); |
714 | 22.1k | } else if (c0_const && c1_string) { |
715 | 92 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
716 | 92 | c1_string->get_chars(), c1_string->get_offsets(), |
717 | 92 | vec_res); |
718 | 18.4E | } else { |
719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
720 | 18.4E | c0->get_name(), c1->get_name(), name); |
721 | 18.4E | } |
722 | 23.0k | block.replace_by_position(result, std::move(c_res)); |
723 | 23.0k | return Status::OK(); |
724 | 23.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 21.7k | const IColumn* c1) const { | 661 | 21.7k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 21.7k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 21.7k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 21.7k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 21.7k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 21.7k | DCHECK(!(c0_const && c1_const)); | 670 | 21.7k | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 21.7k | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 21.7k | ColumnString::Offset c0_const_size = 0; | 673 | 21.7k | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 21.7k | if (c0_const) { | 676 | 16 | const ColumnString* c0_const_string = | 677 | 16 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 16 | if (c0_const_string) { | 680 | 16 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 16 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 16 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 16 | } | 687 | | | 688 | 21.7k | if (c1_const) { | 689 | 21.2k | const ColumnString* c1_const_string = | 690 | 21.2k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 21.2k | if (c1_const_string) { | 693 | 21.2k | c1_const_chars = &c1_const_string->get_chars(); | 694 | 21.2k | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 21.2k | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 21.2k | } | 700 | | | 701 | 21.7k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 21.7k | auto c_res = ColumnUInt8::create(); | 704 | 21.7k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 21.7k | vec_res.resize(c0->size()); | 706 | | | 707 | 21.7k | if (c0_string && c1_string) { | 708 | 428 | StringImpl::string_vector_string_vector( | 709 | 428 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 428 | c1_string->get_offsets(), vec_res); | 711 | 21.2k | } else if (c0_string && c1_const) { | 712 | 21.2k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 21.2k | *c1_const_chars, c1_const_size, vec_res); | 714 | 21.2k | } else if (c0_const && c1_string) { | 715 | 16 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 16 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 16 | vec_res); | 718 | 18.4E | } else { | 719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 18.4E | c0->get_name(), c1->get_name(), name); | 721 | 18.4E | } | 722 | 21.7k | block.replace_by_position(result, std::move(c_res)); | 723 | 21.7k | return Status::OK(); | 724 | 21.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 131 | const IColumn* c1) const { | 661 | 131 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 131 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 131 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 131 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 131 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 131 | DCHECK(!(c0_const && c1_const)); | 670 | 131 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 131 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 131 | ColumnString::Offset c0_const_size = 0; | 673 | 131 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 131 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 131 | if (c1_const) { | 689 | 116 | const ColumnString* c1_const_string = | 690 | 116 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 116 | if (c1_const_string) { | 693 | 116 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 116 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 116 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 116 | } | 700 | | | 701 | 131 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 131 | auto c_res = ColumnUInt8::create(); | 704 | 131 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 131 | vec_res.resize(c0->size()); | 706 | | | 707 | 131 | if (c0_string && c1_string) { | 708 | 15 | StringImpl::string_vector_string_vector( | 709 | 15 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 15 | c1_string->get_offsets(), vec_res); | 711 | 116 | } else if (c0_string && c1_const) { | 712 | 116 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 116 | *c1_const_chars, c1_const_size, vec_res); | 714 | 116 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 131 | block.replace_by_position(result, std::move(c_res)); | 723 | 131 | return Status::OK(); | 724 | 131 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 203 | const IColumn* c1) const { | 661 | 203 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 203 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 203 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 203 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 203 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 203 | DCHECK(!(c0_const && c1_const)); | 670 | 203 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 203 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 203 | ColumnString::Offset c0_const_size = 0; | 673 | 203 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 203 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 203 | if (c1_const) { | 689 | 201 | const ColumnString* c1_const_string = | 690 | 201 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 201 | if (c1_const_string) { | 693 | 201 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 201 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 201 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 201 | } | 700 | | | 701 | 203 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 203 | auto c_res = ColumnUInt8::create(); | 704 | 203 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 203 | vec_res.resize(c0->size()); | 706 | | | 707 | 203 | if (c0_string && c1_string) { | 708 | 2 | StringImpl::string_vector_string_vector( | 709 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 2 | c1_string->get_offsets(), vec_res); | 711 | 201 | } else if (c0_string && c1_const) { | 712 | 201 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 201 | *c1_const_chars, c1_const_size, vec_res); | 714 | 201 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 203 | block.replace_by_position(result, std::move(c_res)); | 723 | 203 | return Status::OK(); | 724 | 203 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 289 | const IColumn* c1) const { | 661 | 289 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 289 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 289 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 289 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 289 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 289 | DCHECK(!(c0_const && c1_const)); | 670 | 289 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 289 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 289 | ColumnString::Offset c0_const_size = 0; | 673 | 289 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 289 | if (c0_const) { | 676 | 70 | const ColumnString* c0_const_string = | 677 | 70 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 70 | if (c0_const_string) { | 680 | 70 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 70 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 70 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 70 | } | 687 | | | 688 | 289 | if (c1_const) { | 689 | 188 | const ColumnString* c1_const_string = | 690 | 188 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 188 | if (c1_const_string) { | 693 | 188 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 188 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 188 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 188 | } | 700 | | | 701 | 289 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 289 | auto c_res = ColumnUInt8::create(); | 704 | 289 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 289 | vec_res.resize(c0->size()); | 706 | | | 707 | 289 | if (c0_string && c1_string) { | 708 | 31 | StringImpl::string_vector_string_vector( | 709 | 31 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 31 | c1_string->get_offsets(), vec_res); | 711 | 258 | } else if (c0_string && c1_const) { | 712 | 188 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 188 | *c1_const_chars, c1_const_size, vec_res); | 714 | 188 | } else if (c0_const && c1_string) { | 715 | 70 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 70 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 70 | vec_res); | 718 | 70 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 289 | block.replace_by_position(result, std::move(c_res)); | 723 | 289 | return Status::OK(); | 724 | 289 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 503 | const IColumn* c1) const { | 661 | 503 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 503 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 503 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 503 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 504 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 503 | DCHECK(!(c0_const && c1_const)); | 670 | 503 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 503 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 503 | ColumnString::Offset c0_const_size = 0; | 673 | 503 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 503 | if (c0_const) { | 676 | 6 | const ColumnString* c0_const_string = | 677 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 6 | if (c0_const_string) { | 680 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 6 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 6 | } | 687 | | | 688 | 503 | if (c1_const) { | 689 | 108 | const ColumnString* c1_const_string = | 690 | 108 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 108 | if (c1_const_string) { | 693 | 108 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 108 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 108 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 108 | } | 700 | | | 701 | 503 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 503 | auto c_res = ColumnUInt8::create(); | 704 | 503 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 503 | vec_res.resize(c0->size()); | 706 | | | 707 | 503 | if (c0_string && c1_string) { | 708 | 390 | StringImpl::string_vector_string_vector( | 709 | 390 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 390 | c1_string->get_offsets(), vec_res); | 711 | 390 | } else if (c0_string && c1_const) { | 712 | 108 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 108 | *c1_const_chars, c1_const_size, vec_res); | 714 | 108 | } else if (c0_const && c1_string) { | 715 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 6 | vec_res); | 718 | 18.4E | } else { | 719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 18.4E | c0->get_name(), c1->get_name(), name); | 721 | 18.4E | } | 722 | 504 | block.replace_by_position(result, std::move(c_res)); | 723 | 504 | return Status::OK(); | 724 | 503 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 256 | const IColumn* c1) const { | 661 | 256 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 256 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 256 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 256 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 256 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 256 | DCHECK(!(c0_const && c1_const)); | 670 | 256 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 256 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 256 | ColumnString::Offset c0_const_size = 0; | 673 | 256 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 256 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 256 | if (c1_const) { | 689 | 256 | const ColumnString* c1_const_string = | 690 | 256 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 256 | if (c1_const_string) { | 693 | 256 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 256 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 256 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 256 | } | 700 | | | 701 | 256 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 256 | auto c_res = ColumnUInt8::create(); | 704 | 256 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 256 | vec_res.resize(c0->size()); | 706 | | | 707 | 256 | if (c0_string && c1_string) { | 708 | 0 | StringImpl::string_vector_string_vector( | 709 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 0 | c1_string->get_offsets(), vec_res); | 711 | 256 | } else if (c0_string && c1_const) { | 712 | 256 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 256 | *c1_const_chars, c1_const_size, vec_res); | 714 | 256 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 256 | block.replace_by_position(result, std::move(c_res)); | 723 | 256 | return Status::OK(); | 724 | 256 | } |
|
725 | | |
726 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
727 | 133 | const IColumn* c1) const { |
728 | 133 | bool c0_const = is_column_const(*c0); |
729 | 133 | bool c1_const = is_column_const(*c1); |
730 | | |
731 | 133 | DCHECK(!(c0_const && c1_const)); |
732 | | |
733 | 133 | auto c_res = ColumnUInt8::create(); |
734 | 133 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
735 | 133 | vec_res.resize(c0->size()); |
736 | | |
737 | 133 | if (c0_const) { |
738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
739 | 132 | } else if (c1_const) { |
740 | 110 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
741 | 110 | } else { |
742 | 22 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
743 | 22 | } |
744 | | |
745 | 133 | block.replace_by_position(result, std::move(c_res)); |
746 | 133 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 33 | const IColumn* c1) const { | 728 | 33 | bool c0_const = is_column_const(*c0); | 729 | 33 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 33 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 33 | auto c_res = ColumnUInt8::create(); | 734 | 33 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 33 | vec_res.resize(c0->size()); | 736 | | | 737 | 33 | if (c0_const) { | 738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 32 | } else if (c1_const) { | 740 | 18 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 18 | } else { | 742 | 14 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 14 | } | 744 | | | 745 | 33 | block.replace_by_position(result, std::move(c_res)); | 746 | 33 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 10 | const IColumn* c1) const { | 728 | 10 | bool c0_const = is_column_const(*c0); | 729 | 10 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 10 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 10 | auto c_res = ColumnUInt8::create(); | 734 | 10 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 10 | vec_res.resize(c0->size()); | 736 | | | 737 | 10 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 10 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 2 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 2 | } | 744 | | | 745 | 10 | block.replace_by_position(result, std::move(c_res)); | 746 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 9 | const IColumn* c1) const { | 728 | 9 | bool c0_const = is_column_const(*c0); | 729 | 9 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 9 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 9 | auto c_res = ColumnUInt8::create(); | 734 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 9 | vec_res.resize(c0->size()); | 736 | | | 737 | 9 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 9 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 9 | block.replace_by_position(result, std::move(c_res)); | 746 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 40 | const IColumn* c1) const { | 728 | 40 | bool c0_const = is_column_const(*c0); | 729 | 40 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 40 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 40 | auto c_res = ColumnUInt8::create(); | 734 | 40 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 40 | vec_res.resize(c0->size()); | 736 | | | 737 | 40 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 40 | } else if (c1_const) { | 740 | 39 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 39 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 40 | block.replace_by_position(result, std::move(c_res)); | 746 | 40 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 12 | const IColumn* c1) const { | 728 | 12 | bool c0_const = is_column_const(*c0); | 729 | 12 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 12 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 12 | auto c_res = ColumnUInt8::create(); | 734 | 12 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 12 | vec_res.resize(c0->size()); | 736 | | | 737 | 12 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 12 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 4 | } | 744 | | | 745 | 12 | block.replace_by_position(result, std::move(c_res)); | 746 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 29 | const IColumn* c1) const { | 728 | 29 | bool c0_const = is_column_const(*c0); | 729 | 29 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 29 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 29 | auto c_res = ColumnUInt8::create(); | 734 | 29 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 29 | vec_res.resize(c0->size()); | 736 | | | 737 | 29 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 29 | } else if (c1_const) { | 740 | 29 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 29 | } else { | 742 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 0 | } | 744 | | | 745 | 29 | block.replace_by_position(result, std::move(c_res)); | 746 | 29 | } |
|
747 | | |
748 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
749 | 133 | const ColumnWithTypeAndName& c1) const { |
750 | 133 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
751 | 133 | return Status::OK(); |
752 | 133 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 33 | const ColumnWithTypeAndName& c1) const { | 750 | 33 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 33 | return Status::OK(); | 752 | 33 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 10 | const ColumnWithTypeAndName& c1) const { | 750 | 10 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 10 | return Status::OK(); | 752 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 9 | const ColumnWithTypeAndName& c1) const { | 750 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 9 | return Status::OK(); | 752 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 40 | const ColumnWithTypeAndName& c1) const { | 750 | 40 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 40 | return Status::OK(); | 752 | 40 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 12 | const ColumnWithTypeAndName& c1) const { | 750 | 12 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 12 | return Status::OK(); | 752 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 29 | const ColumnWithTypeAndName& c1) const { | 750 | 29 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 29 | return Status::OK(); | 752 | 29 | } |
|
753 | | |
754 | | public: |
755 | 262 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 83 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 41 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 43 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 73 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
|
756 | | |
757 | 302k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 273k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 1.27k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 757 | 7.23k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 7.81k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 757 | 4.05k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 9.04k | size_t get_number_of_arguments() const override { return 2; } |
|
758 | | |
759 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
760 | 3.97k | const VExprSPtrs& arguments) const override { |
761 | 3.97k | auto op = comparison_zonemap_detail::op_from_name(name); |
762 | 3.97k | DORIS_CHECK(op.has_value()); |
763 | 3.97k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
764 | 3.97k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 2.00k | const VExprSPtrs& arguments) const override { | 761 | 2.00k | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 2.00k | DORIS_CHECK(op.has_value()); | 763 | 2.00k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 2.00k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 209 | const VExprSPtrs& arguments) const override { | 761 | 209 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 209 | DORIS_CHECK(op.has_value()); | 763 | 209 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 209 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 358 | const VExprSPtrs& arguments) const override { | 761 | 358 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 358 | DORIS_CHECK(op.has_value()); | 763 | 358 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 358 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 440 | const VExprSPtrs& arguments) const override { | 761 | 440 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 440 | DORIS_CHECK(op.has_value()); | 763 | 440 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 440 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 695 | const VExprSPtrs& arguments) const override { | 761 | 695 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 695 | DORIS_CHECK(op.has_value()); | 763 | 695 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 695 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 267 | const VExprSPtrs& arguments) const override { | 761 | 267 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 267 | DORIS_CHECK(op.has_value()); | 763 | 267 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 267 | } |
|
765 | | |
766 | 33.4k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
767 | 33.4k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { |
768 | 0 | return false; |
769 | 0 | } |
770 | 33.4k | return comparison_zonemap_detail::can_evaluate(arguments) || |
771 | 33.4k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); |
772 | 33.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 14.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 14.8k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 14.8k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 14.8k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 14.8k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.40k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.40k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.40k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.40k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.40k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 5.49k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 5.49k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 5.49k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 5.49k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 5.49k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.98k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.98k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.98k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.98k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.98k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.48k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.48k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.48k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.48k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.48k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 2.27k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 2.27k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 2.27k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 2.27k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 2.27k | } |
|
773 | | |
774 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
775 | 14 | const VExprSPtrs& arguments) const override { |
776 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
777 | 14 | DORIS_CHECK(op.has_value()); |
778 | 14 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
779 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 4 | const VExprSPtrs& arguments) const override { | 776 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 4 | DORIS_CHECK(op.has_value()); | 778 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 3 | const VExprSPtrs& arguments) const override { | 776 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 3 | DORIS_CHECK(op.has_value()); | 778 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 3 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 7 | const VExprSPtrs& arguments) const override { | 776 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 7 | DORIS_CHECK(op.has_value()); | 778 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 7 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
780 | | |
781 | 838 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
782 | 838 | auto op = comparison_zonemap_detail::op_from_name(name); |
783 | 838 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
784 | 838 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 366 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 366 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 366 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 366 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 3 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 3 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 100 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 100 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 100 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 100 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 223 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 223 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 223 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 223 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 137 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 137 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 137 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 137 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 9 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 9 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 9 | } |
|
785 | | |
786 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
787 | 19 | const VExprSPtrs& arguments) const override { |
788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); |
789 | 19 | DORIS_CHECK(op.has_value()); |
790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
791 | 19 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 787 | 19 | const VExprSPtrs& arguments) const override { | 788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); | 789 | 19 | DORIS_CHECK(op.has_value()); | 790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 791 | 19 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
792 | | |
793 | 342 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
794 | 342 | auto op = comparison_zonemap_detail::op_from_name(name); |
795 | 342 | return op == comparison_zonemap_detail::Op::EQ && |
796 | 342 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
797 | 342 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 173 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 173 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 173 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 173 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 173 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 1 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 1 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 1 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 1 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 30 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 30 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 30 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 30 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 76 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 76 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 76 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 76 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 76 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 58 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 58 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 58 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 58 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 58 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 4 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 4 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 4 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 4 | } |
|
798 | | |
799 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
800 | 302k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
801 | 302k | return std::make_shared<DataTypeUInt8>(); |
802 | 302k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 272k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 272k | return std::make_shared<DataTypeUInt8>(); | 802 | 272k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 1.27k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 1.27k | return std::make_shared<DataTypeUInt8>(); | 802 | 1.27k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 7.23k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 7.23k | return std::make_shared<DataTypeUInt8>(); | 802 | 7.23k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 7.81k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 7.81k | return std::make_shared<DataTypeUInt8>(); | 802 | 7.81k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 4.05k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 4.05k | return std::make_shared<DataTypeUInt8>(); | 802 | 4.05k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 9.05k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 9.05k | return std::make_shared<DataTypeUInt8>(); | 802 | 9.05k | } |
|
803 | | |
804 | | Status evaluate_inverted_index( |
805 | | const ColumnsWithTypeAndName& arguments, |
806 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
807 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
808 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
809 | 1.30k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
810 | 1.30k | DCHECK(arguments.size() == 1); |
811 | 1.30k | DCHECK(data_type_with_names.size() == 1); |
812 | 1.30k | DCHECK(iterators.size() == 1); |
813 | 1.30k | auto* iter = iterators[0]; |
814 | 1.30k | auto data_type_with_name = data_type_with_names[0]; |
815 | 1.30k | if (iter == nullptr) { |
816 | 0 | return Status::OK(); |
817 | 0 | } |
818 | 1.30k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
819 | 305 | return Status::OK(); |
820 | 305 | } |
821 | 1.00k | segment_v2::InvertedIndexQueryType query_type; |
822 | 1.00k | std::string_view name_view(name); |
823 | 1.00k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
824 | 690 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
825 | 690 | } else if (name_view == NameLess::name) { |
826 | 73 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
827 | 240 | } else if (name_view == NameLessOrEquals::name) { |
828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
829 | 159 | } else if (name_view == NameGreater::name) { |
830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
831 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
832 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
833 | 18.4E | } else { |
834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
835 | 18.4E | } |
836 | | |
837 | 1.00k | if (segment_v2::is_range_query(query_type) && |
838 | 1.00k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
840 | 133 | return Status::OK(); |
841 | 133 | } |
842 | 871 | Field param_value; |
843 | 871 | arguments[0].column->get(0, param_value); |
844 | 871 | if (param_value.is_null()) { |
845 | 2 | return Status::OK(); |
846 | 2 | } |
847 | 869 | segment_v2::InvertedIndexParam param; |
848 | 869 | param.column_name = data_type_with_name.first; |
849 | 869 | param.column_type = data_type_with_name.second; |
850 | 869 | param.query_value = param_value; |
851 | 869 | param.query_type = query_type; |
852 | 869 | param.num_rows = num_rows; |
853 | 869 | param.roaring = std::make_shared<roaring::Roaring>(); |
854 | 869 | param.analyzer_ctx = analyzer_ctx; |
855 | 869 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
856 | 728 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
857 | 728 | if (iter->has_null()) { |
858 | 728 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
859 | 728 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
860 | 728 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
861 | 728 | } |
862 | 728 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
863 | 728 | bitmap_result = result; |
864 | 728 | bitmap_result.mask_out_null(); |
865 | | |
866 | 728 | if (name_view == NameNotEquals::name) { |
867 | 58 | roaring::Roaring full_result; |
868 | 58 | full_result.addRange(0, num_rows); |
869 | 58 | bitmap_result.op_not(&full_result); |
870 | 58 | } |
871 | | |
872 | 728 | return Status::OK(); |
873 | 728 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 658 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 658 | DCHECK(arguments.size() == 1); | 811 | 658 | DCHECK(data_type_with_names.size() == 1); | 812 | 658 | DCHECK(iterators.size() == 1); | 813 | 658 | auto* iter = iterators[0]; | 814 | 658 | auto data_type_with_name = data_type_with_names[0]; | 815 | 658 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 658 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 33 | return Status::OK(); | 820 | 33 | } | 821 | 625 | segment_v2::InvertedIndexQueryType query_type; | 822 | 625 | std::string_view name_view(name); | 823 | 625 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 625 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 625 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 0 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 0 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 625 | if (segment_v2::is_range_query(query_type) && | 838 | 625 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 625 | Field param_value; | 843 | 625 | arguments[0].column->get(0, param_value); | 844 | 625 | if (param_value.is_null()) { | 845 | 2 | return Status::OK(); | 846 | 2 | } | 847 | 623 | segment_v2::InvertedIndexParam param; | 848 | 623 | param.column_name = data_type_with_name.first; | 849 | 623 | param.column_type = data_type_with_name.second; | 850 | 623 | param.query_value = param_value; | 851 | 623 | param.query_type = query_type; | 852 | 623 | param.num_rows = num_rows; | 853 | 623 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 623 | param.analyzer_ctx = analyzer_ctx; | 855 | 623 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 588 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 589 | if (iter->has_null()) { | 858 | 589 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 589 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 589 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 589 | } | 862 | 588 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 588 | bitmap_result = result; | 864 | 588 | bitmap_result.mask_out_null(); | 865 | | | 866 | 588 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 588 | return Status::OK(); | 873 | 588 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 75 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 75 | DCHECK(arguments.size() == 1); | 811 | 75 | DCHECK(data_type_with_names.size() == 1); | 812 | 75 | DCHECK(iterators.size() == 1); | 813 | 75 | auto* iter = iterators[0]; | 814 | 75 | auto data_type_with_name = data_type_with_names[0]; | 815 | 75 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 75 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 10 | return Status::OK(); | 820 | 10 | } | 821 | 65 | segment_v2::InvertedIndexQueryType query_type; | 822 | 65 | std::string_view name_view(name); | 823 | 65 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 65 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 65 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 0 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 0 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 65 | if (segment_v2::is_range_query(query_type) && | 838 | 65 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 65 | Field param_value; | 843 | 65 | arguments[0].column->get(0, param_value); | 844 | 65 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 65 | segment_v2::InvertedIndexParam param; | 848 | 65 | param.column_name = data_type_with_name.first; | 849 | 65 | param.column_type = data_type_with_name.second; | 850 | 65 | param.query_value = param_value; | 851 | 65 | param.query_type = query_type; | 852 | 65 | param.num_rows = num_rows; | 853 | 65 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 65 | param.analyzer_ctx = analyzer_ctx; | 855 | 65 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 58 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 58 | if (iter->has_null()) { | 858 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 58 | } | 862 | 58 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 58 | bitmap_result = result; | 864 | 58 | bitmap_result.mask_out_null(); | 865 | | | 866 | 58 | if (name_view == NameNotEquals::name) { | 867 | 58 | roaring::Roaring full_result; | 868 | 58 | full_result.addRange(0, num_rows); | 869 | 58 | bitmap_result.op_not(&full_result); | 870 | 58 | } | 871 | | | 872 | 58 | return Status::OK(); | 873 | 58 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 105 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 105 | DCHECK(arguments.size() == 1); | 811 | 105 | DCHECK(data_type_with_names.size() == 1); | 812 | 105 | DCHECK(iterators.size() == 1); | 813 | 105 | auto* iter = iterators[0]; | 814 | 105 | auto data_type_with_name = data_type_with_names[0]; | 815 | 105 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 105 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 39 | return Status::OK(); | 820 | 39 | } | 821 | 66 | segment_v2::InvertedIndexQueryType query_type; | 822 | 66 | std::string_view name_view(name); | 823 | 67 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 66 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 66 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 67 | } else if (name_view == NameGreater::name) { | 830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 67 | if (segment_v2::is_range_query(query_type) && | 838 | 67 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 17 | return Status::OK(); | 841 | 17 | } | 842 | 50 | Field param_value; | 843 | 50 | arguments[0].column->get(0, param_value); | 844 | 50 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 50 | segment_v2::InvertedIndexParam param; | 848 | 50 | param.column_name = data_type_with_name.first; | 849 | 50 | param.column_type = data_type_with_name.second; | 850 | 50 | param.query_value = param_value; | 851 | 50 | param.query_type = query_type; | 852 | 50 | param.num_rows = num_rows; | 853 | 50 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 50 | param.analyzer_ctx = analyzer_ctx; | 855 | 50 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 31 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 31 | if (iter->has_null()) { | 858 | 31 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 31 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 31 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 31 | } | 862 | 31 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 31 | bitmap_result = result; | 864 | 31 | bitmap_result.mask_out_null(); | 865 | | | 866 | 31 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 31 | return Status::OK(); | 873 | 31 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 179 | DCHECK(arguments.size() == 1); | 811 | 179 | DCHECK(data_type_with_names.size() == 1); | 812 | 179 | DCHECK(iterators.size() == 1); | 813 | 179 | auto* iter = iterators[0]; | 814 | 179 | auto data_type_with_name = data_type_with_names[0]; | 815 | 179 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 86 | return Status::OK(); | 820 | 86 | } | 821 | 93 | segment_v2::InvertedIndexQueryType query_type; | 822 | 93 | std::string_view name_view(name); | 823 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 93 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 93 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 93 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 93 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 93 | if (segment_v2::is_range_query(query_type) && | 838 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 47 | return Status::OK(); | 841 | 47 | } | 842 | 46 | Field param_value; | 843 | 46 | arguments[0].column->get(0, param_value); | 844 | 46 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 46 | segment_v2::InvertedIndexParam param; | 848 | 46 | param.column_name = data_type_with_name.first; | 849 | 46 | param.column_type = data_type_with_name.second; | 850 | 46 | param.query_value = param_value; | 851 | 46 | param.query_type = query_type; | 852 | 46 | param.num_rows = num_rows; | 853 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 46 | param.analyzer_ctx = analyzer_ctx; | 855 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 5 | if (iter->has_null()) { | 858 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 5 | } | 862 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 5 | bitmap_result = result; | 864 | 5 | bitmap_result.mask_out_null(); | 865 | | | 866 | 5 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 5 | return Status::OK(); | 873 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 116 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 116 | DCHECK(arguments.size() == 1); | 811 | 116 | DCHECK(data_type_with_names.size() == 1); | 812 | 116 | DCHECK(iterators.size() == 1); | 813 | 116 | auto* iter = iterators[0]; | 814 | 116 | auto data_type_with_name = data_type_with_names[0]; | 815 | 116 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 116 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 43 | return Status::OK(); | 820 | 43 | } | 821 | 73 | segment_v2::InvertedIndexQueryType query_type; | 822 | 73 | std::string_view name_view(name); | 823 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 73 | } else if (name_view == NameLess::name) { | 826 | 73 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 73 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 0 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 73 | if (segment_v2::is_range_query(query_type) && | 838 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 18 | return Status::OK(); | 841 | 18 | } | 842 | 55 | Field param_value; | 843 | 55 | arguments[0].column->get(0, param_value); | 844 | 55 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 55 | segment_v2::InvertedIndexParam param; | 848 | 55 | param.column_name = data_type_with_name.first; | 849 | 55 | param.column_type = data_type_with_name.second; | 850 | 55 | param.query_value = param_value; | 851 | 55 | param.query_type = query_type; | 852 | 55 | param.num_rows = num_rows; | 853 | 55 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 55 | param.analyzer_ctx = analyzer_ctx; | 855 | 55 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 36 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 36 | if (iter->has_null()) { | 858 | 36 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 36 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 36 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 36 | } | 862 | 36 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 36 | bitmap_result = result; | 864 | 36 | bitmap_result.mask_out_null(); | 865 | | | 866 | 36 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 36 | return Status::OK(); | 873 | 36 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 175 | DCHECK(arguments.size() == 1); | 811 | 175 | DCHECK(data_type_with_names.size() == 1); | 812 | 175 | DCHECK(iterators.size() == 1); | 813 | 175 | auto* iter = iterators[0]; | 814 | 175 | auto data_type_with_name = data_type_with_names[0]; | 815 | 175 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 94 | return Status::OK(); | 820 | 94 | } | 821 | 81 | segment_v2::InvertedIndexQueryType query_type; | 822 | 81 | std::string_view name_view(name); | 823 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 81 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 81 | } else if (name_view == NameLessOrEquals::name) { | 828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 81 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 81 | if (segment_v2::is_range_query(query_type) && | 838 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 51 | return Status::OK(); | 841 | 51 | } | 842 | 30 | Field param_value; | 843 | 30 | arguments[0].column->get(0, param_value); | 844 | 30 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 30 | segment_v2::InvertedIndexParam param; | 848 | 30 | param.column_name = data_type_with_name.first; | 849 | 30 | param.column_type = data_type_with_name.second; | 850 | 30 | param.query_value = param_value; | 851 | 30 | param.query_type = query_type; | 852 | 30 | param.num_rows = num_rows; | 853 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 30 | param.analyzer_ctx = analyzer_ctx; | 855 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 10 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 10 | if (iter->has_null()) { | 858 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 9 | } | 862 | 10 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 10 | bitmap_result = result; | 864 | 10 | bitmap_result.mask_out_null(); | 865 | | | 866 | 10 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 10 | return Status::OK(); | 873 | 10 | } |
|
874 | | |
875 | | // NOLINTNEXTLINE(readability-function-size) |
876 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
877 | 97.7k | uint32_t result, size_t input_rows_count) const override { |
878 | 97.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
879 | 97.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
880 | | |
881 | 97.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
882 | 97.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
883 | 97.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
884 | 97.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
885 | | |
886 | 97.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
887 | 97.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
888 | | |
889 | | /// The case when arguments are the same (tautological comparison). Return constant. |
890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
892 | 97.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
893 | 97.7k | col_left_untyped == col_right_untyped) { |
894 | | /// Always true: =, <=, >= |
895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
899 | 6 | block.get_by_position(result).column = |
900 | 6 | DataTypeUInt8() |
901 | 6 | .create_column_const(input_rows_count, |
902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) |
903 | 6 | ->convert_to_full_column_if_const(); |
904 | 6 | return Status::OK(); |
905 | 6 | } else { |
906 | 0 | block.get_by_position(result).column = |
907 | 0 | DataTypeUInt8() |
908 | 0 | .create_column_const(input_rows_count, |
909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
910 | 0 | ->convert_to_full_column_if_const(); |
911 | 0 | return Status::OK(); |
912 | 0 | } |
913 | 6 | } |
914 | | |
915 | 164k | auto can_compare = [](PrimitiveType t) -> bool { |
916 | 164k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
917 | 164k | is_timestamp_ns_type(t) || is_timestamptz_type(t); |
918 | 164k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 64.4k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 64.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 64.4k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 64.4k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 5.27k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 5.27k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 5.27k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 5.27k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 46.9k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 46.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 46.9k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 46.9k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 7.41k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 7.41k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 7.41k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 7.41k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 21.7k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 21.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 21.7k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 21.7k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 18.4k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 18.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 18.4k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 18.4k | }; |
|
919 | | |
920 | 97.7k | if (can_compare(left_type->get_primitive_type()) && |
921 | 97.7k | can_compare(right_type->get_primitive_type())) { |
922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
923 | 66.6k | if (!left_type->equals_ignore_precision(*right_type)) { |
924 | 70 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
925 | 70 | get_name(), left_type->get_name(), |
926 | 70 | right_type->get_name()); |
927 | 70 | } |
928 | 66.6k | } |
929 | | |
930 | 97.6k | auto compare_type = left_type->get_primitive_type(); |
931 | 97.6k | switch (compare_type) { |
932 | 241 | case TYPE_BOOLEAN: |
933 | 241 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
934 | 4.88k | case TYPE_DATEV2: |
935 | 4.88k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
936 | 870 | case TYPE_DATETIMEV2: |
937 | 870 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
938 | 917 | case TYPE_TIMESTAMP_NS: |
939 | 917 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
940 | 18 | case TYPE_TIMESTAMPTZ: |
941 | 18 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
942 | 10.3k | case TYPE_TINYINT: |
943 | 10.3k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
944 | 3.05k | case TYPE_SMALLINT: |
945 | 3.05k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
946 | 28.4k | case TYPE_INT: |
947 | 28.4k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
948 | 13.2k | case TYPE_BIGINT: |
949 | 13.2k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
950 | 623 | case TYPE_LARGEINT: |
951 | 623 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
952 | 34 | case TYPE_IPV4: |
953 | 34 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
954 | 34 | case TYPE_IPV6: |
955 | 34 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
956 | 4.87k | case TYPE_UUID: |
957 | 4.87k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
958 | 723 | case TYPE_FLOAT: |
959 | 723 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
960 | 2.98k | case TYPE_DOUBLE: |
961 | 2.98k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
962 | 52 | case TYPE_TIMEV2: |
963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
964 | 0 | case TYPE_DECIMALV2: |
965 | 275 | case TYPE_DECIMAL32: |
966 | 819 | case TYPE_DECIMAL64: |
967 | 2.95k | case TYPE_DECIMAL128I: |
968 | 3.02k | case TYPE_DECIMAL256: |
969 | 3.02k | return execute_decimal(block, result, col_with_type_and_name_left, |
970 | 3.02k | col_with_type_and_name_right); |
971 | 823 | case TYPE_CHAR: |
972 | 8.41k | case TYPE_VARCHAR: |
973 | 23.0k | case TYPE_STRING: |
974 | 23.0k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
975 | 133 | default: |
976 | 133 | return execute_generic(block, result, col_with_type_and_name_left, |
977 | 133 | col_with_type_and_name_right); |
978 | 97.6k | } |
979 | 0 | return Status::OK(); |
980 | 97.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 45.0k | uint32_t result, size_t input_rows_count) const override { | 878 | 45.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 45.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 45.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 45.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 45.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 45.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 45.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 45.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 45.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 45.0k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 6 | block.get_by_position(result).column = | 900 | 6 | DataTypeUInt8() | 901 | 6 | .create_column_const(input_rows_count, | 902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 6 | ->convert_to_full_column_if_const(); | 904 | 6 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 6 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 45.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 45.0k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 45.0k | }; | 919 | | | 920 | 45.0k | if (can_compare(left_type->get_primitive_type()) && | 921 | 45.0k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 19.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 20 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 20 | get_name(), left_type->get_name(), | 926 | 20 | right_type->get_name()); | 927 | 20 | } | 928 | 19.4k | } | 929 | | | 930 | 45.0k | auto compare_type = left_type->get_primitive_type(); | 931 | 45.0k | switch (compare_type) { | 932 | 98 | case TYPE_BOOLEAN: | 933 | 98 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 585 | case TYPE_DATEV2: | 935 | 585 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 378 | case TYPE_DATETIMEV2: | 937 | 378 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 209 | case TYPE_TIMESTAMP_NS: | 939 | 209 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 12 | case TYPE_TIMESTAMPTZ: | 941 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 6.18k | case TYPE_TINYINT: | 943 | 6.18k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 401 | case TYPE_SMALLINT: | 945 | 401 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 3.29k | case TYPE_INT: | 947 | 3.29k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 7.35k | case TYPE_BIGINT: | 949 | 7.35k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 84 | case TYPE_LARGEINT: | 951 | 84 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 12 | case TYPE_IPV4: | 953 | 12 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 17 | case TYPE_IPV6: | 955 | 17 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 2.79k | case TYPE_UUID: | 957 | 2.79k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 73 | case TYPE_FLOAT: | 959 | 73 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 698 | case TYPE_DOUBLE: | 961 | 698 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 52 | case TYPE_TIMEV2: | 963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 100 | case TYPE_DECIMAL32: | 966 | 205 | case TYPE_DECIMAL64: | 967 | 1.02k | case TYPE_DECIMAL128I: | 968 | 1.04k | case TYPE_DECIMAL256: | 969 | 1.04k | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 1.04k | col_with_type_and_name_right); | 971 | 587 | case TYPE_CHAR: | 972 | 7.47k | case TYPE_VARCHAR: | 973 | 21.7k | case TYPE_STRING: | 974 | 21.7k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 33 | default: | 976 | 33 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 33 | col_with_type_and_name_right); | 978 | 45.0k | } | 979 | 0 | return Status::OK(); | 980 | 45.0k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 2.77k | uint32_t result, size_t input_rows_count) const override { | 878 | 2.77k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 2.77k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 2.77k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 2.77k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 2.77k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 2.77k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 2.77k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 2.77k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 2.77k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 2.77k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 2.77k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 2.77k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 2.77k | }; | 919 | | | 920 | 2.77k | if (can_compare(left_type->get_primitive_type()) && | 921 | 2.77k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 2.50k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 2.50k | } | 929 | | | 930 | 2.76k | auto compare_type = left_type->get_primitive_type(); | 931 | 2.76k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 70 | case TYPE_DATEV2: | 935 | 70 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 0 | case TYPE_DATETIMEV2: | 937 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 11 | case TYPE_TIMESTAMP_NS: | 939 | 11 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 0 | case TYPE_TIMESTAMPTZ: | 941 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 82 | case TYPE_TINYINT: | 943 | 82 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 0 | case TYPE_SMALLINT: | 945 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 1.11k | case TYPE_INT: | 947 | 1.11k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 1.10k | case TYPE_BIGINT: | 949 | 1.10k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 0 | case TYPE_LARGEINT: | 951 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 0 | case TYPE_UUID: | 957 | 0 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 48 | case TYPE_FLOAT: | 959 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 63 | case TYPE_DOUBLE: | 961 | 63 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 0 | case TYPE_DECIMAL32: | 966 | 67 | case TYPE_DECIMAL64: | 967 | 95 | case TYPE_DECIMAL128I: | 968 | 125 | case TYPE_DECIMAL256: | 969 | 125 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 125 | col_with_type_and_name_right); | 971 | 1 | case TYPE_CHAR: | 972 | 58 | case TYPE_VARCHAR: | 973 | 131 | case TYPE_STRING: | 974 | 131 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 10 | default: | 976 | 10 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 10 | col_with_type_and_name_right); | 978 | 2.76k | } | 979 | 0 | return Status::OK(); | 980 | 2.76k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 24.2k | uint32_t result, size_t input_rows_count) const override { | 878 | 24.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 24.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 24.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 24.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 24.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 24.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 24.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 24.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 24.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 24.2k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 24.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 24.2k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 24.2k | }; | 919 | | | 920 | 24.2k | if (can_compare(left_type->get_primitive_type()) && | 921 | 24.2k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 22.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 22.7k | } | 929 | | | 930 | 24.2k | auto compare_type = left_type->get_primitive_type(); | 931 | 24.2k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 995 | case TYPE_DATEV2: | 935 | 995 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 3 | case TYPE_DATETIMEV2: | 937 | 3 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 72 | case TYPE_TIMESTAMP_NS: | 939 | 72 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 1 | case TYPE_TIMESTAMPTZ: | 941 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 1.62k | case TYPE_TINYINT: | 943 | 1.62k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 2.33k | case TYPE_SMALLINT: | 945 | 2.33k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 13.9k | case TYPE_INT: | 947 | 13.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 2.41k | case TYPE_BIGINT: | 949 | 2.41k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 228 | case TYPE_LARGEINT: | 951 | 228 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 4 | case TYPE_IPV4: | 953 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 611 | case TYPE_UUID: | 957 | 611 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 422 | case TYPE_FLOAT: | 959 | 422 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 591 | case TYPE_DOUBLE: | 961 | 591 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 8 | case TYPE_DECIMAL32: | 966 | 74 | case TYPE_DECIMAL64: | 967 | 738 | case TYPE_DECIMAL128I: | 968 | 740 | case TYPE_DECIMAL256: | 969 | 740 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 740 | col_with_type_and_name_right); | 971 | 14 | case TYPE_CHAR: | 972 | 102 | case TYPE_VARCHAR: | 973 | 203 | case TYPE_STRING: | 974 | 203 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 9 | default: | 976 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 9 | col_with_type_and_name_right); | 978 | 24.2k | } | 979 | 0 | return Status::OK(); | 980 | 24.2k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 4.22k | uint32_t result, size_t input_rows_count) const override { | 878 | 4.22k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 4.22k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 4.22k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 4.22k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 4.22k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 4.22k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 4.22k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 4.22k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 4.22k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 4.22k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 4.22k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 4.22k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 4.22k | }; | 919 | | | 920 | 4.22k | if (can_compare(left_type->get_primitive_type()) && | 921 | 4.22k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 3.19k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 3.19k | } | 929 | | | 930 | 4.21k | auto compare_type = left_type->get_primitive_type(); | 931 | 4.21k | switch (compare_type) { | 932 | 30 | case TYPE_BOOLEAN: | 933 | 30 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 506 | case TYPE_DATEV2: | 935 | 506 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 122 | case TYPE_DATETIMEV2: | 937 | 122 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 406 | case TYPE_TIMESTAMP_NS: | 939 | 406 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 1 | case TYPE_TIMESTAMPTZ: | 941 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 41 | case TYPE_TINYINT: | 943 | 41 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 65 | case TYPE_SMALLINT: | 945 | 65 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 1.00k | case TYPE_INT: | 947 | 1.00k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 753 | case TYPE_BIGINT: | 949 | 753 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 23 | case TYPE_LARGEINT: | 951 | 23 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 1 | case TYPE_IPV4: | 953 | 1 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 583 | case TYPE_UUID: | 957 | 583 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 30 | case TYPE_FLOAT: | 959 | 30 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 168 | case TYPE_DOUBLE: | 961 | 168 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 1 | case TYPE_DECIMAL32: | 966 | 58 | case TYPE_DECIMAL64: | 967 | 135 | case TYPE_DECIMAL128I: | 968 | 152 | case TYPE_DECIMAL256: | 969 | 152 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 152 | col_with_type_and_name_right); | 971 | 16 | case TYPE_CHAR: | 972 | 238 | case TYPE_VARCHAR: | 973 | 289 | case TYPE_STRING: | 974 | 289 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 40 | default: | 976 | 40 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 40 | col_with_type_and_name_right); | 978 | 4.21k | } | 979 | 0 | return Status::OK(); | 980 | 4.21k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 11.7k | uint32_t result, size_t input_rows_count) const override { | 878 | 11.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 11.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 11.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 11.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 11.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 11.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 11.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 11.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 11.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 11.7k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 11.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 11.7k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 11.7k | }; | 919 | | | 920 | 11.7k | if (can_compare(left_type->get_primitive_type()) && | 921 | 11.7k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 9.99k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 9.99k | } | 929 | | | 930 | 11.7k | auto compare_type = left_type->get_primitive_type(); | 931 | 11.7k | switch (compare_type) { | 932 | 85 | case TYPE_BOOLEAN: | 933 | 85 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 2.20k | case TYPE_DATEV2: | 935 | 2.20k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 294 | case TYPE_DATETIMEV2: | 937 | 294 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 155 | case TYPE_TIMESTAMP_NS: | 939 | 155 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 2.38k | case TYPE_TINYINT: | 943 | 2.38k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 173 | case TYPE_SMALLINT: | 945 | 173 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 2.02k | case TYPE_INT: | 947 | 2.02k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 906 | case TYPE_BIGINT: | 949 | 906 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 255 | case TYPE_LARGEINT: | 951 | 255 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 17 | case TYPE_IPV4: | 953 | 17 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 15 | case TYPE_IPV6: | 955 | 15 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 457 | case TYPE_UUID: | 957 | 457 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 131 | case TYPE_FLOAT: | 959 | 131 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 1.34k | case TYPE_DOUBLE: | 961 | 1.34k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 162 | case TYPE_DECIMAL32: | 966 | 344 | case TYPE_DECIMAL64: | 967 | 804 | case TYPE_DECIMAL128I: | 968 | 805 | case TYPE_DECIMAL256: | 969 | 805 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 805 | col_with_type_and_name_right); | 971 | 175 | case TYPE_CHAR: | 972 | 357 | case TYPE_VARCHAR: | 973 | 503 | case TYPE_STRING: | 974 | 503 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 12 | default: | 976 | 12 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 12 | col_with_type_and_name_right); | 978 | 11.7k | } | 979 | 0 | return Status::OK(); | 980 | 11.7k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 9.65k | uint32_t result, size_t input_rows_count) const override { | 878 | 9.65k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 9.65k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 9.65k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 9.65k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 9.65k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 9.65k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 9.65k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 9.65k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 9.65k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 9.65k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 9.65k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 9.65k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 9.65k | }; | 919 | | | 920 | 9.65k | if (can_compare(left_type->get_primitive_type()) && | 921 | 9.65k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 8.81k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 8.81k | } | 929 | | | 930 | 9.64k | auto compare_type = left_type->get_primitive_type(); | 931 | 9.64k | switch (compare_type) { | 932 | 28 | case TYPE_BOOLEAN: | 933 | 28 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 528 | case TYPE_DATEV2: | 935 | 528 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 73 | case TYPE_DATETIMEV2: | 937 | 73 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 64 | case TYPE_TIMESTAMP_NS: | 939 | 64 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 60 | case TYPE_TINYINT: | 943 | 60 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 72 | case TYPE_SMALLINT: | 945 | 72 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 7.07k | case TYPE_INT: | 947 | 7.07k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 701 | case TYPE_BIGINT: | 949 | 701 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 33 | case TYPE_LARGEINT: | 951 | 33 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 423 | case TYPE_UUID: | 957 | 423 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 19 | case TYPE_FLOAT: | 959 | 19 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 112 | case TYPE_DOUBLE: | 961 | 112 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 4 | case TYPE_DECIMAL32: | 966 | 71 | case TYPE_DECIMAL64: | 967 | 154 | case TYPE_DECIMAL128I: | 968 | 166 | case TYPE_DECIMAL256: | 969 | 166 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 166 | col_with_type_and_name_right); | 971 | 30 | case TYPE_CHAR: | 972 | 187 | case TYPE_VARCHAR: | 973 | 256 | case TYPE_STRING: | 974 | 256 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 29 | default: | 976 | 29 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 29 | col_with_type_and_name_right); | 978 | 9.64k | } | 979 | 0 | return Status::OK(); | 980 | 9.64k | } |
|
981 | | }; |
982 | | |
983 | | } // namespace doris |