be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 10.4k | PaddedPODArray<UInt8>& c) { |
72 | 10.4k | size_t size = a.size(); |
73 | 10.4k | const A* __restrict a_pos = a.data(); |
74 | 10.4k | const B* __restrict b_pos = b.data(); |
75 | 10.4k | UInt8* __restrict c_pos = c.data(); |
76 | 10.4k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 6.07M | while (a_pos < a_end) { |
79 | 6.06M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 6.06M | ++a_pos; |
81 | 6.06M | ++b_pos; |
82 | 6.06M | ++c_pos; |
83 | 6.06M | } |
84 | 10.4k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 59 | PaddedPODArray<UInt8>& c) { | 72 | 59 | size_t size = a.size(); | 73 | 59 | const A* __restrict a_pos = a.data(); | 74 | 59 | const B* __restrict b_pos = b.data(); | 75 | 59 | UInt8* __restrict c_pos = c.data(); | 76 | 59 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 118 | while (a_pos < a_end) { | 79 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 59 | ++a_pos; | 81 | 59 | ++b_pos; | 82 | 59 | ++c_pos; | 83 | 59 | } | 84 | 59 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 380 | PaddedPODArray<UInt8>& c) { | 72 | 380 | size_t size = a.size(); | 73 | 380 | const A* __restrict a_pos = a.data(); | 74 | 380 | const B* __restrict b_pos = b.data(); | 75 | 380 | UInt8* __restrict c_pos = c.data(); | 76 | 380 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 766 | while (a_pos < a_end) { | 79 | 386 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 386 | ++a_pos; | 81 | 386 | ++b_pos; | 82 | 386 | ++c_pos; | 83 | 386 | } | 84 | 380 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 296 | PaddedPODArray<UInt8>& c) { | 72 | 296 | size_t size = a.size(); | 73 | 296 | const A* __restrict a_pos = a.data(); | 74 | 296 | const B* __restrict b_pos = b.data(); | 75 | 296 | UInt8* __restrict c_pos = c.data(); | 76 | 296 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 610 | while (a_pos < a_end) { | 79 | 314 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 314 | ++a_pos; | 81 | 314 | ++b_pos; | 82 | 314 | ++c_pos; | 83 | 314 | } | 84 | 296 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 14 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 4 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 141 | PaddedPODArray<UInt8>& c) { | 72 | 141 | size_t size = a.size(); | 73 | 141 | const A* __restrict a_pos = a.data(); | 74 | 141 | const B* __restrict b_pos = b.data(); | 75 | 141 | UInt8* __restrict c_pos = c.data(); | 76 | 141 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 413 | while (a_pos < a_end) { | 79 | 272 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 272 | ++a_pos; | 81 | 272 | ++b_pos; | 82 | 272 | ++c_pos; | 83 | 272 | } | 84 | 141 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 62 | PaddedPODArray<UInt8>& c) { | 72 | 62 | size_t size = a.size(); | 73 | 62 | const A* __restrict a_pos = a.data(); | 74 | 62 | const B* __restrict b_pos = b.data(); | 75 | 62 | UInt8* __restrict c_pos = c.data(); | 76 | 62 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 62 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 646 | PaddedPODArray<UInt8>& c) { | 72 | 646 | size_t size = a.size(); | 73 | 646 | const A* __restrict a_pos = a.data(); | 74 | 646 | const B* __restrict b_pos = b.data(); | 75 | 646 | UInt8* __restrict c_pos = c.data(); | 76 | 646 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.58k | while (a_pos < a_end) { | 79 | 1.94k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.94k | ++a_pos; | 81 | 1.94k | ++b_pos; | 82 | 1.94k | ++c_pos; | 83 | 1.94k | } | 84 | 646 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 188 | PaddedPODArray<UInt8>& c) { | 72 | 188 | size_t size = a.size(); | 73 | 188 | const A* __restrict a_pos = a.data(); | 74 | 188 | const B* __restrict b_pos = b.data(); | 75 | 188 | UInt8* __restrict c_pos = c.data(); | 76 | 188 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.61k | while (a_pos < a_end) { | 79 | 1.42k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.42k | ++a_pos; | 81 | 1.42k | ++b_pos; | 82 | 1.42k | ++c_pos; | 83 | 1.42k | } | 84 | 188 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 72 | PaddedPODArray<UInt8>& c) { | 72 | 72 | size_t size = a.size(); | 73 | 72 | const A* __restrict a_pos = a.data(); | 74 | 72 | const B* __restrict b_pos = b.data(); | 75 | 72 | UInt8* __restrict c_pos = c.data(); | 76 | 72 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 144 | while (a_pos < a_end) { | 79 | 72 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 72 | ++a_pos; | 81 | 72 | ++b_pos; | 82 | 72 | ++c_pos; | 83 | 72 | } | 84 | 72 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 13 | PaddedPODArray<UInt8>& c) { | 72 | 13 | size_t size = a.size(); | 73 | 13 | const A* __restrict a_pos = a.data(); | 74 | 13 | const B* __restrict b_pos = b.data(); | 75 | 13 | UInt8* __restrict c_pos = c.data(); | 76 | 13 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 26 | while (a_pos < a_end) { | 79 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 13 | ++a_pos; | 81 | 13 | ++b_pos; | 82 | 13 | ++c_pos; | 83 | 13 | } | 84 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 96 | PaddedPODArray<UInt8>& c) { | 72 | 96 | size_t size = a.size(); | 73 | 96 | const A* __restrict a_pos = a.data(); | 74 | 96 | const B* __restrict b_pos = b.data(); | 75 | 96 | UInt8* __restrict c_pos = c.data(); | 76 | 96 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 211 | while (a_pos < a_end) { | 79 | 115 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 115 | ++a_pos; | 81 | 115 | ++b_pos; | 82 | 115 | ++c_pos; | 83 | 115 | } | 84 | 96 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 90 | PaddedPODArray<UInt8>& c) { | 72 | 90 | size_t size = a.size(); | 73 | 90 | const A* __restrict a_pos = a.data(); | 74 | 90 | const B* __restrict b_pos = b.data(); | 75 | 90 | UInt8* __restrict c_pos = c.data(); | 76 | 90 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 201 | while (a_pos < a_end) { | 79 | 111 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 111 | ++a_pos; | 81 | 111 | ++b_pos; | 82 | 111 | ++c_pos; | 83 | 111 | } | 84 | 90 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 43 | PaddedPODArray<UInt8>& c) { | 72 | 43 | size_t size = a.size(); | 73 | 43 | const A* __restrict a_pos = a.data(); | 74 | 43 | const B* __restrict b_pos = b.data(); | 75 | 43 | UInt8* __restrict c_pos = c.data(); | 76 | 43 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 116 | while (a_pos < a_end) { | 79 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 73 | ++a_pos; | 81 | 73 | ++b_pos; | 82 | 73 | ++c_pos; | 83 | 73 | } | 84 | 43 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 52 | PaddedPODArray<UInt8>& c) { | 72 | 52 | size_t size = a.size(); | 73 | 52 | const A* __restrict a_pos = a.data(); | 74 | 52 | const B* __restrict b_pos = b.data(); | 75 | 52 | UInt8* __restrict c_pos = c.data(); | 76 | 52 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 234 | while (a_pos < a_end) { | 79 | 182 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 182 | ++a_pos; | 81 | 182 | ++b_pos; | 82 | 182 | ++c_pos; | 83 | 182 | } | 84 | 52 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.29k | PaddedPODArray<UInt8>& c) { | 72 | 1.29k | size_t size = a.size(); | 73 | 1.29k | const A* __restrict a_pos = a.data(); | 74 | 1.29k | const B* __restrict b_pos = b.data(); | 75 | 1.29k | UInt8* __restrict c_pos = c.data(); | 76 | 1.29k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 358k | while (a_pos < a_end) { | 79 | 356k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 356k | ++a_pos; | 81 | 356k | ++b_pos; | 82 | 356k | ++c_pos; | 83 | 356k | } | 84 | 1.29k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 318 | PaddedPODArray<UInt8>& c) { | 72 | 318 | size_t size = a.size(); | 73 | 318 | const A* __restrict a_pos = a.data(); | 74 | 318 | const B* __restrict b_pos = b.data(); | 75 | 318 | UInt8* __restrict c_pos = c.data(); | 76 | 318 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.17k | while (a_pos < a_end) { | 79 | 5.85k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.85k | ++a_pos; | 81 | 5.85k | ++b_pos; | 82 | 5.85k | ++c_pos; | 83 | 5.85k | } | 84 | 318 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.80k | PaddedPODArray<UInt8>& c) { | 72 | 1.80k | size_t size = a.size(); | 73 | 1.80k | const A* __restrict a_pos = a.data(); | 74 | 1.80k | const B* __restrict b_pos = b.data(); | 75 | 1.80k | UInt8* __restrict c_pos = c.data(); | 76 | 1.80k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.88M | while (a_pos < a_end) { | 79 | 3.88M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 3.88M | ++a_pos; | 81 | 3.88M | ++b_pos; | 82 | 3.88M | ++c_pos; | 83 | 3.88M | } | 84 | 1.80k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 42 | PaddedPODArray<UInt8>& c) { | 72 | 42 | size_t size = a.size(); | 73 | 42 | const A* __restrict a_pos = a.data(); | 74 | 42 | const B* __restrict b_pos = b.data(); | 75 | 42 | UInt8* __restrict c_pos = c.data(); | 76 | 42 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 326 | while (a_pos < a_end) { | 79 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 284 | ++a_pos; | 81 | 284 | ++b_pos; | 82 | 284 | ++c_pos; | 83 | 284 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 126 | PaddedPODArray<UInt8>& c) { | 72 | 126 | size_t size = a.size(); | 73 | 126 | const A* __restrict a_pos = a.data(); | 74 | 126 | const B* __restrict b_pos = b.data(); | 75 | 126 | UInt8* __restrict c_pos = c.data(); | 76 | 126 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 378 | while (a_pos < a_end) { | 79 | 252 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 252 | ++a_pos; | 81 | 252 | ++b_pos; | 82 | 252 | ++c_pos; | 83 | 252 | } | 84 | 126 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 65 | PaddedPODArray<UInt8>& c) { | 72 | 65 | size_t size = a.size(); | 73 | 65 | const A* __restrict a_pos = a.data(); | 74 | 65 | const B* __restrict b_pos = b.data(); | 75 | 65 | UInt8* __restrict c_pos = c.data(); | 76 | 65 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 303 | while (a_pos < a_end) { | 79 | 238 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 238 | ++a_pos; | 81 | 238 | ++b_pos; | 82 | 238 | ++c_pos; | 83 | 238 | } | 84 | 65 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 64 | PaddedPODArray<UInt8>& c) { | 72 | 64 | size_t size = a.size(); | 73 | 64 | const A* __restrict a_pos = a.data(); | 74 | 64 | const B* __restrict b_pos = b.data(); | 75 | 64 | UInt8* __restrict c_pos = c.data(); | 76 | 64 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 583 | while (a_pos < a_end) { | 79 | 519 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 519 | ++a_pos; | 81 | 519 | ++b_pos; | 82 | 519 | ++c_pos; | 83 | 519 | } | 84 | 64 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 27 | PaddedPODArray<UInt8>& c) { | 72 | 27 | size_t size = a.size(); | 73 | 27 | const A* __restrict a_pos = a.data(); | 74 | 27 | const B* __restrict b_pos = b.data(); | 75 | 27 | UInt8* __restrict c_pos = c.data(); | 76 | 27 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 97 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 27 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 21 | PaddedPODArray<UInt8>& c) { | 72 | 21 | size_t size = a.size(); | 73 | 21 | const A* __restrict a_pos = a.data(); | 74 | 21 | const B* __restrict b_pos = b.data(); | 75 | 21 | UInt8* __restrict c_pos = c.data(); | 76 | 21 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 42 | while (a_pos < a_end) { | 79 | 21 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 21 | ++a_pos; | 81 | 21 | ++b_pos; | 82 | 21 | ++c_pos; | 83 | 21 | } | 84 | 21 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 31 | PaddedPODArray<UInt8>& c) { | 72 | 31 | size_t size = a.size(); | 73 | 31 | const A* __restrict a_pos = a.data(); | 74 | 31 | const B* __restrict b_pos = b.data(); | 75 | 31 | UInt8* __restrict c_pos = c.data(); | 76 | 31 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 62 | while (a_pos < a_end) { | 79 | 31 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 31 | ++a_pos; | 81 | 31 | ++b_pos; | 82 | 31 | ++c_pos; | 83 | 31 | } | 84 | 31 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 51 | PaddedPODArray<UInt8>& c) { | 72 | 51 | size_t size = a.size(); | 73 | 51 | const A* __restrict a_pos = a.data(); | 74 | 51 | const B* __restrict b_pos = b.data(); | 75 | 51 | UInt8* __restrict c_pos = c.data(); | 76 | 51 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 160 | while (a_pos < a_end) { | 79 | 109 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 109 | ++a_pos; | 81 | 109 | ++b_pos; | 82 | 109 | ++c_pos; | 83 | 109 | } | 84 | 51 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 43 | PaddedPODArray<UInt8>& c) { | 72 | 43 | size_t size = a.size(); | 73 | 43 | const A* __restrict a_pos = a.data(); | 74 | 43 | const B* __restrict b_pos = b.data(); | 75 | 43 | UInt8* __restrict c_pos = c.data(); | 76 | 43 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 97 | while (a_pos < a_end) { | 79 | 54 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 54 | ++a_pos; | 81 | 54 | ++b_pos; | 82 | 54 | ++c_pos; | 83 | 54 | } | 84 | 43 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 35 | PaddedPODArray<UInt8>& c) { | 72 | 35 | size_t size = a.size(); | 73 | 35 | const A* __restrict a_pos = a.data(); | 74 | 35 | const B* __restrict b_pos = b.data(); | 75 | 35 | UInt8* __restrict c_pos = c.data(); | 76 | 35 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 116 | while (a_pos < a_end) { | 79 | 81 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 81 | ++a_pos; | 81 | 81 | ++b_pos; | 82 | 81 | ++c_pos; | 83 | 81 | } | 84 | 35 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 139 | while (a_pos < a_end) { | 79 | 79 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 79 | ++a_pos; | 81 | 79 | ++b_pos; | 82 | 79 | ++c_pos; | 83 | 79 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 22 | PaddedPODArray<UInt8>& c) { | 72 | 22 | size_t size = a.size(); | 73 | 22 | const A* __restrict a_pos = a.data(); | 74 | 22 | const B* __restrict b_pos = b.data(); | 75 | 22 | UInt8* __restrict c_pos = c.data(); | 76 | 22 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 65 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 22 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 85 | PaddedPODArray<UInt8>& c) { | 72 | 85 | size_t size = a.size(); | 73 | 85 | const A* __restrict a_pos = a.data(); | 74 | 85 | const B* __restrict b_pos = b.data(); | 75 | 85 | UInt8* __restrict c_pos = c.data(); | 76 | 85 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 344 | while (a_pos < a_end) { | 79 | 259 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 259 | ++a_pos; | 81 | 259 | ++b_pos; | 82 | 259 | ++c_pos; | 83 | 259 | } | 84 | 85 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 2.00k | PaddedPODArray<UInt8>& c) { | 72 | 2.00k | size_t size = a.size(); | 73 | 2.00k | const A* __restrict a_pos = a.data(); | 74 | 2.00k | const B* __restrict b_pos = b.data(); | 75 | 2.00k | UInt8* __restrict c_pos = c.data(); | 76 | 2.00k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.80M | while (a_pos < a_end) { | 79 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.80M | ++a_pos; | 81 | 1.80M | ++b_pos; | 82 | 1.80M | ++c_pos; | 83 | 1.80M | } | 84 | 2.00k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 275 | PaddedPODArray<UInt8>& c) { | 72 | 275 | size_t size = a.size(); | 73 | 275 | const A* __restrict a_pos = a.data(); | 74 | 275 | const B* __restrict b_pos = b.data(); | 75 | 275 | UInt8* __restrict c_pos = c.data(); | 76 | 275 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 898 | while (a_pos < a_end) { | 79 | 623 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 623 | ++a_pos; | 81 | 623 | ++b_pos; | 82 | 623 | ++c_pos; | 83 | 623 | } | 84 | 275 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 152 | PaddedPODArray<UInt8>& c) { | 72 | 152 | size_t size = a.size(); | 73 | 152 | const A* __restrict a_pos = a.data(); | 74 | 152 | const B* __restrict b_pos = b.data(); | 75 | 152 | UInt8* __restrict c_pos = c.data(); | 76 | 152 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 478 | while (a_pos < a_end) { | 79 | 326 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 326 | ++a_pos; | 81 | 326 | ++b_pos; | 82 | 326 | ++c_pos; | 83 | 326 | } | 84 | 152 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 119 | PaddedPODArray<UInt8>& c) { | 72 | 119 | size_t size = a.size(); | 73 | 119 | const A* __restrict a_pos = a.data(); | 74 | 119 | const B* __restrict b_pos = b.data(); | 75 | 119 | UInt8* __restrict c_pos = c.data(); | 76 | 119 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 413 | while (a_pos < a_end) { | 79 | 294 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 294 | ++a_pos; | 81 | 294 | ++b_pos; | 82 | 294 | ++c_pos; | 83 | 294 | } | 84 | 119 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 156 | PaddedPODArray<UInt8>& c) { | 72 | 156 | size_t size = a.size(); | 73 | 156 | const A* __restrict a_pos = a.data(); | 74 | 156 | const B* __restrict b_pos = b.data(); | 75 | 156 | UInt8* __restrict c_pos = c.data(); | 76 | 156 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.00k | while (a_pos < a_end) { | 79 | 848 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 848 | ++a_pos; | 81 | 848 | ++b_pos; | 82 | 848 | ++c_pos; | 83 | 848 | } | 84 | 156 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 209 | PaddedPODArray<UInt8>& c) { | 72 | 209 | size_t size = a.size(); | 73 | 209 | const A* __restrict a_pos = a.data(); | 74 | 209 | const B* __restrict b_pos = b.data(); | 75 | 209 | UInt8* __restrict c_pos = c.data(); | 76 | 209 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.40k | while (a_pos < a_end) { | 79 | 5.19k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.19k | ++a_pos; | 81 | 5.19k | ++b_pos; | 82 | 5.19k | ++c_pos; | 83 | 5.19k | } | 84 | 209 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 157 | PaddedPODArray<UInt8>& c) { | 72 | 157 | size_t size = a.size(); | 73 | 157 | const A* __restrict a_pos = a.data(); | 74 | 157 | const B* __restrict b_pos = b.data(); | 75 | 157 | UInt8* __restrict c_pos = c.data(); | 76 | 157 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 488 | while (a_pos < a_end) { | 79 | 331 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 331 | ++a_pos; | 81 | 331 | ++b_pos; | 82 | 331 | ++c_pos; | 83 | 331 | } | 84 | 157 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 157 | PaddedPODArray<UInt8>& c) { | 72 | 157 | size_t size = a.size(); | 73 | 157 | const A* __restrict a_pos = a.data(); | 74 | 157 | const B* __restrict b_pos = b.data(); | 75 | 157 | UInt8* __restrict c_pos = c.data(); | 76 | 157 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 507 | while (a_pos < a_end) { | 79 | 350 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 350 | ++a_pos; | 81 | 350 | ++b_pos; | 82 | 350 | ++c_pos; | 83 | 350 | } | 84 | 157 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 150 | PaddedPODArray<UInt8>& c) { | 72 | 150 | size_t size = a.size(); | 73 | 150 | const A* __restrict a_pos = a.data(); | 74 | 150 | const B* __restrict b_pos = b.data(); | 75 | 150 | UInt8* __restrict c_pos = c.data(); | 76 | 150 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 500 | while (a_pos < a_end) { | 79 | 350 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 350 | ++a_pos; | 81 | 350 | ++b_pos; | 82 | 350 | ++c_pos; | 83 | 350 | } | 84 | 150 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 21 | PaddedPODArray<UInt8>& c) { | 72 | 21 | size_t size = a.size(); | 73 | 21 | const A* __restrict a_pos = a.data(); | 74 | 21 | const B* __restrict b_pos = b.data(); | 75 | 21 | UInt8* __restrict c_pos = c.data(); | 76 | 21 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 42 | while (a_pos < a_end) { | 79 | 21 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 21 | ++a_pos; | 81 | 21 | ++b_pos; | 82 | 21 | ++c_pos; | 83 | 21 | } | 84 | 21 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 427 | PaddedPODArray<UInt8>& c) { | 72 | 427 | size_t size = a.size(); | 73 | 427 | const A* __restrict a_pos = a.data(); | 74 | 427 | const B* __restrict b_pos = b.data(); | 75 | 427 | UInt8* __restrict c_pos = c.data(); | 76 | 427 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.58k | while (a_pos < a_end) { | 79 | 6.15k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.15k | ++a_pos; | 81 | 6.15k | ++b_pos; | 82 | 6.15k | ++c_pos; | 83 | 6.15k | } | 84 | 427 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 45 | PaddedPODArray<UInt8>& c) { | 72 | 45 | size_t size = a.size(); | 73 | 45 | const A* __restrict a_pos = a.data(); | 74 | 45 | const B* __restrict b_pos = b.data(); | 75 | 45 | UInt8* __restrict c_pos = c.data(); | 76 | 45 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 90 | while (a_pos < a_end) { | 79 | 45 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 45 | ++a_pos; | 81 | 45 | ++b_pos; | 82 | 45 | ++c_pos; | 83 | 45 | } | 84 | 45 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 93 | while (a_pos < a_end) { | 79 | 53 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 53 | ++a_pos; | 81 | 53 | ++b_pos; | 82 | 53 | ++c_pos; | 83 | 53 | } | 84 | 40 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 57 | PaddedPODArray<UInt8>& c) { | 72 | 57 | size_t size = a.size(); | 73 | 57 | const A* __restrict a_pos = a.data(); | 74 | 57 | const B* __restrict b_pos = b.data(); | 75 | 57 | UInt8* __restrict c_pos = c.data(); | 76 | 57 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 121 | while (a_pos < a_end) { | 79 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 64 | ++a_pos; | 81 | 64 | ++b_pos; | 82 | 64 | ++c_pos; | 83 | 64 | } | 84 | 57 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 139 | while (a_pos < a_end) { | 79 | 79 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 79 | ++a_pos; | 81 | 79 | ++b_pos; | 82 | 79 | ++c_pos; | 83 | 79 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
85 | | |
86 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
87 | 168k | PaddedPODArray<UInt8>& c) { |
88 | 168k | size_t size = a.size(); |
89 | 168k | const A* __restrict a_pos = a.data(); |
90 | 168k | UInt8* __restrict c_pos = c.data(); |
91 | 168k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 94.8M | while (a_pos < a_end) { |
94 | 94.7M | *c_pos = Op::apply(*a_pos, b); |
95 | 94.7M | ++a_pos; |
96 | 94.7M | ++c_pos; |
97 | 94.7M | } |
98 | 168k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 797 | PaddedPODArray<UInt8>& c) { | 88 | 797 | size_t size = a.size(); | 89 | 797 | const A* __restrict a_pos = a.data(); | 90 | 797 | UInt8* __restrict c_pos = c.data(); | 91 | 797 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.62k | while (a_pos < a_end) { | 94 | 1.83k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.83k | ++a_pos; | 96 | 1.83k | ++c_pos; | 97 | 1.83k | } | 98 | 797 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 483 | PaddedPODArray<UInt8>& c) { | 88 | 483 | size_t size = a.size(); | 89 | 483 | const A* __restrict a_pos = a.data(); | 90 | 483 | UInt8* __restrict c_pos = c.data(); | 91 | 483 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 202k | while (a_pos < a_end) { | 94 | 202k | *c_pos = Op::apply(*a_pos, b); | 95 | 202k | ++a_pos; | 96 | 202k | ++c_pos; | 97 | 202k | } | 98 | 483 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 252 | PaddedPODArray<UInt8>& c) { | 88 | 252 | size_t size = a.size(); | 89 | 252 | const A* __restrict a_pos = a.data(); | 90 | 252 | UInt8* __restrict c_pos = c.data(); | 91 | 252 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 252 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 5.79k | PaddedPODArray<UInt8>& c) { | 88 | 5.79k | size_t size = a.size(); | 89 | 5.79k | const A* __restrict a_pos = a.data(); | 90 | 5.79k | UInt8* __restrict c_pos = c.data(); | 91 | 5.79k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.06M | while (a_pos < a_end) { | 94 | 9.05M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.05M | ++a_pos; | 96 | 9.05M | ++c_pos; | 97 | 9.05M | } | 98 | 5.79k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 959 | PaddedPODArray<UInt8>& c) { | 88 | 959 | size_t size = a.size(); | 89 | 959 | const A* __restrict a_pos = a.data(); | 90 | 959 | UInt8* __restrict c_pos = c.data(); | 91 | 959 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 131k | while (a_pos < a_end) { | 94 | 130k | *c_pos = Op::apply(*a_pos, b); | 95 | 130k | ++a_pos; | 96 | 130k | ++c_pos; | 97 | 130k | } | 98 | 959 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 60.8k | PaddedPODArray<UInt8>& c) { | 88 | 60.8k | size_t size = a.size(); | 89 | 60.8k | const A* __restrict a_pos = a.data(); | 90 | 60.8k | UInt8* __restrict c_pos = c.data(); | 91 | 60.8k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.11M | while (a_pos < a_end) { | 94 | 1.05M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.05M | ++a_pos; | 96 | 1.05M | ++c_pos; | 97 | 1.05M | } | 98 | 60.8k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 15.3k | PaddedPODArray<UInt8>& c) { | 88 | 15.3k | size_t size = a.size(); | 89 | 15.3k | const A* __restrict a_pos = a.data(); | 90 | 15.3k | UInt8* __restrict c_pos = c.data(); | 91 | 15.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.37M | while (a_pos < a_end) { | 94 | 2.36M | *c_pos = Op::apply(*a_pos, b); | 95 | 2.36M | ++a_pos; | 96 | 2.36M | ++c_pos; | 97 | 2.36M | } | 98 | 15.3k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 59 | PaddedPODArray<UInt8>& c) { | 88 | 59 | size_t size = a.size(); | 89 | 59 | const A* __restrict a_pos = a.data(); | 90 | 59 | UInt8* __restrict c_pos = c.data(); | 91 | 59 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 59 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 14 | PaddedPODArray<UInt8>& c) { | 88 | 14 | size_t size = a.size(); | 89 | 14 | const A* __restrict a_pos = a.data(); | 90 | 14 | UInt8* __restrict c_pos = c.data(); | 91 | 14 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 128 | while (a_pos < a_end) { | 94 | 114 | *c_pos = Op::apply(*a_pos, b); | 95 | 114 | ++a_pos; | 96 | 114 | ++c_pos; | 97 | 114 | } | 98 | 14 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13 | while (a_pos < a_end) { | 94 | 11 | *c_pos = Op::apply(*a_pos, b); | 95 | 11 | ++a_pos; | 96 | 11 | ++c_pos; | 97 | 11 | } | 98 | 2 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 814 | PaddedPODArray<UInt8>& c) { | 88 | 814 | size_t size = a.size(); | 89 | 814 | const A* __restrict a_pos = a.data(); | 90 | 814 | UInt8* __restrict c_pos = c.data(); | 91 | 814 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 719k | while (a_pos < a_end) { | 94 | 718k | *c_pos = Op::apply(*a_pos, b); | 95 | 718k | ++a_pos; | 96 | 718k | ++c_pos; | 97 | 718k | } | 98 | 814 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 33 | PaddedPODArray<UInt8>& c) { | 88 | 33 | size_t size = a.size(); | 89 | 33 | const A* __restrict a_pos = a.data(); | 90 | 33 | UInt8* __restrict c_pos = c.data(); | 91 | 33 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 86 | while (a_pos < a_end) { | 94 | 53 | *c_pos = Op::apply(*a_pos, b); | 95 | 53 | ++a_pos; | 96 | 53 | ++c_pos; | 97 | 53 | } | 98 | 33 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4 | while (a_pos < a_end) { | 94 | 2 | *c_pos = Op::apply(*a_pos, b); | 95 | 2 | ++a_pos; | 96 | 2 | ++c_pos; | 97 | 2 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 36 | PaddedPODArray<UInt8>& c) { | 88 | 36 | size_t size = a.size(); | 89 | 36 | const A* __restrict a_pos = a.data(); | 90 | 36 | UInt8* __restrict c_pos = c.data(); | 91 | 36 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 660 | while (a_pos < a_end) { | 94 | 624 | *c_pos = Op::apply(*a_pos, b); | 95 | 624 | ++a_pos; | 96 | 624 | ++c_pos; | 97 | 624 | } | 98 | 36 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13 | PaddedPODArray<UInt8>& c) { | 88 | 13 | size_t size = a.size(); | 89 | 13 | const A* __restrict a_pos = a.data(); | 90 | 13 | UInt8* __restrict c_pos = c.data(); | 91 | 13 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 401 | while (a_pos < a_end) { | 94 | 388 | *c_pos = Op::apply(*a_pos, b); | 95 | 388 | ++a_pos; | 96 | 388 | ++c_pos; | 97 | 388 | } | 98 | 13 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 911 | PaddedPODArray<UInt8>& c) { | 88 | 911 | size_t size = a.size(); | 89 | 911 | const A* __restrict a_pos = a.data(); | 90 | 911 | UInt8* __restrict c_pos = c.data(); | 91 | 911 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 324k | while (a_pos < a_end) { | 94 | 323k | *c_pos = Op::apply(*a_pos, b); | 95 | 323k | ++a_pos; | 96 | 323k | ++c_pos; | 97 | 323k | } | 98 | 911 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.74k | PaddedPODArray<UInt8>& c) { | 88 | 1.74k | size_t size = a.size(); | 89 | 1.74k | const A* __restrict a_pos = a.data(); | 90 | 1.74k | UInt8* __restrict c_pos = c.data(); | 91 | 1.74k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 138k | while (a_pos < a_end) { | 94 | 136k | *c_pos = Op::apply(*a_pos, b); | 95 | 136k | ++a_pos; | 96 | 136k | ++c_pos; | 97 | 136k | } | 98 | 1.74k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28 | PaddedPODArray<UInt8>& c) { | 88 | 28 | size_t size = a.size(); | 89 | 28 | const A* __restrict a_pos = a.data(); | 90 | 28 | UInt8* __restrict c_pos = c.data(); | 91 | 28 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 70 | while (a_pos < a_end) { | 94 | 42 | *c_pos = Op::apply(*a_pos, b); | 95 | 42 | ++a_pos; | 96 | 42 | ++c_pos; | 97 | 42 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 40 | PaddedPODArray<UInt8>& c) { | 88 | 40 | size_t size = a.size(); | 89 | 40 | const A* __restrict a_pos = a.data(); | 90 | 40 | UInt8* __restrict c_pos = c.data(); | 91 | 40 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 282 | while (a_pos < a_end) { | 94 | 242 | *c_pos = Op::apply(*a_pos, b); | 95 | 242 | ++a_pos; | 96 | 242 | ++c_pos; | 97 | 242 | } | 98 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 102 | PaddedPODArray<UInt8>& c) { | 88 | 102 | size_t size = a.size(); | 89 | 102 | const A* __restrict a_pos = a.data(); | 90 | 102 | UInt8* __restrict c_pos = c.data(); | 91 | 102 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.33k | while (a_pos < a_end) { | 94 | 2.23k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.23k | ++a_pos; | 96 | 2.23k | ++c_pos; | 97 | 2.23k | } | 98 | 102 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 435 | PaddedPODArray<UInt8>& c) { | 88 | 435 | size_t size = a.size(); | 89 | 435 | const A* __restrict a_pos = a.data(); | 90 | 435 | UInt8* __restrict c_pos = c.data(); | 91 | 435 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.34M | while (a_pos < a_end) { | 94 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.34M | ++a_pos; | 96 | 1.34M | ++c_pos; | 97 | 1.34M | } | 98 | 435 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 62 | PaddedPODArray<UInt8>& c) { | 88 | 62 | size_t size = a.size(); | 89 | 62 | const A* __restrict a_pos = a.data(); | 90 | 62 | UInt8* __restrict c_pos = c.data(); | 91 | 62 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 146 | while (a_pos < a_end) { | 94 | 84 | *c_pos = Op::apply(*a_pos, b); | 95 | 84 | ++a_pos; | 96 | 84 | ++c_pos; | 97 | 84 | } | 98 | 62 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 229 | PaddedPODArray<UInt8>& c) { | 88 | 229 | size_t size = a.size(); | 89 | 229 | const A* __restrict a_pos = a.data(); | 90 | 229 | UInt8* __restrict c_pos = c.data(); | 91 | 229 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22.9k | while (a_pos < a_end) { | 94 | 22.7k | *c_pos = Op::apply(*a_pos, b); | 95 | 22.7k | ++a_pos; | 96 | 22.7k | ++c_pos; | 97 | 22.7k | } | 98 | 229 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 87 | 1 | PaddedPODArray<UInt8>& c) { | 88 | 1 | size_t size = a.size(); | 89 | 1 | const A* __restrict a_pos = a.data(); | 90 | 1 | UInt8* __restrict c_pos = c.data(); | 91 | 1 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 7 | *c_pos = Op::apply(*a_pos, b); | 95 | 7 | ++a_pos; | 96 | 7 | ++c_pos; | 97 | 7 | } | 98 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.00k | PaddedPODArray<UInt8>& c) { | 88 | 1.00k | size_t size = a.size(); | 89 | 1.00k | const A* __restrict a_pos = a.data(); | 90 | 1.00k | UInt8* __restrict c_pos = c.data(); | 91 | 1.00k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.32k | while (a_pos < a_end) { | 94 | 5.31k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.31k | ++a_pos; | 96 | 5.31k | ++c_pos; | 97 | 5.31k | } | 98 | 1.00k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.94k | PaddedPODArray<UInt8>& c) { | 88 | 1.94k | size_t size = a.size(); | 89 | 1.94k | const A* __restrict a_pos = a.data(); | 90 | 1.94k | UInt8* __restrict c_pos = c.data(); | 91 | 1.94k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.50k | while (a_pos < a_end) { | 94 | 4.56k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.56k | ++a_pos; | 96 | 4.56k | ++c_pos; | 97 | 4.56k | } | 98 | 1.94k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.45k | PaddedPODArray<UInt8>& c) { | 88 | 1.45k | size_t size = a.size(); | 89 | 1.45k | const A* __restrict a_pos = a.data(); | 90 | 1.45k | UInt8* __restrict c_pos = c.data(); | 91 | 1.45k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.34k | while (a_pos < a_end) { | 94 | 4.89k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.89k | ++a_pos; | 96 | 4.89k | ++c_pos; | 97 | 4.89k | } | 98 | 1.45k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 362 | PaddedPODArray<UInt8>& c) { | 88 | 362 | size_t size = a.size(); | 89 | 362 | const A* __restrict a_pos = a.data(); | 90 | 362 | UInt8* __restrict c_pos = c.data(); | 91 | 362 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.50k | while (a_pos < a_end) { | 94 | 7.14k | *c_pos = Op::apply(*a_pos, b); | 95 | 7.14k | ++a_pos; | 96 | 7.14k | ++c_pos; | 97 | 7.14k | } | 98 | 362 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 14.9k | PaddedPODArray<UInt8>& c) { | 88 | 14.9k | size_t size = a.size(); | 89 | 14.9k | const A* __restrict a_pos = a.data(); | 90 | 14.9k | UInt8* __restrict c_pos = c.data(); | 91 | 14.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.96M | while (a_pos < a_end) { | 94 | 5.95M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.95M | ++a_pos; | 96 | 5.95M | ++c_pos; | 97 | 5.95M | } | 98 | 14.9k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 5.65k | PaddedPODArray<UInt8>& c) { | 88 | 5.65k | size_t size = a.size(); | 89 | 5.65k | const A* __restrict a_pos = a.data(); | 90 | 5.65k | UInt8* __restrict c_pos = c.data(); | 91 | 5.65k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.16M | while (a_pos < a_end) { | 94 | 3.15M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.15M | ++a_pos; | 96 | 3.15M | ++c_pos; | 97 | 3.15M | } | 98 | 5.65k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 7.47k | PaddedPODArray<UInt8>& c) { | 88 | 7.47k | size_t size = a.size(); | 89 | 7.47k | const A* __restrict a_pos = a.data(); | 90 | 7.47k | UInt8* __restrict c_pos = c.data(); | 91 | 7.47k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 136k | while (a_pos < a_end) { | 94 | 128k | *c_pos = Op::apply(*a_pos, b); | 95 | 128k | ++a_pos; | 96 | 128k | ++c_pos; | 97 | 128k | } | 98 | 7.47k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.49k | PaddedPODArray<UInt8>& c) { | 88 | 1.49k | size_t size = a.size(); | 89 | 1.49k | const A* __restrict a_pos = a.data(); | 90 | 1.49k | UInt8* __restrict c_pos = c.data(); | 91 | 1.49k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12.9k | while (a_pos < a_end) { | 94 | 11.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 11.4k | ++a_pos; | 96 | 11.4k | ++c_pos; | 97 | 11.4k | } | 98 | 1.49k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 281 | PaddedPODArray<UInt8>& c) { | 88 | 281 | size_t size = a.size(); | 89 | 281 | const A* __restrict a_pos = a.data(); | 90 | 281 | UInt8* __restrict c_pos = c.data(); | 91 | 281 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.91k | while (a_pos < a_end) { | 94 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.63k | ++a_pos; | 96 | 1.63k | ++c_pos; | 97 | 1.63k | } | 98 | 281 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 92 | PaddedPODArray<UInt8>& c) { | 88 | 92 | size_t size = a.size(); | 89 | 92 | const A* __restrict a_pos = a.data(); | 90 | 92 | UInt8* __restrict c_pos = c.data(); | 91 | 92 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 86.2k | while (a_pos < a_end) { | 94 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 86.1k | ++a_pos; | 96 | 86.1k | ++c_pos; | 97 | 86.1k | } | 98 | 92 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 208 | PaddedPODArray<UInt8>& c) { | 88 | 208 | size_t size = a.size(); | 89 | 208 | const A* __restrict a_pos = a.data(); | 90 | 208 | UInt8* __restrict c_pos = c.data(); | 91 | 208 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.19k | while (a_pos < a_end) { | 94 | 2.98k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.98k | ++a_pos; | 96 | 2.98k | ++c_pos; | 97 | 2.98k | } | 98 | 208 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 16 | PaddedPODArray<UInt8>& c) { | 88 | 16 | size_t size = a.size(); | 89 | 16 | const A* __restrict a_pos = a.data(); | 90 | 16 | UInt8* __restrict c_pos = c.data(); | 91 | 16 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 38 | while (a_pos < a_end) { | 94 | 22 | *c_pos = Op::apply(*a_pos, b); | 95 | 22 | ++a_pos; | 96 | 22 | ++c_pos; | 97 | 22 | } | 98 | 16 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.43k | PaddedPODArray<UInt8>& c) { | 88 | 1.43k | size_t size = a.size(); | 89 | 1.43k | const A* __restrict a_pos = a.data(); | 90 | 1.43k | UInt8* __restrict c_pos = c.data(); | 91 | 1.43k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 176k | while (a_pos < a_end) { | 94 | 175k | *c_pos = Op::apply(*a_pos, b); | 95 | 175k | ++a_pos; | 96 | 175k | ++c_pos; | 97 | 175k | } | 98 | 1.43k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 213 | PaddedPODArray<UInt8>& c) { | 88 | 213 | size_t size = a.size(); | 89 | 213 | const A* __restrict a_pos = a.data(); | 90 | 213 | UInt8* __restrict c_pos = c.data(); | 91 | 213 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 299k | while (a_pos < a_end) { | 94 | 299k | *c_pos = Op::apply(*a_pos, b); | 95 | 299k | ++a_pos; | 96 | 299k | ++c_pos; | 97 | 299k | } | 98 | 213 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 57 | PaddedPODArray<UInt8>& c) { | 88 | 57 | size_t size = a.size(); | 89 | 57 | const A* __restrict a_pos = a.data(); | 90 | 57 | UInt8* __restrict c_pos = c.data(); | 91 | 57 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 96.9k | while (a_pos < a_end) { | 94 | 96.8k | *c_pos = Op::apply(*a_pos, b); | 95 | 96.8k | ++a_pos; | 96 | 96.8k | ++c_pos; | 97 | 96.8k | } | 98 | 57 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 72 | PaddedPODArray<UInt8>& c) { | 88 | 72 | size_t size = a.size(); | 89 | 72 | const A* __restrict a_pos = a.data(); | 90 | 72 | UInt8* __restrict c_pos = c.data(); | 91 | 72 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 107k | while (a_pos < a_end) { | 94 | 107k | *c_pos = Op::apply(*a_pos, b); | 95 | 107k | ++a_pos; | 96 | 107k | ++c_pos; | 97 | 107k | } | 98 | 72 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 1.36k | PaddedPODArray<UInt8>& c) { | 88 | 1.36k | size_t size = a.size(); | 89 | 1.36k | const A* __restrict a_pos = a.data(); | 90 | 1.36k | UInt8* __restrict c_pos = c.data(); | 91 | 1.36k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.08M | while (a_pos < a_end) { | 94 | 3.07M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.07M | ++a_pos; | 96 | 3.07M | ++c_pos; | 97 | 3.07M | } | 98 | 1.36k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 14.2k | PaddedPODArray<UInt8>& c) { | 88 | 14.2k | size_t size = a.size(); | 89 | 14.2k | const A* __restrict a_pos = a.data(); | 90 | 14.2k | UInt8* __restrict c_pos = c.data(); | 91 | 14.2k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 38.0M | while (a_pos < a_end) { | 94 | 38.0M | *c_pos = Op::apply(*a_pos, b); | 95 | 38.0M | ++a_pos; | 96 | 38.0M | ++c_pos; | 97 | 38.0M | } | 98 | 14.2k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 418 | PaddedPODArray<UInt8>& c) { | 88 | 418 | size_t size = a.size(); | 89 | 418 | const A* __restrict a_pos = a.data(); | 90 | 418 | UInt8* __restrict c_pos = c.data(); | 91 | 418 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.6k | while (a_pos < a_end) { | 94 | 15.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.2k | ++a_pos; | 96 | 15.2k | ++c_pos; | 97 | 15.2k | } | 98 | 418 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 214 | PaddedPODArray<UInt8>& c) { | 88 | 214 | size_t size = a.size(); | 89 | 214 | const A* __restrict a_pos = a.data(); | 90 | 214 | UInt8* __restrict c_pos = c.data(); | 91 | 214 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8.10k | while (a_pos < a_end) { | 94 | 7.89k | *c_pos = Op::apply(*a_pos, b); | 95 | 7.89k | ++a_pos; | 96 | 7.89k | ++c_pos; | 97 | 7.89k | } | 98 | 214 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 72 | PaddedPODArray<UInt8>& c) { | 88 | 72 | size_t size = a.size(); | 89 | 72 | const A* __restrict a_pos = a.data(); | 90 | 72 | UInt8* __restrict c_pos = c.data(); | 91 | 72 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130k | while (a_pos < a_end) { | 94 | 130k | *c_pos = Op::apply(*a_pos, b); | 95 | 130k | ++a_pos; | 96 | 130k | ++c_pos; | 97 | 130k | } | 98 | 72 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 84 | PaddedPODArray<UInt8>& c) { | 88 | 84 | size_t size = a.size(); | 89 | 84 | const A* __restrict a_pos = a.data(); | 90 | 84 | UInt8* __restrict c_pos = c.data(); | 91 | 84 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130k | while (a_pos < a_end) { | 94 | 130k | *c_pos = Op::apply(*a_pos, b); | 95 | 130k | ++a_pos; | 96 | 130k | ++c_pos; | 97 | 130k | } | 98 | 84 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 95 | PaddedPODArray<UInt8>& c) { | 88 | 95 | size_t size = a.size(); | 89 | 95 | const A* __restrict a_pos = a.data(); | 90 | 95 | UInt8* __restrict c_pos = c.data(); | 91 | 95 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 104k | while (a_pos < a_end) { | 94 | 104k | *c_pos = Op::apply(*a_pos, b); | 95 | 104k | ++a_pos; | 96 | 104k | ++c_pos; | 97 | 104k | } | 98 | 95 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 118 | PaddedPODArray<UInt8>& c) { | 88 | 118 | size_t size = a.size(); | 89 | 118 | const A* __restrict a_pos = a.data(); | 90 | 118 | UInt8* __restrict c_pos = c.data(); | 91 | 118 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 120k | while (a_pos < a_end) { | 94 | 120k | *c_pos = Op::apply(*a_pos, b); | 95 | 120k | ++a_pos; | 96 | 120k | ++c_pos; | 97 | 120k | } | 98 | 118 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 9.39k | PaddedPODArray<UInt8>& c) { | 88 | 9.39k | size_t size = a.size(); | 89 | 9.39k | const A* __restrict a_pos = a.data(); | 90 | 9.39k | UInt8* __restrict c_pos = c.data(); | 91 | 9.39k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 11.2M | while (a_pos < a_end) { | 94 | 11.2M | *c_pos = Op::apply(*a_pos, b); | 95 | 11.2M | ++a_pos; | 96 | 11.2M | ++c_pos; | 97 | 11.2M | } | 98 | 9.39k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 15.6k | PaddedPODArray<UInt8>& c) { | 88 | 15.6k | size_t size = a.size(); | 89 | 15.6k | const A* __restrict a_pos = a.data(); | 90 | 15.6k | UInt8* __restrict c_pos = c.data(); | 91 | 15.6k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.3M | while (a_pos < a_end) { | 94 | 15.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 15.3M | ++a_pos; | 96 | 15.3M | ++c_pos; | 97 | 15.3M | } | 98 | 15.6k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 340 | PaddedPODArray<UInt8>& c) { | 88 | 340 | size_t size = a.size(); | 89 | 340 | const A* __restrict a_pos = a.data(); | 90 | 340 | UInt8* __restrict c_pos = c.data(); | 91 | 340 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 19.3k | while (a_pos < a_end) { | 94 | 18.9k | *c_pos = Op::apply(*a_pos, b); | 95 | 18.9k | ++a_pos; | 96 | 18.9k | ++c_pos; | 97 | 18.9k | } | 98 | 340 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 704 | PaddedPODArray<UInt8>& c) { | 88 | 704 | size_t size = a.size(); | 89 | 704 | const A* __restrict a_pos = a.data(); | 90 | 704 | UInt8* __restrict c_pos = c.data(); | 91 | 704 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 25.9k | while (a_pos < a_end) { | 94 | 25.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 25.2k | ++a_pos; | 96 | 25.2k | ++c_pos; | 97 | 25.2k | } | 98 | 704 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 31 | PaddedPODArray<UInt8>& c) { | 88 | 31 | size_t size = a.size(); | 89 | 31 | const A* __restrict a_pos = a.data(); | 90 | 31 | UInt8* __restrict c_pos = c.data(); | 91 | 31 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 103k | while (a_pos < a_end) { | 94 | 102k | *c_pos = Op::apply(*a_pos, b); | 95 | 102k | ++a_pos; | 96 | 102k | ++c_pos; | 97 | 102k | } | 98 | 31 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 45 | PaddedPODArray<UInt8>& c) { | 88 | 45 | size_t size = a.size(); | 89 | 45 | const A* __restrict a_pos = a.data(); | 90 | 45 | UInt8* __restrict c_pos = c.data(); | 91 | 45 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 120k | while (a_pos < a_end) { | 94 | 120k | *c_pos = Op::apply(*a_pos, b); | 95 | 120k | ++a_pos; | 96 | 120k | ++c_pos; | 97 | 120k | } | 98 | 45 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 55 | PaddedPODArray<UInt8>& c) { | 88 | 55 | size_t size = a.size(); | 89 | 55 | const A* __restrict a_pos = a.data(); | 90 | 55 | UInt8* __restrict c_pos = c.data(); | 91 | 55 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 112 | while (a_pos < a_end) { | 94 | 57 | *c_pos = Op::apply(*a_pos, b); | 95 | 57 | ++a_pos; | 96 | 57 | ++c_pos; | 97 | 57 | } | 98 | 55 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 51 | PaddedPODArray<UInt8>& c) { | 88 | 51 | size_t size = a.size(); | 89 | 51 | const A* __restrict a_pos = a.data(); | 90 | 51 | UInt8* __restrict c_pos = c.data(); | 91 | 51 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 102 | while (a_pos < a_end) { | 94 | 51 | *c_pos = Op::apply(*a_pos, b); | 95 | 51 | ++a_pos; | 96 | 51 | ++c_pos; | 97 | 51 | } | 98 | 51 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 157 | PaddedPODArray<UInt8>& c) { | 88 | 157 | size_t size = a.size(); | 89 | 157 | const A* __restrict a_pos = a.data(); | 90 | 157 | UInt8* __restrict c_pos = c.data(); | 91 | 157 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 356k | while (a_pos < a_end) { | 94 | 355k | *c_pos = Op::apply(*a_pos, b); | 95 | 355k | ++a_pos; | 96 | 355k | ++c_pos; | 97 | 355k | } | 98 | 157 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 104 | PaddedPODArray<UInt8>& c) { | 88 | 104 | size_t size = a.size(); | 89 | 104 | const A* __restrict a_pos = a.data(); | 90 | 104 | UInt8* __restrict c_pos = c.data(); | 91 | 104 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 275k | while (a_pos < a_end) { | 94 | 275k | *c_pos = Op::apply(*a_pos, b); | 95 | 275k | ++a_pos; | 96 | 275k | ++c_pos; | 97 | 275k | } | 98 | 104 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 34.9k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 34.9k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 34.9k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 276 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 276 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 276 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 27.3k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 27.3k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 27.3k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 589 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 589 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 589 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 12 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 764 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 764 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 764 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 224 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 224 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 224 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.69k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.69k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.69k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 522 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 522 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 522 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 46 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 46 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 46 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 193 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 193 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 193 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 79 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 80 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 80 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 80 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 539 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 539 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 539 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
103 | | }; |
104 | | |
105 | | /// Generic version, implemented for columns of same type. |
106 | | template <typename Op> |
107 | | struct GenericComparisonImpl { |
108 | 9 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 20 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
110 | 11 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
111 | 11 | } |
112 | 9 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 10 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 6 | } | 112 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 3 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 6 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 3 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 3 | } | 112 | 3 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
113 | | |
114 | 153 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 153 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 489k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 488k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 488k | } |
119 | 153 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 13 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 13 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 31 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 18 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 18 | } | 119 | 13 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 53 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 53 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 236k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 236k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 236k | } | 119 | 53 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 63 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 63 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 252k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 252k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 252k | } | 119 | 63 | } |
|
120 | | |
121 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
122 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
123 | 0 | } Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
124 | | }; |
125 | | |
126 | | template <typename Op> |
127 | | struct StringComparisonImpl { |
128 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
129 | | const ColumnString::Offsets& a_offsets, |
130 | | const ColumnString::Chars& b_data, |
131 | | const ColumnString::Offsets& b_offsets, |
132 | 591 | PaddedPODArray<UInt8>& c) { |
133 | 591 | size_t size = a_offsets.size(); |
134 | 591 | ColumnString::Offset prev_a_offset = 0; |
135 | 591 | ColumnString::Offset prev_b_offset = 0; |
136 | 591 | const auto* a_pos = a_data.data(); |
137 | 591 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.90k | for (size_t i = 0; i < size; ++i) { |
140 | 1.31k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.31k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.31k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.31k | 0); |
144 | | |
145 | 1.31k | prev_a_offset = a_offsets[i]; |
146 | 1.31k | prev_b_offset = b_offsets[i]; |
147 | 1.31k | } |
148 | 591 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 79 | PaddedPODArray<UInt8>& c) { | 133 | 79 | size_t size = a_offsets.size(); | 134 | 79 | ColumnString::Offset prev_a_offset = 0; | 135 | 79 | ColumnString::Offset prev_b_offset = 0; | 136 | 79 | const auto* a_pos = a_data.data(); | 137 | 79 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 316 | for (size_t i = 0; i < size; ++i) { | 140 | 237 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 237 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 237 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 237 | 0); | 144 | | | 145 | 237 | prev_a_offset = a_offsets[i]; | 146 | 237 | prev_b_offset = b_offsets[i]; | 147 | 237 | } | 148 | 79 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 413 | PaddedPODArray<UInt8>& c) { | 133 | 413 | size_t size = a_offsets.size(); | 134 | 413 | ColumnString::Offset prev_a_offset = 0; | 135 | 413 | ColumnString::Offset prev_b_offset = 0; | 136 | 413 | const auto* a_pos = a_data.data(); | 137 | 413 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.34k | for (size_t i = 0; i < size; ++i) { | 140 | 935 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 935 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 935 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 935 | 0); | 144 | | | 145 | 935 | prev_a_offset = a_offsets[i]; | 146 | 935 | prev_b_offset = b_offsets[i]; | 147 | 935 | } | 148 | 413 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 97 | PaddedPODArray<UInt8>& c) { | 133 | 97 | size_t size = a_offsets.size(); | 134 | 97 | ColumnString::Offset prev_a_offset = 0; | 135 | 97 | ColumnString::Offset prev_b_offset = 0; | 136 | 97 | const auto* a_pos = a_data.data(); | 137 | 97 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 194 | for (size_t i = 0; i < size; ++i) { | 140 | 97 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 97 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 97 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 97 | 0); | 144 | | | 145 | 97 | prev_a_offset = a_offsets[i]; | 146 | 97 | prev_b_offset = b_offsets[i]; | 147 | 97 | } | 148 | 97 | } |
|
149 | | |
150 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
151 | | const ColumnString::Offsets& a_offsets, |
152 | | const ColumnString::Chars& b_data, |
153 | | ColumnString::Offset b_size, |
154 | 1.25k | PaddedPODArray<UInt8>& c) { |
155 | 1.25k | size_t size = a_offsets.size(); |
156 | 1.25k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.25k | const auto* a_pos = a_data.data(); |
158 | 1.25k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.50M | for (size_t i = 0; i < size; ++i) { |
161 | 1.50M | c[i] = Op::apply( |
162 | 1.50M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.50M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.50M | 0); |
165 | | |
166 | 1.50M | prev_a_offset = a_offsets[i]; |
167 | 1.50M | } |
168 | 1.25k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 194 | PaddedPODArray<UInt8>& c) { | 155 | 194 | size_t size = a_offsets.size(); | 156 | 194 | ColumnString::Offset prev_a_offset = 0; | 157 | 194 | const auto* a_pos = a_data.data(); | 158 | 194 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 325k | for (size_t i = 0; i < size; ++i) { | 161 | 325k | c[i] = Op::apply( | 162 | 325k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 325k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 325k | 0); | 165 | | | 166 | 325k | prev_a_offset = a_offsets[i]; | 167 | 325k | } | 168 | 194 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 181 | PaddedPODArray<UInt8>& c) { | 155 | 181 | size_t size = a_offsets.size(); | 156 | 181 | ColumnString::Offset prev_a_offset = 0; | 157 | 181 | const auto* a_pos = a_data.data(); | 158 | 181 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 72.3k | for (size_t i = 0; i < size; ++i) { | 161 | 72.1k | c[i] = Op::apply( | 162 | 72.1k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 72.1k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 72.1k | 0); | 165 | | | 166 | 72.1k | prev_a_offset = a_offsets[i]; | 167 | 72.1k | } | 168 | 181 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 404 | PaddedPODArray<UInt8>& c) { | 155 | 404 | size_t size = a_offsets.size(); | 156 | 404 | ColumnString::Offset prev_a_offset = 0; | 157 | 404 | const auto* a_pos = a_data.data(); | 158 | 404 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 578k | for (size_t i = 0; i < size; ++i) { | 161 | 577k | c[i] = Op::apply( | 162 | 577k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 577k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 577k | 0); | 165 | | | 166 | 577k | prev_a_offset = a_offsets[i]; | 167 | 577k | } | 168 | 404 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 480 | PaddedPODArray<UInt8>& c) { | 155 | 480 | size_t size = a_offsets.size(); | 156 | 480 | ColumnString::Offset prev_a_offset = 0; | 157 | 480 | const auto* a_pos = a_data.data(); | 158 | 480 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 532k | for (size_t i = 0; i < size; ++i) { | 161 | 531k | c[i] = Op::apply( | 162 | 531k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 531k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 531k | 0); | 165 | | | 166 | 531k | prev_a_offset = a_offsets[i]; | 167 | 531k | } | 168 | 480 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 1.15k | PaddedPODArray<UInt8>& c) { |
187 | 1.15k | size_t size = a_offsets.size(); |
188 | 1.15k | ColumnString::Offset prev_a_offset = 0; |
189 | 1.15k | ColumnString::Offset prev_b_offset = 0; |
190 | 1.15k | const auto* a_pos = a_data.data(); |
191 | 1.15k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 2.78k | for (size_t i = 0; i < size; ++i) { |
194 | 1.63k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.63k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.63k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.63k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.63k | prev_a_offset = a_offsets[i]; |
201 | 1.63k | prev_b_offset = b_offsets[i]; |
202 | 1.63k | } |
203 | 1.15k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1.12k | PaddedPODArray<UInt8>& c) { | 187 | 1.12k | size_t size = a_offsets.size(); | 188 | 1.12k | ColumnString::Offset prev_a_offset = 0; | 189 | 1.12k | ColumnString::Offset prev_b_offset = 0; | 190 | 1.12k | const auto* a_pos = a_data.data(); | 191 | 1.12k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 2.73k | for (size_t i = 0; i < size; ++i) { | 194 | 1.60k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.60k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.60k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.60k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.60k | prev_a_offset = a_offsets[i]; | 201 | 1.60k | prev_b_offset = b_offsets[i]; | 202 | 1.60k | } | 203 | 1.12k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 25 | PaddedPODArray<UInt8>& c) { | 187 | 25 | size_t size = a_offsets.size(); | 188 | 25 | ColumnString::Offset prev_a_offset = 0; | 189 | 25 | ColumnString::Offset prev_b_offset = 0; | 190 | 25 | const auto* a_pos = a_data.data(); | 191 | 25 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 53 | for (size_t i = 0; i < size; ++i) { | 194 | 28 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 28 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 28 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 28 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 28 | prev_a_offset = a_offsets[i]; | 201 | 28 | prev_b_offset = b_offsets[i]; | 202 | 28 | } | 203 | 25 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 17.6k | PaddedPODArray<UInt8>& c) { |
210 | 17.6k | size_t size = a_offsets.size(); |
211 | 17.6k | if (b_size == 0) { |
212 | 1 | auto* __restrict data = c.data(); |
213 | 1 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 1 | ColumnString::Offset prev_a_offset = 0; |
216 | 4 | for (size_t i = 0; i < size; ++i) { |
217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 3 | prev_a_offset = offsets[i]; |
219 | 3 | } |
220 | 17.6k | } else { |
221 | 17.6k | ColumnString::Offset prev_a_offset = 0; |
222 | 17.6k | const auto* a_pos = a_data.data(); |
223 | 17.6k | const auto* b_pos = b_data.data(); |
224 | 6.86M | for (size_t i = 0; i < size; ++i) { |
225 | 6.84M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 6.84M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 6.84M | b_pos, b_size); |
228 | 6.84M | prev_a_offset = a_offsets[i]; |
229 | 6.84M | } |
230 | 17.6k | } |
231 | 17.6k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 16.4k | PaddedPODArray<UInt8>& c) { | 210 | 16.4k | size_t size = a_offsets.size(); | 211 | 16.4k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 16.4k | } else { | 221 | 16.4k | ColumnString::Offset prev_a_offset = 0; | 222 | 16.4k | const auto* a_pos = a_data.data(); | 223 | 16.4k | const auto* b_pos = b_data.data(); | 224 | 4.89M | for (size_t i = 0; i < size; ++i) { | 225 | 4.88M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 4.88M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 4.88M | b_pos, b_size); | 228 | 4.88M | prev_a_offset = a_offsets[i]; | 229 | 4.88M | } | 230 | 16.4k | } | 231 | 16.4k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 1.25k | PaddedPODArray<UInt8>& c) { | 210 | 1.25k | size_t size = a_offsets.size(); | 211 | 1.25k | if (b_size == 0) { | 212 | 1 | auto* __restrict data = c.data(); | 213 | 1 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 1 | ColumnString::Offset prev_a_offset = 0; | 216 | 4 | for (size_t i = 0; i < size; ++i) { | 217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 3 | prev_a_offset = offsets[i]; | 219 | 3 | } | 220 | 1.25k | } else { | 221 | 1.25k | ColumnString::Offset prev_a_offset = 0; | 222 | 1.25k | const auto* a_pos = a_data.data(); | 223 | 1.25k | const auto* b_pos = b_data.data(); | 224 | 1.96M | for (size_t i = 0; i < size; ++i) { | 225 | 1.96M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 1.96M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 1.96M | b_pos, b_size); | 228 | 1.96M | prev_a_offset = a_offsets[i]; | 229 | 1.96M | } | 230 | 1.25k | } | 231 | 1.25k | } |
|
232 | | |
233 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
234 | | ColumnString::Offset a_size, |
235 | | const ColumnString::Chars& b_data, |
236 | | const ColumnString::Offsets& b_offsets, |
237 | 0 | PaddedPODArray<UInt8>& c) { |
238 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
240 | | }; |
241 | | |
242 | | template <PrimitiveType PT> |
243 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
244 | | |
245 | | template <PrimitiveType PT> |
246 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
247 | | |
248 | | struct NameEquals { |
249 | | static constexpr auto name = "eq"; |
250 | | }; |
251 | | struct NameNotEquals { |
252 | | static constexpr auto name = "ne"; |
253 | | }; |
254 | | struct NameLess { |
255 | | static constexpr auto name = "lt"; |
256 | | }; |
257 | | struct NameGreater { |
258 | | static constexpr auto name = "gt"; |
259 | | }; |
260 | | struct NameLessOrEquals { |
261 | | static constexpr auto name = "le"; |
262 | | }; |
263 | | struct NameGreaterOrEquals { |
264 | | static constexpr auto name = "ge"; |
265 | | }; |
266 | | |
267 | | namespace comparison_zonemap_detail { |
268 | | enum class Op { |
269 | | EQ, |
270 | | NE, |
271 | | LT, |
272 | | LE, |
273 | | GT, |
274 | | GE, |
275 | | }; |
276 | | |
277 | 4 | inline Op symmetric_op(Op op) { |
278 | 4 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 2 | case Op::LT: |
283 | 2 | return Op::GT; |
284 | 0 | case Op::LE: |
285 | 0 | return Op::GE; |
286 | 0 | case Op::GT: |
287 | 0 | return Op::LT; |
288 | 2 | case Op::GE: |
289 | 2 | return Op::LE; |
290 | 4 | } |
291 | 0 | __builtin_unreachable(); |
292 | 4 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 18.7k | Op op) { |
296 | 18.7k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 18.7k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 18.7k | slot_literal->slot_type); |
300 | 18.7k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 18.7k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 18.7k | if (zone_map_ptr == nullptr) { |
305 | 44 | return unsupported_zonemap_filter(ctx); |
306 | 44 | } |
307 | 18.6k | const auto& zone_map = *zone_map_ptr; |
308 | 18.6k | if (!zone_map.has_not_null) { |
309 | 135 | return ZoneMapFilterResult::kNoMatch; |
310 | 135 | } |
311 | 18.5k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 117 | return unsupported_zonemap_filter(ctx); |
313 | 117 | } |
314 | | |
315 | 18.4k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 18.4k | const auto& literal = slot_literal->literal; |
317 | 18.4k | switch (effective_op) { |
318 | 5.28k | case Op::EQ: |
319 | 5.28k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 5.28k | ? ZoneMapFilterResult::kNoMatch |
321 | 5.28k | : ZoneMapFilterResult::kMayMatch; |
322 | 608 | case Op::NE: |
323 | 608 | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 608 | ? ZoneMapFilterResult::kNoMatch |
325 | 608 | : ZoneMapFilterResult::kMayMatch; |
326 | 1.58k | case Op::LT: |
327 | 1.58k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 1.58k | : ZoneMapFilterResult::kMayMatch; |
329 | 4.83k | case Op::LE: |
330 | 4.83k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 4.83k | : ZoneMapFilterResult::kMayMatch; |
332 | 2.65k | case Op::GT: |
333 | 2.65k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 2.65k | : ZoneMapFilterResult::kMayMatch; |
335 | 3.44k | case Op::GE: |
336 | 3.44k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 3.44k | : ZoneMapFilterResult::kMayMatch; |
338 | 18.4k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 18.4k | } |
343 | | |
344 | 97.0k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 97.0k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 97.0k | if (!slot_literal.has_value()) { |
347 | 31.4k | return false; |
348 | 31.4k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 65.6k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 65.6k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 65.6k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 65.6k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 5 | return false; |
364 | 5 | } |
365 | | |
366 | 65.6k | return true; |
367 | 65.6k | } |
368 | | |
369 | 33.3k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 33.3k | return op == Op::EQ && can_evaluate(arguments); |
371 | 33.3k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 20.4k | const VExprSPtrs& arguments, Op op) { |
375 | 20.4k | DORIS_CHECK(op == Op::EQ); |
376 | 20.4k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 20.4k | DORIS_CHECK(slot_literal.has_value()); |
378 | 20.4k | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 20.4k | } |
380 | | |
381 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
382 | 9 | const VExprSPtrs& arguments, Op op) { |
383 | 9 | DORIS_CHECK(op == Op::EQ); |
384 | 9 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 9 | DORIS_CHECK(slot_literal.has_value()); |
386 | 9 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
387 | 9 | } |
388 | | |
389 | 141k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 141k | if (name == NameEquals::name) { |
391 | 81.3k | return Op::EQ; |
392 | 81.3k | } |
393 | 60.0k | if (name == NameNotEquals::name) { |
394 | 4.29k | return Op::NE; |
395 | 4.29k | } |
396 | 55.8k | if (name == NameLess::name) { |
397 | 9.07k | return Op::LT; |
398 | 9.07k | } |
399 | 46.7k | if (name == NameLessOrEquals::name) { |
400 | 15.8k | return Op::LE; |
401 | 15.8k | } |
402 | 30.8k | if (name == NameGreater::name) { |
403 | 16.9k | return Op::GT; |
404 | 16.9k | } |
405 | 14.0k | if (name == NameGreaterOrEquals::name) { |
406 | 14.0k | return Op::GE; |
407 | 14.0k | } |
408 | 18.4E | return std::nullopt; |
409 | 13.9k | } |
410 | | } // namespace comparison_zonemap_detail |
411 | | |
412 | | template <template <PrimitiveType> class Op, typename Name> |
413 | | class FunctionComparison : public IFunction { |
414 | | public: |
415 | | static constexpr auto name = Name::name; |
416 | 403k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 344k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 1.96k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 23.9k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 11.5k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 3.75k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 17.8k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 404k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 344k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 1.96k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 23.9k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 11.5k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 3.75k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 17.8k | FunctionComparison() = default; |
|
419 | | |
420 | 930k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 915k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 630 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 2.46k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 6.62k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 420 | 1.44k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 420 | 4.33k | double execute_cost() const override { return 0.5; } |
|
421 | | |
422 | | private: |
423 | | template <PrimitiveType PT> |
424 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
425 | 179k | const ColumnPtr& col_right_ptr) const { |
426 | 179k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 179k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 179k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 179k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 179k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 179k | if (!left_is_const && !right_is_const) { |
435 | 10.4k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 10.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 10.4k | vec_res.resize(col_left->get_data().size()); |
439 | 10.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 10.4k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 10.4k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 10.4k | vec_res); |
443 | | |
444 | 10.4k | block.replace_by_position(result, std::move(col_res)); |
445 | 168k | } else if (!left_is_const && right_is_const) { |
446 | 133k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 133k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 133k | vec_res.resize(col_left->size()); |
450 | 133k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 133k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 133k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 133k | col_right->get_element(0), vec_res); |
454 | | |
455 | 133k | block.replace_by_position(result, std::move(col_res)); |
456 | 133k | } else if (left_is_const && !right_is_const) { |
457 | 34.9k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 34.9k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 34.9k | vec_res.resize(col_right->size()); |
461 | 34.9k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 34.9k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 34.9k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 34.9k | col_right->get_data(), vec_res); |
465 | | |
466 | 34.9k | block.replace_by_position(result, std::move(col_res)); |
467 | 34.9k | } |
468 | 179k | return Status::OK(); |
469 | 179k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 856 | const ColumnPtr& col_right_ptr) const { | 426 | 856 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 856 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 856 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 856 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 856 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 856 | if (!left_is_const && !right_is_const) { | 435 | 59 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 59 | vec_res.resize(col_left->get_data().size()); | 439 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 59 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 59 | vec_res); | 443 | | | 444 | 59 | block.replace_by_position(result, std::move(col_res)); | 445 | 797 | } else if (!left_is_const && right_is_const) { | 446 | 797 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 797 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 797 | vec_res.resize(col_left->size()); | 450 | 797 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 797 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 797 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 797 | col_right->get_element(0), vec_res); | 454 | | | 455 | 797 | block.replace_by_position(result, std::move(col_res)); | 456 | 797 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 856 | return Status::OK(); | 469 | 856 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 863 | const ColumnPtr& col_right_ptr) const { | 426 | 863 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 863 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 863 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 863 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 863 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 863 | if (!left_is_const && !right_is_const) { | 435 | 379 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 379 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 379 | vec_res.resize(col_left->get_data().size()); | 439 | 379 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 379 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 379 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 379 | vec_res); | 443 | | | 444 | 379 | block.replace_by_position(result, std::move(col_res)); | 445 | 484 | } else if (!left_is_const && right_is_const) { | 446 | 483 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 483 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 483 | vec_res.resize(col_left->size()); | 450 | 483 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 483 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 483 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 483 | col_right->get_element(0), vec_res); | 454 | | | 455 | 483 | block.replace_by_position(result, std::move(col_res)); | 456 | 483 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 863 | return Status::OK(); | 469 | 863 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 548 | const ColumnPtr& col_right_ptr) const { | 426 | 548 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 548 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 548 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 548 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 548 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 548 | if (!left_is_const && !right_is_const) { | 435 | 296 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 296 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 296 | vec_res.resize(col_left->get_data().size()); | 439 | 296 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 296 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 296 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 296 | vec_res); | 443 | | | 444 | 296 | block.replace_by_position(result, std::move(col_res)); | 445 | 296 | } else if (!left_is_const && right_is_const) { | 446 | 252 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 252 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 252 | vec_res.resize(col_left->size()); | 450 | 252 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 252 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 252 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 252 | col_right->get_element(0), vec_res); | 454 | | | 455 | 252 | block.replace_by_position(result, std::move(col_res)); | 456 | 252 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 548 | return Status::OK(); | 469 | 548 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 5.93k | const ColumnPtr& col_right_ptr) const { | 426 | 5.93k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 5.93k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 5.93k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 5.93k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 5.93k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 5.93k | if (!left_is_const && !right_is_const) { | 435 | 141 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 141 | vec_res.resize(col_left->get_data().size()); | 439 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 141 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 141 | vec_res); | 443 | | | 444 | 141 | block.replace_by_position(result, std::move(col_res)); | 445 | 5.79k | } else if (!left_is_const && right_is_const) { | 446 | 5.51k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 5.51k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 5.51k | vec_res.resize(col_left->size()); | 450 | 5.51k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 5.51k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 5.51k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 5.51k | col_right->get_element(0), vec_res); | 454 | | | 455 | 5.51k | block.replace_by_position(result, std::move(col_res)); | 456 | 5.51k | } else if (left_is_const && !right_is_const) { | 457 | 276 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 276 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 276 | vec_res.resize(col_right->size()); | 461 | 276 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 276 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 276 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 276 | col_right->get_data(), vec_res); | 465 | | | 466 | 276 | block.replace_by_position(result, std::move(col_res)); | 467 | 276 | } | 468 | 5.93k | return Status::OK(); | 469 | 5.93k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.02k | const ColumnPtr& col_right_ptr) const { | 426 | 1.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.02k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.02k | if (!left_is_const && !right_is_const) { | 435 | 62 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 62 | vec_res.resize(col_left->get_data().size()); | 439 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 62 | vec_res); | 443 | | | 444 | 62 | block.replace_by_position(result, std::move(col_res)); | 445 | 959 | } else if (!left_is_const && right_is_const) { | 446 | 923 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 923 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 923 | vec_res.resize(col_left->size()); | 450 | 923 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 923 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 923 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 923 | col_right->get_element(0), vec_res); | 454 | | | 455 | 923 | block.replace_by_position(result, std::move(col_res)); | 456 | 923 | } else if (left_is_const && !right_is_const) { | 457 | 36 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 36 | vec_res.resize(col_right->size()); | 461 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 36 | col_right->get_data(), vec_res); | 465 | | | 466 | 36 | block.replace_by_position(result, std::move(col_res)); | 467 | 36 | } | 468 | 1.02k | return Status::OK(); | 469 | 1.02k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 61.5k | const ColumnPtr& col_right_ptr) const { | 426 | 61.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 61.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 61.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 61.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 61.5k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 61.5k | if (!left_is_const && !right_is_const) { | 435 | 646 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 646 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 646 | vec_res.resize(col_left->get_data().size()); | 439 | 646 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 646 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 646 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 646 | vec_res); | 443 | | | 444 | 646 | block.replace_by_position(result, std::move(col_res)); | 445 | 60.8k | } else if (!left_is_const && right_is_const) { | 446 | 33.5k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 33.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 33.5k | vec_res.resize(col_left->size()); | 450 | 33.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 33.5k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 33.5k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 33.5k | col_right->get_element(0), vec_res); | 454 | | | 455 | 33.5k | block.replace_by_position(result, std::move(col_res)); | 456 | 33.5k | } else if (left_is_const && !right_is_const) { | 457 | 27.3k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 27.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 27.3k | vec_res.resize(col_right->size()); | 461 | 27.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 27.3k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 27.3k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 27.3k | col_right->get_data(), vec_res); | 465 | | | 466 | 27.3k | block.replace_by_position(result, std::move(col_res)); | 467 | 27.3k | } | 468 | 61.5k | return Status::OK(); | 469 | 61.5k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 15.5k | const ColumnPtr& col_right_ptr) const { | 426 | 15.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 15.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 15.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 15.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 15.5k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 15.5k | if (!left_is_const && !right_is_const) { | 435 | 188 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 188 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 188 | vec_res.resize(col_left->get_data().size()); | 439 | 188 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 188 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 188 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 188 | vec_res); | 443 | | | 444 | 188 | block.replace_by_position(result, std::move(col_res)); | 445 | 15.3k | } else if (!left_is_const && right_is_const) { | 446 | 14.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 14.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 14.7k | vec_res.resize(col_left->size()); | 450 | 14.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 14.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 14.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 14.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 14.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 14.7k | } else if (left_is_const && !right_is_const) { | 457 | 589 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 589 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 589 | vec_res.resize(col_right->size()); | 461 | 589 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 589 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 589 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 589 | col_right->get_data(), vec_res); | 465 | | | 466 | 589 | block.replace_by_position(result, std::move(col_res)); | 467 | 589 | } | 468 | 15.5k | return Status::OK(); | 469 | 15.5k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 131 | const ColumnPtr& col_right_ptr) const { | 426 | 131 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 131 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 131 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 131 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 131 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 131 | if (!left_is_const && !right_is_const) { | 435 | 72 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 72 | vec_res.resize(col_left->get_data().size()); | 439 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 72 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 72 | vec_res); | 443 | | | 444 | 72 | block.replace_by_position(result, std::move(col_res)); | 445 | 72 | } else if (!left_is_const && right_is_const) { | 446 | 47 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 47 | vec_res.resize(col_left->size()); | 450 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 47 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 47 | col_right->get_element(0), vec_res); | 454 | | | 455 | 47 | block.replace_by_position(result, std::move(col_res)); | 456 | 47 | } else if (left_is_const && !right_is_const) { | 457 | 12 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 12 | vec_res.resize(col_right->size()); | 461 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 12 | col_right->get_data(), vec_res); | 465 | | | 466 | 12 | block.replace_by_position(result, std::move(col_res)); | 467 | 12 | } | 468 | 131 | return Status::OK(); | 469 | 131 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 19 | const ColumnPtr& col_right_ptr) const { | 426 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 19 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 19 | if (!left_is_const && !right_is_const) { | 435 | 5 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 5 | vec_res.resize(col_left->get_data().size()); | 439 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 5 | vec_res); | 443 | | | 444 | 5 | block.replace_by_position(result, std::move(col_res)); | 445 | 14 | } else if (!left_is_const && right_is_const) { | 446 | 14 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 14 | vec_res.resize(col_left->size()); | 450 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 14 | col_right->get_element(0), vec_res); | 454 | | | 455 | 14 | block.replace_by_position(result, std::move(col_res)); | 456 | 14 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 19 | return Status::OK(); | 469 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 19 | const ColumnPtr& col_right_ptr) const { | 426 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 19 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 19 | if (!left_is_const && !right_is_const) { | 435 | 13 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 13 | vec_res.resize(col_left->get_data().size()); | 439 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 13 | vec_res); | 443 | | | 444 | 13 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 6 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6 | vec_res.resize(col_left->size()); | 450 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6 | col_right->get_element(0), vec_res); | 454 | | | 455 | 6 | block.replace_by_position(result, std::move(col_res)); | 456 | 6 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 19 | return Status::OK(); | 469 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 98 | const ColumnPtr& col_right_ptr) const { | 426 | 98 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 98 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 98 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 98 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 98 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 98 | if (!left_is_const && !right_is_const) { | 435 | 96 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 96 | vec_res.resize(col_left->get_data().size()); | 439 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 96 | vec_res); | 443 | | | 444 | 96 | block.replace_by_position(result, std::move(col_res)); | 445 | 96 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 98 | return Status::OK(); | 469 | 98 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 904 | const ColumnPtr& col_right_ptr) const { | 426 | 904 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 904 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 904 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 904 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 904 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 904 | if (!left_is_const && !right_is_const) { | 435 | 90 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 90 | vec_res.resize(col_left->get_data().size()); | 439 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 90 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 90 | vec_res); | 443 | | | 444 | 90 | block.replace_by_position(result, std::move(col_res)); | 445 | 814 | } else if (!left_is_const && right_is_const) { | 446 | 814 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 814 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 814 | vec_res.resize(col_left->size()); | 450 | 814 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 814 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 814 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 814 | col_right->get_element(0), vec_res); | 454 | | | 455 | 814 | block.replace_by_position(result, std::move(col_res)); | 456 | 814 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 904 | return Status::OK(); | 469 | 904 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 76 | const ColumnPtr& col_right_ptr) const { | 426 | 76 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 76 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 76 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 76 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 76 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 76 | if (!left_is_const && !right_is_const) { | 435 | 43 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 43 | vec_res.resize(col_left->get_data().size()); | 439 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 43 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 43 | vec_res); | 443 | | | 444 | 43 | block.replace_by_position(result, std::move(col_res)); | 445 | 43 | } else if (!left_is_const && right_is_const) { | 446 | 33 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 33 | vec_res.resize(col_left->size()); | 450 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 33 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 33 | col_right->get_element(0), vec_res); | 454 | | | 455 | 33 | block.replace_by_position(result, std::move(col_res)); | 456 | 33 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 76 | return Status::OK(); | 469 | 76 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 88 | const ColumnPtr& col_right_ptr) const { | 426 | 88 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 88 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 88 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 88 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 88 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 88 | if (!left_is_const && !right_is_const) { | 435 | 52 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 52 | vec_res.resize(col_left->get_data().size()); | 439 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 52 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 52 | vec_res); | 443 | | | 444 | 52 | block.replace_by_position(result, std::move(col_res)); | 445 | 52 | } else if (!left_is_const && right_is_const) { | 446 | 36 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 36 | vec_res.resize(col_left->size()); | 450 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 36 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 36 | col_right->get_element(0), vec_res); | 454 | | | 455 | 36 | block.replace_by_position(result, std::move(col_res)); | 456 | 36 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 88 | return Status::OK(); | 469 | 88 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13 | const ColumnPtr& col_right_ptr) const { | 426 | 13 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 13 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13 | vec_res.resize(col_left->size()); | 450 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13 | col_right->get_element(0), vec_res); | 454 | | | 455 | 13 | block.replace_by_position(result, std::move(col_res)); | 456 | 13 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 13 | return Status::OK(); | 469 | 13 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.20k | const ColumnPtr& col_right_ptr) const { | 426 | 2.20k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.20k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.20k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.20k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.20k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.20k | if (!left_is_const && !right_is_const) { | 435 | 1.29k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.29k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.29k | vec_res.resize(col_left->get_data().size()); | 439 | 1.29k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.29k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.29k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.29k | vec_res); | 443 | | | 444 | 1.29k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.29k | } else if (!left_is_const && right_is_const) { | 446 | 911 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 911 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 911 | vec_res.resize(col_left->size()); | 450 | 911 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 911 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 911 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 911 | col_right->get_element(0), vec_res); | 454 | | | 455 | 911 | block.replace_by_position(result, std::move(col_res)); | 456 | 911 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.20k | return Status::OK(); | 469 | 2.20k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.06k | const ColumnPtr& col_right_ptr) const { | 426 | 2.06k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.06k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.06k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.06k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.06k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.06k | if (!left_is_const && !right_is_const) { | 435 | 318 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 318 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 318 | vec_res.resize(col_left->get_data().size()); | 439 | 318 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 318 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 318 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 318 | vec_res); | 443 | | | 444 | 318 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.74k | } else if (!left_is_const && right_is_const) { | 446 | 978 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 978 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 978 | vec_res.resize(col_left->size()); | 450 | 978 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 978 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 978 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 978 | col_right->get_element(0), vec_res); | 454 | | | 455 | 978 | block.replace_by_position(result, std::move(col_res)); | 456 | 978 | } else if (left_is_const && !right_is_const) { | 457 | 764 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 764 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 764 | vec_res.resize(col_right->size()); | 461 | 764 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 764 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 764 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 764 | col_right->get_data(), vec_res); | 465 | | | 466 | 764 | block.replace_by_position(result, std::move(col_res)); | 467 | 764 | } | 468 | 2.06k | return Status::OK(); | 469 | 2.06k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 48 | const ColumnPtr& col_right_ptr) const { | 426 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 48 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 48 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 28 | } else if (!left_is_const && right_is_const) { | 446 | 28 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28 | vec_res.resize(col_left->size()); | 450 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28 | col_right->get_element(0), vec_res); | 454 | | | 455 | 28 | block.replace_by_position(result, std::move(col_res)); | 456 | 28 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 48 | return Status::OK(); | 469 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60 | const ColumnPtr& col_right_ptr) const { | 426 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 40 | } else if (!left_is_const && right_is_const) { | 446 | 40 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 40 | vec_res.resize(col_left->size()); | 450 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 40 | col_right->get_element(0), vec_res); | 454 | | | 455 | 40 | block.replace_by_position(result, std::move(col_res)); | 456 | 40 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 60 | return Status::OK(); | 469 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.90k | const ColumnPtr& col_right_ptr) const { | 426 | 1.90k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.90k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.90k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.90k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.90k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.90k | if (!left_is_const && !right_is_const) { | 435 | 1.80k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.80k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.80k | vec_res.resize(col_left->get_data().size()); | 439 | 1.80k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.80k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.80k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.80k | vec_res); | 443 | | | 444 | 1.80k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.80k | } else if (!left_is_const && right_is_const) { | 446 | 102 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 102 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 102 | vec_res.resize(col_left->size()); | 450 | 102 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 102 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 102 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 102 | col_right->get_element(0), vec_res); | 454 | | | 455 | 102 | block.replace_by_position(result, std::move(col_res)); | 456 | 102 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.90k | return Status::OK(); | 469 | 1.90k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 62 | const ColumnPtr& col_right_ptr) const { | 426 | 62 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 62 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 62 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 62 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 62 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 62 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 62 | } else if (!left_is_const && right_is_const) { | 446 | 62 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 62 | vec_res.resize(col_left->size()); | 450 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 62 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 62 | col_right->get_element(0), vec_res); | 454 | | | 455 | 62 | block.replace_by_position(result, std::move(col_res)); | 456 | 62 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 62 | return Status::OK(); | 469 | 62 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.05k | const ColumnPtr& col_right_ptr) const { | 426 | 1.05k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.05k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.05k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.05k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.05k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.05k | if (!left_is_const && !right_is_const) { | 435 | 42 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 42 | vec_res.resize(col_left->get_data().size()); | 439 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 42 | vec_res); | 443 | | | 444 | 42 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.00k | } else if (!left_is_const && right_is_const) { | 446 | 781 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 781 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 781 | vec_res.resize(col_left->size()); | 450 | 781 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 781 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 781 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 781 | col_right->get_element(0), vec_res); | 454 | | | 455 | 781 | block.replace_by_position(result, std::move(col_res)); | 456 | 781 | } else if (left_is_const && !right_is_const) { | 457 | 228 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 228 | vec_res.resize(col_right->size()); | 461 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 228 | col_right->get_data(), vec_res); | 465 | | | 466 | 228 | block.replace_by_position(result, std::move(col_res)); | 467 | 228 | } | 468 | 1.05k | return Status::OK(); | 469 | 1.05k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.79k | const ColumnPtr& col_right_ptr) const { | 426 | 1.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.79k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.79k | if (!left_is_const && !right_is_const) { | 435 | 126 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 126 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 126 | vec_res.resize(col_left->get_data().size()); | 439 | 126 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 126 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 126 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 126 | vec_res); | 443 | | | 444 | 126 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.67k | } else if (!left_is_const && right_is_const) { | 446 | 1.44k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.44k | vec_res.resize(col_left->size()); | 450 | 1.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.44k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.44k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.44k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.44k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.44k | } else if (left_is_const && !right_is_const) { | 457 | 224 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 224 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 224 | vec_res.resize(col_right->size()); | 461 | 224 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 224 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 224 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 224 | col_right->get_data(), vec_res); | 465 | | | 466 | 224 | block.replace_by_position(result, std::move(col_res)); | 467 | 224 | } | 468 | 1.79k | return Status::OK(); | 469 | 1.79k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18.4k | const ColumnPtr& col_right_ptr) const { | 426 | 18.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18.4k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18.4k | if (!left_is_const && !right_is_const) { | 435 | 65 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 65 | vec_res.resize(col_left->get_data().size()); | 439 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 65 | vec_res); | 443 | | | 444 | 65 | block.replace_by_position(result, std::move(col_res)); | 445 | 18.4k | } else if (!left_is_const && right_is_const) { | 446 | 14.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 14.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 14.7k | vec_res.resize(col_left->size()); | 450 | 14.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 14.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 14.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 14.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 14.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 14.7k | } else if (left_is_const && !right_is_const) { | 457 | 3.69k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 3.69k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 3.69k | vec_res.resize(col_right->size()); | 461 | 3.69k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 3.69k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 3.69k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 3.69k | col_right->get_data(), vec_res); | 465 | | | 466 | 3.69k | block.replace_by_position(result, std::move(col_res)); | 467 | 3.69k | } | 468 | 18.4k | return Status::OK(); | 469 | 18.4k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 7.98k | const ColumnPtr& col_right_ptr) const { | 426 | 7.98k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 7.98k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 7.98k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 7.98k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 7.98k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 7.98k | if (!left_is_const && !right_is_const) { | 435 | 64 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 64 | vec_res.resize(col_left->get_data().size()); | 439 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 64 | vec_res); | 443 | | | 444 | 64 | block.replace_by_position(result, std::move(col_res)); | 445 | 7.92k | } else if (!left_is_const && right_is_const) { | 446 | 7.40k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 7.40k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 7.40k | vec_res.resize(col_left->size()); | 450 | 7.40k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 7.40k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 7.40k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 7.40k | col_right->get_element(0), vec_res); | 454 | | | 455 | 7.40k | block.replace_by_position(result, std::move(col_res)); | 456 | 7.40k | } else if (left_is_const && !right_is_const) { | 457 | 522 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 522 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 522 | vec_res.resize(col_right->size()); | 461 | 522 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 522 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 522 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 522 | col_right->get_data(), vec_res); | 465 | | | 466 | 522 | block.replace_by_position(result, std::move(col_res)); | 467 | 522 | } | 468 | 7.98k | return Status::OK(); | 469 | 7.98k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 249 | const ColumnPtr& col_right_ptr) const { | 426 | 249 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 249 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 249 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 249 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 249 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 249 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 247 | } else if (!left_is_const && right_is_const) { | 446 | 201 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 201 | vec_res.resize(col_left->size()); | 450 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 201 | col_right->get_element(0), vec_res); | 454 | | | 455 | 201 | block.replace_by_position(result, std::move(col_res)); | 456 | 201 | } else if (left_is_const && !right_is_const) { | 457 | 46 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 46 | vec_res.resize(col_right->size()); | 461 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 46 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 46 | col_right->get_data(), vec_res); | 465 | | | 466 | 46 | block.replace_by_position(result, std::move(col_res)); | 467 | 46 | } | 468 | 249 | return Status::OK(); | 469 | 249 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 3 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3 | vec_res.resize(col_left->size()); | 450 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3 | col_right->get_element(0), vec_res); | 454 | | | 455 | 3 | block.replace_by_position(result, std::move(col_res)); | 456 | 3 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 228 | const ColumnPtr& col_right_ptr) const { | 426 | 228 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 228 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 228 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 228 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 228 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 228 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 208 | } else if (!left_is_const && right_is_const) { | 446 | 208 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 208 | vec_res.resize(col_left->size()); | 450 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 208 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 208 | col_right->get_element(0), vec_res); | 454 | | | 455 | 208 | block.replace_by_position(result, std::move(col_res)); | 456 | 208 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 228 | return Status::OK(); | 469 | 228 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.46k | const ColumnPtr& col_right_ptr) const { | 426 | 1.46k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.46k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.46k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.46k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.46k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.46k | if (!left_is_const && !right_is_const) { | 435 | 27 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 27 | vec_res.resize(col_left->get_data().size()); | 439 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 27 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 27 | vec_res); | 443 | | | 444 | 27 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.43k | } else if (!left_is_const && right_is_const) { | 446 | 1.43k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.43k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.43k | vec_res.resize(col_left->size()); | 450 | 1.43k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.43k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.43k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.43k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.43k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.43k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.46k | return Status::OK(); | 469 | 1.46k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 78 | const ColumnPtr& col_right_ptr) const { | 426 | 78 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 78 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 78 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 78 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 78 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 78 | if (!left_is_const && !right_is_const) { | 435 | 21 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 21 | vec_res.resize(col_left->get_data().size()); | 439 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 21 | vec_res); | 443 | | | 444 | 21 | block.replace_by_position(result, std::move(col_res)); | 445 | 57 | } else if (!left_is_const && right_is_const) { | 446 | 57 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 57 | vec_res.resize(col_left->size()); | 450 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 57 | col_right->get_element(0), vec_res); | 454 | | | 455 | 57 | block.replace_by_position(result, std::move(col_res)); | 456 | 57 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 78 | return Status::OK(); | 469 | 78 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.39k | const ColumnPtr& col_right_ptr) const { | 426 | 1.39k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.39k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.39k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.39k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.39k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.39k | if (!left_is_const && !right_is_const) { | 435 | 31 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 31 | vec_res.resize(col_left->get_data().size()); | 439 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 31 | vec_res); | 443 | | | 444 | 31 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.36k | } else if (!left_is_const && right_is_const) { | 446 | 1.35k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.35k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.35k | vec_res.resize(col_left->size()); | 450 | 1.35k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.35k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.35k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.35k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.35k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.35k | } else if (left_is_const && !right_is_const) { | 457 | 6 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 6 | vec_res.resize(col_right->size()); | 461 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 6 | col_right->get_data(), vec_res); | 465 | | | 466 | 6 | block.replace_by_position(result, std::move(col_res)); | 467 | 6 | } | 468 | 1.39k | return Status::OK(); | 469 | 1.39k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 469 | const ColumnPtr& col_right_ptr) const { | 426 | 469 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 469 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 469 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 469 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 469 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 469 | if (!left_is_const && !right_is_const) { | 435 | 51 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 51 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 51 | vec_res.resize(col_left->get_data().size()); | 439 | 51 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 51 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 51 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 51 | vec_res); | 443 | | | 444 | 51 | block.replace_by_position(result, std::move(col_res)); | 445 | 418 | } else if (!left_is_const && right_is_const) { | 446 | 418 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 418 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 418 | vec_res.resize(col_left->size()); | 450 | 418 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 418 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 418 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 418 | col_right->get_element(0), vec_res); | 454 | | | 455 | 418 | block.replace_by_position(result, std::move(col_res)); | 456 | 418 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 469 | return Status::OK(); | 469 | 469 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 72 | const ColumnPtr& col_right_ptr) const { | 426 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 72 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 72 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 72 | } else if (!left_is_const && right_is_const) { | 446 | 72 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 72 | vec_res.resize(col_left->size()); | 450 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 72 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 72 | col_right->get_element(0), vec_res); | 454 | | | 455 | 72 | block.replace_by_position(result, std::move(col_res)); | 456 | 72 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 72 | return Status::OK(); | 469 | 72 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 95 | const ColumnPtr& col_right_ptr) const { | 426 | 95 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 95 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 95 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 95 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 95 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 95 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 95 | } else if (!left_is_const && right_is_const) { | 446 | 95 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 95 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 95 | vec_res.resize(col_left->size()); | 450 | 95 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 95 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 95 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 95 | col_right->get_element(0), vec_res); | 454 | | | 455 | 95 | block.replace_by_position(result, std::move(col_res)); | 456 | 95 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 95 | return Status::OK(); | 469 | 95 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 8.89k | const ColumnPtr& col_right_ptr) const { | 426 | 8.89k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 8.89k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 8.89k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 8.89k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 8.89k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 8.89k | if (!left_is_const && !right_is_const) { | 435 | 43 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 43 | vec_res.resize(col_left->get_data().size()); | 439 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 43 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 43 | vec_res); | 443 | | | 444 | 43 | block.replace_by_position(result, std::move(col_res)); | 445 | 8.85k | } else if (!left_is_const && right_is_const) { | 446 | 8.85k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 8.85k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 8.85k | vec_res.resize(col_left->size()); | 450 | 8.85k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 8.85k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 8.85k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 8.85k | col_right->get_element(0), vec_res); | 454 | | | 455 | 8.85k | block.replace_by_position(result, std::move(col_res)); | 456 | 8.85k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 8.89k | return Status::OK(); | 469 | 8.89k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 327 | const ColumnPtr& col_right_ptr) const { | 426 | 327 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 327 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 327 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 327 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 327 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 327 | if (!left_is_const && !right_is_const) { | 435 | 35 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 35 | vec_res.resize(col_left->get_data().size()); | 439 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 35 | vec_res); | 443 | | | 444 | 35 | block.replace_by_position(result, std::move(col_res)); | 445 | 292 | } else if (!left_is_const && right_is_const) { | 446 | 292 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 292 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 292 | vec_res.resize(col_left->size()); | 450 | 292 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 292 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 292 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 292 | col_right->get_element(0), vec_res); | 454 | | | 455 | 292 | block.replace_by_position(result, std::move(col_res)); | 456 | 292 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 327 | return Status::OK(); | 469 | 327 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 36 | const ColumnPtr& col_right_ptr) const { | 426 | 36 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 36 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 36 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 36 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 36 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 36 | if (!left_is_const && !right_is_const) { | 435 | 5 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 5 | vec_res.resize(col_left->get_data().size()); | 439 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 5 | vec_res); | 443 | | | 444 | 5 | block.replace_by_position(result, std::move(col_res)); | 445 | 31 | } else if (!left_is_const && right_is_const) { | 446 | 31 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 31 | vec_res.resize(col_left->size()); | 450 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 31 | col_right->get_element(0), vec_res); | 454 | | | 455 | 31 | block.replace_by_position(result, std::move(col_res)); | 456 | 31 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 36 | return Status::OK(); | 469 | 36 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 11 | const ColumnPtr& col_right_ptr) const { | 426 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 11 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 11 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 11 | return Status::OK(); | 469 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 115 | const ColumnPtr& col_right_ptr) const { | 426 | 115 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 115 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 115 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 115 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 115 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 115 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 60 | } else if (!left_is_const && right_is_const) { | 446 | 55 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 55 | vec_res.resize(col_left->size()); | 450 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 55 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 55 | col_right->get_element(0), vec_res); | 454 | | | 455 | 55 | block.replace_by_position(result, std::move(col_res)); | 456 | 55 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 115 | return Status::OK(); | 469 | 115 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 178 | const ColumnPtr& col_right_ptr) const { | 426 | 178 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 178 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 178 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 178 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 178 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 178 | if (!left_is_const && !right_is_const) { | 435 | 22 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 22 | vec_res.resize(col_left->get_data().size()); | 439 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 22 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 22 | vec_res); | 443 | | | 444 | 22 | block.replace_by_position(result, std::move(col_res)); | 445 | 156 | } else if (!left_is_const && right_is_const) { | 446 | 156 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 156 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 156 | vec_res.resize(col_left->size()); | 450 | 156 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 156 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 156 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 156 | col_right->get_element(0), vec_res); | 454 | | | 455 | 156 | block.replace_by_position(result, std::move(col_res)); | 456 | 156 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 178 | return Status::OK(); | 469 | 178 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 84 | const ColumnPtr& col_right_ptr) const { | 426 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 84 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 85 | if (!left_is_const && !right_is_const) { | 435 | 85 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 85 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 85 | vec_res.resize(col_left->get_data().size()); | 439 | 85 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 85 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 85 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 85 | vec_res); | 443 | | | 444 | 85 | block.replace_by_position(result, std::move(col_res)); | 445 | 18.4E | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 18.4E | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 84 | return Status::OK(); | 469 | 84 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.43k | const ColumnPtr& col_right_ptr) const { | 426 | 2.43k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.43k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.43k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.43k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.43k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.43k | if (!left_is_const && !right_is_const) { | 435 | 2.00k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2.00k | vec_res.resize(col_left->get_data().size()); | 439 | 2.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2.00k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2.00k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2.00k | vec_res); | 443 | | | 444 | 2.00k | block.replace_by_position(result, std::move(col_res)); | 445 | 2.00k | } else if (!left_is_const && right_is_const) { | 446 | 435 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 435 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 435 | vec_res.resize(col_left->size()); | 450 | 435 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 435 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 435 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 435 | col_right->get_element(0), vec_res); | 454 | | | 455 | 435 | block.replace_by_position(result, std::move(col_res)); | 456 | 435 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.43k | return Status::OK(); | 469 | 2.43k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 504 | const ColumnPtr& col_right_ptr) const { | 426 | 504 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 504 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 504 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 504 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 504 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 504 | if (!left_is_const && !right_is_const) { | 435 | 275 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 275 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 275 | vec_res.resize(col_left->get_data().size()); | 439 | 275 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 275 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 275 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 275 | vec_res); | 443 | | | 444 | 275 | block.replace_by_position(result, std::move(col_res)); | 445 | 275 | } else if (!left_is_const && right_is_const) { | 446 | 229 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 229 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 229 | vec_res.resize(col_left->size()); | 450 | 229 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 229 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 229 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 229 | col_right->get_element(0), vec_res); | 454 | | | 455 | 229 | block.replace_by_position(result, std::move(col_res)); | 456 | 229 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 504 | return Status::OK(); | 469 | 504 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 1 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1 | vec_res.resize(col_left->size()); | 450 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1 | col_right->get_element(0), vec_res); | 454 | | | 455 | 1 | block.replace_by_position(result, std::move(col_res)); | 456 | 1 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.09k | const ColumnPtr& col_right_ptr) const { | 426 | 2.09k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.09k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.09k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.09k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.09k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.09k | if (!left_is_const && !right_is_const) { | 435 | 152 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 152 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 152 | vec_res.resize(col_left->get_data().size()); | 439 | 152 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 152 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 152 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 152 | vec_res); | 443 | | | 444 | 152 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.94k | } else if (!left_is_const && right_is_const) { | 446 | 1.71k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.71k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.71k | vec_res.resize(col_left->size()); | 450 | 1.71k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.71k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.71k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.71k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.71k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.71k | } else if (left_is_const && !right_is_const) { | 457 | 228 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 228 | vec_res.resize(col_right->size()); | 461 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 228 | col_right->get_data(), vec_res); | 465 | | | 466 | 228 | block.replace_by_position(result, std::move(col_res)); | 467 | 228 | } | 468 | 2.09k | return Status::OK(); | 469 | 2.09k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 257 | const ColumnPtr& col_right_ptr) const { | 426 | 257 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 257 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 257 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 257 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 257 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 257 | if (!left_is_const && !right_is_const) { | 435 | 118 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 118 | vec_res.resize(col_left->get_data().size()); | 439 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 118 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 118 | vec_res); | 443 | | | 444 | 118 | block.replace_by_position(result, std::move(col_res)); | 445 | 139 | } else if (!left_is_const && right_is_const) { | 446 | 138 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 138 | vec_res.resize(col_left->size()); | 450 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 138 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 138 | col_right->get_element(0), vec_res); | 454 | | | 455 | 138 | block.replace_by_position(result, std::move(col_res)); | 456 | 138 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 257 | return Status::OK(); | 469 | 257 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.31k | const ColumnPtr& col_right_ptr) const { | 426 | 2.31k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.31k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.31k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.31k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.31k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.31k | if (!left_is_const && !right_is_const) { | 435 | 156 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 156 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 156 | vec_res.resize(col_left->get_data().size()); | 439 | 156 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 156 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 156 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 156 | vec_res); | 443 | | | 444 | 156 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.15k | } else if (!left_is_const && right_is_const) { | 446 | 1.96k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.96k | vec_res.resize(col_left->size()); | 450 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.96k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.96k | } else if (left_is_const && !right_is_const) { | 457 | 193 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 193 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 193 | vec_res.resize(col_right->size()); | 461 | 193 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 193 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 193 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 193 | col_right->get_data(), vec_res); | 465 | | | 466 | 193 | block.replace_by_position(result, std::move(col_res)); | 467 | 193 | } | 468 | 2.31k | return Status::OK(); | 469 | 2.31k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.25k | const ColumnPtr& col_right_ptr) const { | 426 | 1.25k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.25k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.25k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.25k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.25k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.25k | if (!left_is_const && !right_is_const) { | 435 | 209 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 209 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 209 | vec_res.resize(col_left->get_data().size()); | 439 | 209 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 209 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 209 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 209 | vec_res); | 443 | | | 444 | 209 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.04k | } else if (!left_is_const && right_is_const) { | 446 | 969 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 969 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 969 | vec_res.resize(col_left->size()); | 450 | 969 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 969 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 969 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 969 | col_right->get_element(0), vec_res); | 454 | | | 455 | 969 | block.replace_by_position(result, std::move(col_res)); | 456 | 969 | } else if (left_is_const && !right_is_const) { | 457 | 79 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 79 | vec_res.resize(col_right->size()); | 461 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 79 | col_right->get_data(), vec_res); | 465 | | | 466 | 79 | block.replace_by_position(result, std::move(col_res)); | 467 | 79 | } | 468 | 1.25k | return Status::OK(); | 469 | 1.25k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 283 | const ColumnPtr& col_right_ptr) const { | 426 | 283 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 283 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 283 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 283 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 283 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 283 | if (!left_is_const && !right_is_const) { | 435 | 157 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 157 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 157 | vec_res.resize(col_left->get_data().size()); | 439 | 157 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 157 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 157 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 157 | vec_res); | 443 | | | 444 | 157 | block.replace_by_position(result, std::move(col_res)); | 445 | 157 | } else if (!left_is_const && right_is_const) { | 446 | 46 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 46 | vec_res.resize(col_left->size()); | 450 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 46 | col_right->get_element(0), vec_res); | 454 | | | 455 | 46 | block.replace_by_position(result, std::move(col_res)); | 456 | 80 | } else if (left_is_const && !right_is_const) { | 457 | 80 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 80 | vec_res.resize(col_right->size()); | 461 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 80 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 80 | col_right->get_data(), vec_res); | 465 | | | 466 | 80 | block.replace_by_position(result, std::move(col_res)); | 467 | 80 | } | 468 | 283 | return Status::OK(); | 469 | 283 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16 | const ColumnPtr& col_right_ptr) const { | 426 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16 | return Status::OK(); | 469 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 173 | const ColumnPtr& col_right_ptr) const { | 426 | 173 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 173 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 173 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 173 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 173 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 173 | if (!left_is_const && !right_is_const) { | 435 | 157 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 157 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 157 | vec_res.resize(col_left->get_data().size()); | 439 | 157 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 157 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 157 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 157 | vec_res); | 443 | | | 444 | 157 | block.replace_by_position(result, std::move(col_res)); | 445 | 157 | } else if (!left_is_const && right_is_const) { | 446 | 16 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 16 | vec_res.resize(col_left->size()); | 450 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 16 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 16 | col_right->get_element(0), vec_res); | 454 | | | 455 | 16 | block.replace_by_position(result, std::move(col_res)); | 456 | 16 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 173 | return Status::OK(); | 469 | 173 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 363 | const ColumnPtr& col_right_ptr) const { | 426 | 363 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 363 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 363 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 363 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 363 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 363 | if (!left_is_const && !right_is_const) { | 435 | 150 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 150 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 150 | vec_res.resize(col_left->get_data().size()); | 439 | 150 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 150 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 150 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 150 | vec_res); | 443 | | | 444 | 150 | block.replace_by_position(result, std::move(col_res)); | 445 | 213 | } else if (!left_is_const && right_is_const) { | 446 | 213 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 213 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 213 | vec_res.resize(col_left->size()); | 450 | 213 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 213 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 213 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 213 | col_right->get_element(0), vec_res); | 454 | | | 455 | 213 | block.replace_by_position(result, std::move(col_res)); | 456 | 213 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 363 | return Status::OK(); | 469 | 363 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 93 | const ColumnPtr& col_right_ptr) const { | 426 | 93 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 93 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 93 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 93 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 93 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 93 | if (!left_is_const && !right_is_const) { | 435 | 21 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 21 | vec_res.resize(col_left->get_data().size()); | 439 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 21 | vec_res); | 443 | | | 444 | 21 | block.replace_by_position(result, std::move(col_res)); | 445 | 72 | } else if (!left_is_const && right_is_const) { | 446 | 72 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 72 | vec_res.resize(col_left->size()); | 450 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 72 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 72 | col_right->get_element(0), vec_res); | 454 | | | 455 | 72 | block.replace_by_position(result, std::move(col_res)); | 456 | 72 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 93 | return Status::OK(); | 469 | 93 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 14.6k | const ColumnPtr& col_right_ptr) const { | 426 | 14.6k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 14.6k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 14.6k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 14.6k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 14.6k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 14.6k | if (!left_is_const && !right_is_const) { | 435 | 427 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 427 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 427 | vec_res.resize(col_left->get_data().size()); | 439 | 427 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 427 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 427 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 427 | vec_res); | 443 | | | 444 | 427 | block.replace_by_position(result, std::move(col_res)); | 445 | 14.2k | } else if (!left_is_const && right_is_const) { | 446 | 14.2k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 14.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 14.2k | vec_res.resize(col_left->size()); | 450 | 14.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 14.2k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 14.2k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 14.2k | col_right->get_element(0), vec_res); | 454 | | | 455 | 14.2k | block.replace_by_position(result, std::move(col_res)); | 456 | 14.2k | } else if (left_is_const && !right_is_const) { | 457 | 5 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 5 | vec_res.resize(col_right->size()); | 461 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 5 | col_right->get_data(), vec_res); | 465 | | | 466 | 5 | block.replace_by_position(result, std::move(col_res)); | 467 | 5 | } | 468 | 14.6k | return Status::OK(); | 469 | 14.6k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 259 | const ColumnPtr& col_right_ptr) const { | 426 | 259 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 259 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 259 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 259 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 259 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 259 | if (!left_is_const && !right_is_const) { | 435 | 45 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 45 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 45 | vec_res.resize(col_left->get_data().size()); | 439 | 45 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 45 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 45 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 45 | vec_res); | 443 | | | 444 | 45 | block.replace_by_position(result, std::move(col_res)); | 445 | 214 | } else if (!left_is_const && right_is_const) { | 446 | 214 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 214 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 214 | vec_res.resize(col_left->size()); | 450 | 214 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 214 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 214 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 214 | col_right->get_element(0), vec_res); | 454 | | | 455 | 214 | block.replace_by_position(result, std::move(col_res)); | 456 | 214 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 259 | return Status::OK(); | 469 | 259 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 85 | const ColumnPtr& col_right_ptr) const { | 426 | 85 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 85 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 85 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 85 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 85 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 85 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 84 | } else if (!left_is_const && right_is_const) { | 446 | 84 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 84 | vec_res.resize(col_left->size()); | 450 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 84 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 84 | col_right->get_element(0), vec_res); | 454 | | | 455 | 84 | block.replace_by_position(result, std::move(col_res)); | 456 | 84 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 85 | return Status::OK(); | 469 | 85 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 118 | const ColumnPtr& col_right_ptr) const { | 426 | 118 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 118 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 118 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 118 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 118 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 118 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 118 | } else if (!left_is_const && right_is_const) { | 446 | 118 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 118 | vec_res.resize(col_left->size()); | 450 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 118 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 118 | col_right->get_element(0), vec_res); | 454 | | | 455 | 118 | block.replace_by_position(result, std::move(col_res)); | 456 | 118 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 118 | return Status::OK(); | 469 | 118 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16.2k | const ColumnPtr& col_right_ptr) const { | 426 | 16.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16.2k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16.2k | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 16.1k | } else if (!left_is_const && right_is_const) { | 446 | 15.6k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 15.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 15.6k | vec_res.resize(col_left->size()); | 450 | 15.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 15.6k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 15.6k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 15.6k | col_right->get_element(0), vec_res); | 454 | | | 455 | 15.6k | block.replace_by_position(result, std::move(col_res)); | 456 | 15.6k | } else if (left_is_const && !right_is_const) { | 457 | 539 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 539 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 539 | vec_res.resize(col_right->size()); | 461 | 539 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 539 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 539 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 539 | col_right->get_data(), vec_res); | 465 | | | 466 | 539 | block.replace_by_position(result, std::move(col_res)); | 467 | 539 | } | 468 | 16.2k | return Status::OK(); | 469 | 16.2k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 809 | const ColumnPtr& col_right_ptr) const { | 426 | 809 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 809 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 809 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 809 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 809 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 809 | if (!left_is_const && !right_is_const) { | 435 | 57 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 57 | vec_res.resize(col_left->get_data().size()); | 439 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 57 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 57 | vec_res); | 443 | | | 444 | 57 | block.replace_by_position(result, std::move(col_res)); | 445 | 752 | } else if (!left_is_const && right_is_const) { | 446 | 704 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 704 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 704 | vec_res.resize(col_left->size()); | 450 | 704 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 704 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 704 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 704 | col_right->get_element(0), vec_res); | 454 | | | 455 | 704 | block.replace_by_position(result, std::move(col_res)); | 456 | 704 | } else if (left_is_const && !right_is_const) { | 457 | 48 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 48 | vec_res.resize(col_right->size()); | 461 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 48 | col_right->get_data(), vec_res); | 465 | | | 466 | 48 | block.replace_by_position(result, std::move(col_res)); | 467 | 48 | } | 468 | 809 | return Status::OK(); | 469 | 809 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 50 | const ColumnPtr& col_right_ptr) const { | 426 | 50 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 50 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 50 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 50 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 50 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 50 | if (!left_is_const && !right_is_const) { | 435 | 5 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 5 | vec_res.resize(col_left->get_data().size()); | 439 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 5 | vec_res); | 443 | | | 444 | 5 | block.replace_by_position(result, std::move(col_res)); | 445 | 45 | } else if (!left_is_const && right_is_const) { | 446 | 45 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 45 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 45 | vec_res.resize(col_left->size()); | 450 | 45 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 45 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 45 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 45 | col_right->get_element(0), vec_res); | 454 | | | 455 | 45 | block.replace_by_position(result, std::move(col_res)); | 456 | 45 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 50 | return Status::OK(); | 469 | 50 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 10 | const ColumnPtr& col_right_ptr) const { | 426 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 10 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 10 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 10 | return Status::OK(); | 469 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 111 | const ColumnPtr& col_right_ptr) const { | 426 | 111 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 111 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 111 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 111 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 111 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 111 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 60 | } else if (!left_is_const && right_is_const) { | 446 | 51 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 51 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 51 | vec_res.resize(col_left->size()); | 450 | 51 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 51 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 51 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 51 | col_right->get_element(0), vec_res); | 454 | | | 455 | 51 | block.replace_by_position(result, std::move(col_res)); | 456 | 51 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 111 | return Status::OK(); | 469 | 111 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 125 | const ColumnPtr& col_right_ptr) const { | 426 | 125 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 125 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 125 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 125 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 125 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 125 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 105 | } else if (!left_is_const && right_is_const) { | 446 | 104 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 104 | vec_res.resize(col_left->size()); | 450 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 104 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 104 | col_right->get_element(0), vec_res); | 454 | | | 455 | 104 | block.replace_by_position(result, std::move(col_res)); | 456 | 104 | } else if (left_is_const && !right_is_const) { | 457 | 1 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1 | vec_res.resize(col_right->size()); | 461 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1 | col_right->get_data(), vec_res); | 465 | | | 466 | 1 | block.replace_by_position(result, std::move(col_res)); | 467 | 1 | } | 468 | 125 | return Status::OK(); | 469 | 125 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
470 | | |
471 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
472 | 14.2k | const ColumnWithTypeAndName& col_right) const { |
473 | 14.2k | auto call = [&](const auto& type) -> bool { |
474 | 14.2k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 14.2k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 14.2k | block, result, col_left, col_right); |
477 | 14.2k | return true; |
478 | 14.2k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 196 | auto call = [&](const auto& type) -> bool { | 474 | 196 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 196 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 196 | block, result, col_left, col_right); | 477 | 196 | return true; | 478 | 196 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 225 | auto call = [&](const auto& type) -> bool { | 474 | 225 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 225 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 225 | block, result, col_left, col_right); | 477 | 225 | return true; | 478 | 225 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.04k | auto call = [&](const auto& type) -> bool { | 474 | 1.04k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.04k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.04k | block, result, col_left, col_right); | 477 | 1.04k | return true; | 478 | 1.04k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 34 | auto call = [&](const auto& type) -> bool { | 474 | 34 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 34 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 34 | block, result, col_left, col_right); | 477 | 34 | return true; | 478 | 34 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 64 | auto call = [&](const auto& type) -> bool { | 474 | 64 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 64 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 64 | block, result, col_left, col_right); | 477 | 64 | return true; | 478 | 64 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 176 | auto call = [&](const auto& type) -> bool { | 474 | 176 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 176 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 176 | block, result, col_left, col_right); | 477 | 176 | return true; | 478 | 176 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 27 | auto call = [&](const auto& type) -> bool { | 474 | 27 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 27 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 27 | block, result, col_left, col_right); | 477 | 27 | return true; | 478 | 27 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 8.50k | auto call = [&](const auto& type) -> bool { | 474 | 8.50k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 8.50k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 8.50k | block, result, col_left, col_right); | 477 | 8.50k | return true; | 478 | 8.50k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.01k | auto call = [&](const auto& type) -> bool { | 474 | 1.01k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.01k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.01k | block, result, col_left, col_right); | 477 | 1.01k | return true; | 478 | 1.01k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 2 | auto call = [&](const auto& type) -> bool { | 474 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2 | block, result, col_left, col_right); | 477 | 2 | return true; | 478 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 5 | auto call = [&](const auto& type) -> bool { | 474 | 5 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 5 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 5 | block, result, col_left, col_right); | 477 | 5 | return true; | 478 | 5 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 186 | auto call = [&](const auto& type) -> bool { | 474 | 186 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 186 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 186 | block, result, col_left, col_right); | 477 | 186 | return true; | 478 | 186 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 79 | auto call = [&](const auto& type) -> bool { | 474 | 79 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 79 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 79 | block, result, col_left, col_right); | 477 | 79 | return true; | 478 | 79 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 21 | auto call = [&](const auto& type) -> bool { | 474 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 21 | block, result, col_left, col_right); | 477 | 21 | return true; | 478 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 193 | auto call = [&](const auto& type) -> bool { | 474 | 193 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 193 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 193 | block, result, col_left, col_right); | 477 | 193 | return true; | 478 | 193 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 239 | auto call = [&](const auto& type) -> bool { | 474 | 239 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 239 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 239 | block, result, col_left, col_right); | 477 | 239 | return true; | 478 | 239 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 540 | auto call = [&](const auto& type) -> bool { | 474 | 540 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 540 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 540 | block, result, col_left, col_right); | 477 | 540 | return true; | 478 | 540 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 1 | auto call = [&](const auto& type) -> bool { | 474 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1 | block, result, col_left, col_right); | 477 | 1 | return true; | 478 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 4 | auto call = [&](const auto& type) -> bool { | 474 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 4 | block, result, col_left, col_right); | 477 | 4 | return true; | 478 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 1.15k | auto call = [&](const auto& type) -> bool { | 474 | 1.15k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.15k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.15k | block, result, col_left, col_right); | 477 | 1.15k | return true; | 478 | 1.15k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 527 | auto call = [&](const auto& type) -> bool { | 474 | 527 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 527 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 527 | block, result, col_left, col_right); | 477 | 527 | return true; | 478 | 527 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 16 | auto call = [&](const auto& type) -> bool { | 474 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16 | block, result, col_left, col_right); | 477 | 16 | return true; | 478 | 16 | }; |
|
479 | | |
480 | 14.2k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
481 | 0 | return Status::RuntimeError( |
482 | 0 | "type of left column {} is not equal to type of right column {}", |
483 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
484 | 0 | } |
485 | | |
486 | 14.2k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
488 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
489 | 0 | } |
490 | 14.2k | return Status::OK(); |
491 | 14.2k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.50k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.50k | auto call = [&](const auto& type) -> bool { | 474 | 1.50k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.50k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.50k | block, result, col_left, col_right); | 477 | 1.50k | return true; | 478 | 1.50k | }; | 479 | | | 480 | 1.50k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.50k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.50k | return Status::OK(); | 491 | 1.50k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 270 | const ColumnWithTypeAndName& col_right) const { | 473 | 270 | auto call = [&](const auto& type) -> bool { | 474 | 270 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 270 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 270 | block, result, col_left, col_right); | 477 | 270 | return true; | 478 | 270 | }; | 479 | | | 480 | 270 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 270 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 270 | return Status::OK(); | 491 | 270 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 9.54k | const ColumnWithTypeAndName& col_right) const { | 473 | 9.54k | auto call = [&](const auto& type) -> bool { | 474 | 9.54k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 9.54k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 9.54k | block, result, col_left, col_right); | 477 | 9.54k | return true; | 478 | 9.54k | }; | 479 | | | 480 | 9.54k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 9.54k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 9.54k | return Status::OK(); | 491 | 9.54k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 291 | const ColumnWithTypeAndName& col_right) const { | 473 | 291 | auto call = [&](const auto& type) -> bool { | 474 | 291 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 291 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 291 | block, result, col_left, col_right); | 477 | 291 | return true; | 478 | 291 | }; | 479 | | | 480 | 291 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 291 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 291 | return Status::OK(); | 491 | 291 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 973 | const ColumnWithTypeAndName& col_right) const { | 473 | 973 | auto call = [&](const auto& type) -> bool { | 474 | 973 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 973 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 973 | block, result, col_left, col_right); | 477 | 973 | return true; | 478 | 973 | }; | 479 | | | 480 | 973 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 973 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 973 | return Status::OK(); | 491 | 973 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.69k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.69k | auto call = [&](const auto& type) -> bool { | 474 | 1.69k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.69k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.69k | block, result, col_left, col_right); | 477 | 1.69k | return true; | 478 | 1.69k | }; | 479 | | | 480 | 1.69k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.69k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.69k | return Status::OK(); | 491 | 1.69k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
494 | 20.6k | const IColumn* c1) const { |
495 | 20.6k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
496 | 20.6k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
497 | 20.6k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
498 | 20.6k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
499 | 20.6k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
501 | 0 | c0->get_name(), c1->get_name(), name); |
502 | 0 | } |
503 | 20.6k | DCHECK(!(c0_const && c1_const)); |
504 | 20.6k | const ColumnString::Chars* c0_const_chars = nullptr; |
505 | 20.6k | const ColumnString::Chars* c1_const_chars = nullptr; |
506 | 20.6k | ColumnString::Offset c0_const_size = 0; |
507 | 20.6k | ColumnString::Offset c1_const_size = 0; |
508 | | |
509 | 20.6k | if (c0_const) { |
510 | 6 | const ColumnString* c0_const_string = |
511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
512 | | |
513 | 6 | if (c0_const_string) { |
514 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
516 | 6 | } else { |
517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
518 | 0 | c0->get_name(), name); |
519 | 0 | } |
520 | 6 | } |
521 | | |
522 | 20.6k | if (c1_const) { |
523 | 18.9k | const ColumnString* c1_const_string = |
524 | 18.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 18.9k | if (c1_const_string) { |
527 | 18.9k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 18.9k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 18.9k | } else { |
530 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 1 | c1->get_name(), name); |
532 | 1 | } |
533 | 18.9k | } |
534 | | |
535 | 20.6k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
536 | | |
537 | 20.6k | auto c_res = ColumnUInt8::create(); |
538 | 20.6k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
539 | 20.6k | vec_res.resize(c0->size()); |
540 | | |
541 | 20.6k | if (c0_string && c1_string) { |
542 | 1.74k | StringImpl::string_vector_string_vector( |
543 | 1.74k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 1.74k | c1_string->get_offsets(), vec_res); |
545 | 18.9k | } else if (c0_string && c1_const) { |
546 | 18.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 18.9k | *c1_const_chars, c1_const_size, vec_res); |
548 | 18.9k | } else if (c0_const && c1_string) { |
549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
551 | 6 | vec_res); |
552 | 18.4E | } else { |
553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
554 | 18.4E | c0->get_name(), c1->get_name(), name); |
555 | 18.4E | } |
556 | 20.6k | block.replace_by_position(result, std::move(c_res)); |
557 | 20.6k | return Status::OK(); |
558 | 20.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 17.5k | const IColumn* c1) const { | 495 | 17.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 17.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 17.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 17.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 17.5k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 17.5k | DCHECK(!(c0_const && c1_const)); | 504 | 17.5k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 17.5k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 17.5k | ColumnString::Offset c0_const_size = 0; | 507 | 17.5k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 17.5k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 17.5k | if (c1_const) { | 523 | 16.4k | const ColumnString* c1_const_string = | 524 | 16.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 16.4k | if (c1_const_string) { | 527 | 16.4k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 16.4k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 16.4k | } else { | 530 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 1 | c1->get_name(), name); | 532 | 1 | } | 533 | 16.4k | } | 534 | | | 535 | 17.5k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 17.5k | auto c_res = ColumnUInt8::create(); | 538 | 17.5k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 17.5k | vec_res.resize(c0->size()); | 540 | | | 541 | 17.5k | if (c0_string && c1_string) { | 542 | 1.12k | StringImpl::string_vector_string_vector( | 543 | 1.12k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 1.12k | c1_string->get_offsets(), vec_res); | 545 | 16.4k | } else if (c0_string && c1_const) { | 546 | 16.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 16.4k | *c1_const_chars, c1_const_size, vec_res); | 548 | 18.4E | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 18.4E | } else { | 553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 18.4E | c0->get_name(), c1->get_name(), name); | 555 | 18.4E | } | 556 | 17.5k | block.replace_by_position(result, std::move(c_res)); | 557 | 17.5k | return Status::OK(); | 558 | 17.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 1.27k | const IColumn* c1) const { | 495 | 1.27k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 1.27k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 1.27k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 1.27k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 1.27k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 1.27k | DCHECK(!(c0_const && c1_const)); | 504 | 1.27k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 1.27k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 1.27k | ColumnString::Offset c0_const_size = 0; | 507 | 1.27k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 1.27k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 1.27k | if (c1_const) { | 523 | 1.25k | const ColumnString* c1_const_string = | 524 | 1.25k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 1.25k | if (c1_const_string) { | 527 | 1.25k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 1.25k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 1.25k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 1.25k | } | 534 | | | 535 | 1.27k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 1.27k | auto c_res = ColumnUInt8::create(); | 538 | 1.27k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 1.27k | vec_res.resize(c0->size()); | 540 | | | 541 | 1.28k | if (c0_string && c1_string) { | 542 | 25 | StringImpl::string_vector_string_vector( | 543 | 25 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 25 | c1_string->get_offsets(), vec_res); | 545 | 1.25k | } else if (c0_string && c1_const) { | 546 | 1.25k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 1.25k | *c1_const_chars, c1_const_size, vec_res); | 548 | 18.4E | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 18.4E | } else { | 553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 18.4E | c0->get_name(), c1->get_name(), name); | 555 | 18.4E | } | 556 | 1.28k | block.replace_by_position(result, std::move(c_res)); | 557 | 1.28k | return Status::OK(); | 558 | 1.27k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 190 | const IColumn* c1) const { | 495 | 190 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 190 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 190 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 190 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 190 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 190 | DCHECK(!(c0_const && c1_const)); | 504 | 190 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 190 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 190 | ColumnString::Offset c0_const_size = 0; | 507 | 190 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 190 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 190 | if (c1_const) { | 523 | 188 | const ColumnString* c1_const_string = | 524 | 188 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 188 | if (c1_const_string) { | 527 | 188 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 188 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 188 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 188 | } | 534 | | | 535 | 190 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 190 | auto c_res = ColumnUInt8::create(); | 538 | 190 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 190 | vec_res.resize(c0->size()); | 540 | | | 541 | 190 | if (c0_string && c1_string) { | 542 | 2 | StringImpl::string_vector_string_vector( | 543 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 2 | c1_string->get_offsets(), vec_res); | 545 | 188 | } else if (c0_string && c1_const) { | 546 | 188 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 188 | *c1_const_chars, c1_const_size, vec_res); | 548 | 188 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 190 | block.replace_by_position(result, std::move(c_res)); | 557 | 190 | return Status::OK(); | 558 | 190 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 483 | const IColumn* c1) const { | 495 | 483 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 483 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 483 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 483 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 483 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 483 | DCHECK(!(c0_const && c1_const)); | 504 | 483 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 483 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 483 | ColumnString::Offset c0_const_size = 0; | 507 | 483 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 483 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 483 | if (c1_const) { | 523 | 404 | const ColumnString* c1_const_string = | 524 | 404 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 404 | if (c1_const_string) { | 527 | 404 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 404 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 404 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 404 | } | 534 | | | 535 | 483 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 483 | auto c_res = ColumnUInt8::create(); | 538 | 483 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 483 | vec_res.resize(c0->size()); | 540 | | | 541 | 483 | if (c0_string && c1_string) { | 542 | 79 | StringImpl::string_vector_string_vector( | 543 | 79 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 79 | c1_string->get_offsets(), vec_res); | 545 | 404 | } else if (c0_string && c1_const) { | 546 | 404 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 404 | *c1_const_chars, c1_const_size, vec_res); | 548 | 404 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 483 | block.replace_by_position(result, std::move(c_res)); | 557 | 483 | return Status::OK(); | 558 | 483 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 600 | const IColumn* c1) const { | 495 | 600 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 600 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 600 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 600 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 600 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 600 | DCHECK(!(c0_const && c1_const)); | 504 | 600 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 600 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 600 | ColumnString::Offset c0_const_size = 0; | 507 | 600 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 600 | if (c0_const) { | 510 | 6 | const ColumnString* c0_const_string = | 511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | | | 513 | 6 | if (c0_const_string) { | 514 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 6 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 6 | } | 521 | | | 522 | 600 | if (c1_const) { | 523 | 181 | const ColumnString* c1_const_string = | 524 | 181 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 181 | if (c1_const_string) { | 527 | 181 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 181 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 181 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 181 | } | 534 | | | 535 | 600 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 600 | auto c_res = ColumnUInt8::create(); | 538 | 600 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 600 | vec_res.resize(c0->size()); | 540 | | | 541 | 600 | if (c0_string && c1_string) { | 542 | 413 | StringImpl::string_vector_string_vector( | 543 | 413 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 413 | c1_string->get_offsets(), vec_res); | 545 | 413 | } else if (c0_string && c1_const) { | 546 | 181 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 181 | *c1_const_chars, c1_const_size, vec_res); | 548 | 181 | } else if (c0_const && c1_string) { | 549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 6 | vec_res); | 552 | 6 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 600 | block.replace_by_position(result, std::move(c_res)); | 557 | 600 | return Status::OK(); | 558 | 600 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 577 | const IColumn* c1) const { | 495 | 577 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 577 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 577 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 577 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 577 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 577 | DCHECK(!(c0_const && c1_const)); | 504 | 577 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 577 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 577 | ColumnString::Offset c0_const_size = 0; | 507 | 577 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 577 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 577 | if (c1_const) { | 523 | 480 | const ColumnString* c1_const_string = | 524 | 480 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 480 | if (c1_const_string) { | 527 | 480 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 480 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 480 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 480 | } | 534 | | | 535 | 577 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 577 | auto c_res = ColumnUInt8::create(); | 538 | 577 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 577 | vec_res.resize(c0->size()); | 540 | | | 541 | 577 | if (c0_string && c1_string) { | 542 | 97 | StringImpl::string_vector_string_vector( | 543 | 97 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 97 | c1_string->get_offsets(), vec_res); | 545 | 480 | } else if (c0_string && c1_const) { | 546 | 480 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 480 | *c1_const_chars, c1_const_size, vec_res); | 548 | 480 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 577 | block.replace_by_position(result, std::move(c_res)); | 557 | 577 | return Status::OK(); | 558 | 577 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 162 | const IColumn* c1) const { |
562 | 162 | bool c0_const = is_column_const(*c0); |
563 | 162 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 162 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 162 | auto c_res = ColumnUInt8::create(); |
568 | 162 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 162 | vec_res.resize(c0->size()); |
570 | | |
571 | 162 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 162 | } else if (c1_const) { |
574 | 153 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 153 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 162 | block.replace_by_position(result, std::move(c_res)); |
580 | 162 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 17 | const IColumn* c1) const { | 562 | 17 | bool c0_const = is_column_const(*c0); | 563 | 17 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 17 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 17 | auto c_res = ColumnUInt8::create(); | 568 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 17 | vec_res.resize(c0->size()); | 570 | | | 571 | 17 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 17 | } else if (c1_const) { | 574 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 13 | } else { | 576 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 4 | } | 578 | | | 579 | 17 | block.replace_by_position(result, std::move(c_res)); | 580 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 8 | const IColumn* c1) const { | 562 | 8 | bool c0_const = is_column_const(*c0); | 563 | 8 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 8 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 8 | auto c_res = ColumnUInt8::create(); | 568 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 8 | vec_res.resize(c0->size()); | 570 | | | 571 | 8 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 8 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 8 | block.replace_by_position(result, std::move(c_res)); | 580 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 9 | const IColumn* c1) const { | 562 | 9 | bool c0_const = is_column_const(*c0); | 563 | 9 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 9 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 9 | auto c_res = ColumnUInt8::create(); | 568 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 9 | vec_res.resize(c0->size()); | 570 | | | 571 | 9 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 9 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 9 | block.replace_by_position(result, std::move(c_res)); | 580 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 64 | const IColumn* c1) const { | 562 | 64 | bool c0_const = is_column_const(*c0); | 563 | 64 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 64 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 64 | auto c_res = ColumnUInt8::create(); | 568 | 64 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 64 | vec_res.resize(c0->size()); | 570 | | | 571 | 64 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 64 | } else if (c1_const) { | 574 | 63 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 63 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 64 | block.replace_by_position(result, std::move(c_res)); | 580 | 64 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 11 | const IColumn* c1) const { | 562 | 11 | bool c0_const = is_column_const(*c0); | 563 | 11 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 11 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 11 | auto c_res = ColumnUInt8::create(); | 568 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 11 | vec_res.resize(c0->size()); | 570 | | | 571 | 11 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 11 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 3 | } | 578 | | | 579 | 11 | block.replace_by_position(result, std::move(c_res)); | 580 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 53 | const IColumn* c1) const { | 562 | 53 | bool c0_const = is_column_const(*c0); | 563 | 53 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 53 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 53 | auto c_res = ColumnUInt8::create(); | 568 | 53 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 53 | vec_res.resize(c0->size()); | 570 | | | 571 | 53 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 53 | } else if (c1_const) { | 574 | 53 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 53 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 53 | block.replace_by_position(result, std::move(c_res)); | 580 | 53 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 162 | const ColumnWithTypeAndName& c1) const { |
584 | 162 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 162 | return Status::OK(); |
586 | 162 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 17 | const ColumnWithTypeAndName& c1) const { | 584 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 17 | return Status::OK(); | 586 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 8 | const ColumnWithTypeAndName& c1) const { | 584 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 8 | return Status::OK(); | 586 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 9 | const ColumnWithTypeAndName& c1) const { | 584 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 9 | return Status::OK(); | 586 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 64 | const ColumnWithTypeAndName& c1) const { | 584 | 64 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 64 | return Status::OK(); | 586 | 64 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 11 | const ColumnWithTypeAndName& c1) const { | 584 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 11 | return Status::OK(); | 586 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 53 | const ColumnWithTypeAndName& c1) const { | 584 | 53 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 53 | return Status::OK(); | 586 | 53 | } |
|
587 | | |
588 | | public: |
589 | 219 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 61 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 36 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
|
590 | | |
591 | 403k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 344k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 1.96k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 23.9k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 11.4k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 3.75k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 17.8k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 18.6k | const VExprSPtrs& arguments) const override { |
595 | 18.6k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 18.6k | DORIS_CHECK(op.has_value()); |
597 | 18.6k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 18.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.34k | const VExprSPtrs& arguments) const override { | 595 | 5.34k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.34k | DORIS_CHECK(op.has_value()); | 597 | 5.34k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.34k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 655 | const VExprSPtrs& arguments) const override { | 595 | 655 | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 655 | DORIS_CHECK(op.has_value()); | 597 | 655 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 655 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 2.66k | const VExprSPtrs& arguments) const override { | 595 | 2.66k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 2.66k | DORIS_CHECK(op.has_value()); | 597 | 2.66k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 2.66k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 3.47k | const VExprSPtrs& arguments) const override { | 595 | 3.47k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 3.47k | DORIS_CHECK(op.has_value()); | 597 | 3.47k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 3.47k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.65k | const VExprSPtrs& arguments) const override { | 595 | 1.65k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.65k | DORIS_CHECK(op.has_value()); | 597 | 1.65k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.65k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 4.90k | const VExprSPtrs& arguments) const override { | 595 | 4.90k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 4.90k | DORIS_CHECK(op.has_value()); | 597 | 4.90k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 4.90k | } |
|
599 | | |
600 | 68.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 68.9k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 69.0k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 68.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 27.4k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 27.4k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 27.4k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 27.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 2.61k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 2.61k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 2.61k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 2.61k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 11.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 11.7k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 11.7k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 11.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 9.88k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 9.88k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 9.89k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 9.88k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 6.66k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 6.66k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 6.66k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 6.66k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 10.6k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 10.6k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 10.6k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 10.6k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 20.4k | const VExprSPtrs& arguments) const override { |
607 | 20.4k | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 20.4k | DORIS_CHECK(op.has_value()); |
609 | 20.4k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 20.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 20.4k | const VExprSPtrs& arguments) const override { | 607 | 20.4k | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 20.4k | DORIS_CHECK(op.has_value()); | 609 | 20.4k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 20.4k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
611 | | |
612 | 29.0k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 29.0k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 29.0k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 29.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 25.6k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 25.6k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 25.6k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 25.6k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 673 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 673 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 673 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 673 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 1.66k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 1.66k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 1.66k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 1.66k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 432 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 432 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 432 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 432 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 489 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 489 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 489 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 489 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 171 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 171 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 171 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 171 | } |
|
616 | | |
617 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
618 | 9 | const VExprSPtrs& arguments) const override { |
619 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); |
620 | 9 | DORIS_CHECK(op.has_value()); |
621 | 9 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
622 | 9 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 618 | 9 | const VExprSPtrs& arguments) const override { | 619 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 620 | 9 | DORIS_CHECK(op.has_value()); | 621 | 9 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 622 | 9 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
623 | | |
624 | 4.26k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 4.26k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 4.27k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 4.26k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 2.47k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 2.47k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 2.47k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 2.47k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 348 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 348 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 348 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 348 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 847 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 847 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 847 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 847 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 215 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 215 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 215 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 215 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 259 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 259 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 260 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 259 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 122 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 122 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 122 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 122 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 403k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 403k | return std::make_shared<DataTypeUInt8>(); |
632 | 403k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 344k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 344k | return std::make_shared<DataTypeUInt8>(); | 632 | 344k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 1.95k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 1.95k | return std::make_shared<DataTypeUInt8>(); | 632 | 1.95k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 23.9k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 23.9k | return std::make_shared<DataTypeUInt8>(); | 632 | 23.9k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 11.4k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 11.4k | return std::make_shared<DataTypeUInt8>(); | 632 | 11.4k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 3.74k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 3.74k | return std::make_shared<DataTypeUInt8>(); | 632 | 3.74k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 17.8k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 17.8k | return std::make_shared<DataTypeUInt8>(); | 632 | 17.8k | } |
|
633 | | |
634 | | Status evaluate_inverted_index( |
635 | | const ColumnsWithTypeAndName& arguments, |
636 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
637 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
638 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
639 | 1.35k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.35k | DCHECK(arguments.size() == 1); |
641 | 1.35k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.35k | DCHECK(iterators.size() == 1); |
643 | 1.35k | auto* iter = iterators[0]; |
644 | 1.35k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.35k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.35k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 310 | return Status::OK(); |
650 | 310 | } |
651 | 1.04k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.04k | std::string_view name_view(name); |
653 | 1.04k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 727 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 727 | } else if (name_view == NameLess::name) { |
656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 244 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 163 | } else if (name_view == NameGreater::name) { |
660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 18.4E | } else { |
664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 18.4E | } |
666 | | |
667 | 1.05k | if (segment_v2::is_range_query(query_type) && |
668 | 1.05k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 917 | Field param_value; |
673 | 917 | arguments[0].column->get(0, param_value); |
674 | 917 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 915 | segment_v2::InvertedIndexParam param; |
678 | 915 | param.column_name = data_type_with_name.first; |
679 | 915 | param.column_type = data_type_with_name.second; |
680 | 915 | param.query_value = param_value; |
681 | 915 | param.query_type = query_type; |
682 | 915 | param.num_rows = num_rows; |
683 | 915 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 915 | param.analyzer_ctx = analyzer_ctx; |
685 | 915 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 759 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 759 | if (iter->has_null()) { |
688 | 758 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 758 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 758 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 758 | } |
692 | 759 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 759 | bitmap_result = result; |
694 | 759 | bitmap_result.mask_out_null(); |
695 | | |
696 | 759 | if (name_view == NameNotEquals::name) { |
697 | 59 | roaring::Roaring full_result; |
698 | 59 | full_result.addRange(0, num_rows); |
699 | 59 | bitmap_result.op_not(&full_result); |
700 | 59 | } |
701 | | |
702 | 759 | return Status::OK(); |
703 | 759 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 701 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 701 | DCHECK(arguments.size() == 1); | 641 | 701 | DCHECK(data_type_with_names.size() == 1); | 642 | 701 | DCHECK(iterators.size() == 1); | 643 | 701 | auto* iter = iterators[0]; | 644 | 701 | auto data_type_with_name = data_type_with_names[0]; | 645 | 701 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 701 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 42 | return Status::OK(); | 650 | 42 | } | 651 | 659 | segment_v2::InvertedIndexQueryType query_type; | 652 | 659 | std::string_view name_view(name); | 653 | 661 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 661 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 18.4E | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 18.4E | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 661 | if (segment_v2::is_range_query(query_type) && | 668 | 661 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 661 | Field param_value; | 673 | 661 | arguments[0].column->get(0, param_value); | 674 | 661 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 659 | segment_v2::InvertedIndexParam param; | 678 | 659 | param.column_name = data_type_with_name.first; | 679 | 659 | param.column_type = data_type_with_name.second; | 680 | 659 | param.query_value = param_value; | 681 | 659 | param.query_type = query_type; | 682 | 659 | param.num_rows = num_rows; | 683 | 659 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 659 | param.analyzer_ctx = analyzer_ctx; | 685 | 659 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 610 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 610 | if (iter->has_null()) { | 688 | 609 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 609 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 609 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 609 | } | 692 | 610 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 610 | bitmap_result = result; | 694 | 610 | bitmap_result.mask_out_null(); | 695 | | | 696 | 610 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 610 | return Status::OK(); | 703 | 610 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 72 | DCHECK(arguments.size() == 1); | 641 | 72 | DCHECK(data_type_with_names.size() == 1); | 642 | 72 | DCHECK(iterators.size() == 1); | 643 | 72 | auto* iter = iterators[0]; | 644 | 72 | auto data_type_with_name = data_type_with_names[0]; | 645 | 72 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 6 | return Status::OK(); | 650 | 6 | } | 651 | 66 | segment_v2::InvertedIndexQueryType query_type; | 652 | 66 | std::string_view name_view(name); | 653 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 66 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 0 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 66 | if (segment_v2::is_range_query(query_type) && | 668 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 66 | Field param_value; | 673 | 66 | arguments[0].column->get(0, param_value); | 674 | 66 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 66 | segment_v2::InvertedIndexParam param; | 678 | 66 | param.column_name = data_type_with_name.first; | 679 | 66 | param.column_type = data_type_with_name.second; | 680 | 66 | param.query_value = param_value; | 681 | 66 | param.query_type = query_type; | 682 | 66 | param.num_rows = num_rows; | 683 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 66 | param.analyzer_ctx = analyzer_ctx; | 685 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 59 | if (iter->has_null()) { | 688 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 59 | } | 692 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 59 | bitmap_result = result; | 694 | 59 | bitmap_result.mask_out_null(); | 695 | | | 696 | 59 | if (name_view == NameNotEquals::name) { | 697 | 59 | roaring::Roaring full_result; | 698 | 59 | full_result.addRange(0, num_rows); | 699 | 59 | bitmap_result.op_not(&full_result); | 700 | 59 | } | 701 | | | 702 | 59 | return Status::OK(); | 703 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 112 | DCHECK(arguments.size() == 1); | 641 | 112 | DCHECK(data_type_with_names.size() == 1); | 642 | 112 | DCHECK(iterators.size() == 1); | 643 | 112 | auto* iter = iterators[0]; | 644 | 112 | auto data_type_with_name = data_type_with_names[0]; | 645 | 112 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 39 | return Status::OK(); | 650 | 39 | } | 651 | 73 | segment_v2::InvertedIndexQueryType query_type; | 652 | 73 | std::string_view name_view(name); | 653 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 73 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 73 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 73 | } else if (name_view == NameGreater::name) { | 660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 73 | if (segment_v2::is_range_query(query_type) && | 668 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 17 | return Status::OK(); | 671 | 17 | } | 672 | 56 | Field param_value; | 673 | 56 | arguments[0].column->get(0, param_value); | 674 | 56 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 56 | segment_v2::InvertedIndexParam param; | 678 | 56 | param.column_name = data_type_with_name.first; | 679 | 56 | param.column_type = data_type_with_name.second; | 680 | 56 | param.query_value = param_value; | 681 | 56 | param.query_type = query_type; | 682 | 56 | param.num_rows = num_rows; | 683 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 56 | param.analyzer_ctx = analyzer_ctx; | 685 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 37 | if (iter->has_null()) { | 688 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 37 | } | 692 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 37 | bitmap_result = result; | 694 | 37 | bitmap_result.mask_out_null(); | 695 | | | 696 | 37 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 37 | return Status::OK(); | 703 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 179 | DCHECK(arguments.size() == 1); | 641 | 179 | DCHECK(data_type_with_names.size() == 1); | 642 | 179 | DCHECK(iterators.size() == 1); | 643 | 179 | auto* iter = iterators[0]; | 644 | 179 | auto data_type_with_name = data_type_with_names[0]; | 645 | 179 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 86 | return Status::OK(); | 650 | 86 | } | 651 | 93 | segment_v2::InvertedIndexQueryType query_type; | 652 | 93 | std::string_view name_view(name); | 653 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 93 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 93 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 93 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 93 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 93 | if (segment_v2::is_range_query(query_type) && | 668 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 47 | return Status::OK(); | 671 | 47 | } | 672 | 46 | Field param_value; | 673 | 46 | arguments[0].column->get(0, param_value); | 674 | 46 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 46 | segment_v2::InvertedIndexParam param; | 678 | 46 | param.column_name = data_type_with_name.first; | 679 | 46 | param.column_type = data_type_with_name.second; | 680 | 46 | param.query_value = param_value; | 681 | 46 | param.query_type = query_type; | 682 | 46 | param.num_rows = num_rows; | 683 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 46 | param.analyzer_ctx = analyzer_ctx; | 685 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 5 | if (iter->has_null()) { | 688 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 5 | } | 692 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 5 | bitmap_result = result; | 694 | 5 | bitmap_result.mask_out_null(); | 695 | | | 696 | 5 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 5 | return Status::OK(); | 703 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 118 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 118 | DCHECK(arguments.size() == 1); | 641 | 118 | DCHECK(data_type_with_names.size() == 1); | 642 | 118 | DCHECK(iterators.size() == 1); | 643 | 118 | auto* iter = iterators[0]; | 644 | 118 | auto data_type_with_name = data_type_with_names[0]; | 645 | 118 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 118 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 43 | return Status::OK(); | 650 | 43 | } | 651 | 75 | segment_v2::InvertedIndexQueryType query_type; | 652 | 75 | std::string_view name_view(name); | 653 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 76 | } else if (name_view == NameLess::name) { | 656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 18.4E | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 76 | if (segment_v2::is_range_query(query_type) && | 668 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 18 | return Status::OK(); | 671 | 18 | } | 672 | 58 | Field param_value; | 673 | 58 | arguments[0].column->get(0, param_value); | 674 | 58 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 58 | segment_v2::InvertedIndexParam param; | 678 | 58 | param.column_name = data_type_with_name.first; | 679 | 58 | param.column_type = data_type_with_name.second; | 680 | 58 | param.query_value = param_value; | 681 | 58 | param.query_type = query_type; | 682 | 58 | param.num_rows = num_rows; | 683 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 58 | param.analyzer_ctx = analyzer_ctx; | 685 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 39 | if (iter->has_null()) { | 688 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 39 | } | 692 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 39 | bitmap_result = result; | 694 | 39 | bitmap_result.mask_out_null(); | 695 | | | 696 | 39 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 39 | return Status::OK(); | 703 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 175 | DCHECK(arguments.size() == 1); | 641 | 175 | DCHECK(data_type_with_names.size() == 1); | 642 | 175 | DCHECK(iterators.size() == 1); | 643 | 175 | auto* iter = iterators[0]; | 644 | 175 | auto data_type_with_name = data_type_with_names[0]; | 645 | 175 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 94 | return Status::OK(); | 650 | 94 | } | 651 | 81 | segment_v2::InvertedIndexQueryType query_type; | 652 | 81 | std::string_view name_view(name); | 653 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 81 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 81 | } else if (name_view == NameLessOrEquals::name) { | 658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 81 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 81 | if (segment_v2::is_range_query(query_type) && | 668 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 51 | return Status::OK(); | 671 | 51 | } | 672 | 30 | Field param_value; | 673 | 30 | arguments[0].column->get(0, param_value); | 674 | 30 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 30 | segment_v2::InvertedIndexParam param; | 678 | 30 | param.column_name = data_type_with_name.first; | 679 | 30 | param.column_type = data_type_with_name.second; | 680 | 30 | param.query_value = param_value; | 681 | 30 | param.query_type = query_type; | 682 | 30 | param.num_rows = num_rows; | 683 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 30 | param.analyzer_ctx = analyzer_ctx; | 685 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 9 | if (iter->has_null()) { | 688 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 9 | } | 692 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 9 | bitmap_result = result; | 694 | 9 | bitmap_result.mask_out_null(); | 695 | | | 696 | 9 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 9 | return Status::OK(); | 703 | 9 | } |
|
704 | | |
705 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
706 | 214k | uint32_t result, size_t input_rows_count) const override { |
707 | 214k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 214k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 214k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 214k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 214k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 214k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 214k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 214k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
717 | | |
718 | | /// The case when arguments are the same (tautological comparison). Return constant. |
719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
721 | 214k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 214k | col_left_untyped == col_right_untyped) { |
723 | | /// Always true: =, <=, >= |
724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
728 | 0 | block.get_by_position(result).column = |
729 | 0 | DataTypeUInt8() |
730 | 0 | .create_column_const(input_rows_count, |
731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
732 | 0 | ->convert_to_full_column_if_const(); |
733 | 0 | return Status::OK(); |
734 | 0 | } else { |
735 | 0 | block.get_by_position(result).column = |
736 | 0 | DataTypeUInt8() |
737 | 0 | .create_column_const(input_rows_count, |
738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
739 | 0 | ->convert_to_full_column_if_const(); |
740 | 0 | return Status::OK(); |
741 | 0 | } |
742 | 0 | } |
743 | | |
744 | 393k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 393k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 393k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 193k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 193k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 193k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 10.6k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 10.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 10.6k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 76.2k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 76.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 76.2k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 24.2k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 24.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 24.2k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 21.1k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 21.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 21.1k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 67.4k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 67.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 67.4k | }; |
|
747 | | |
748 | 214k | if (can_compare(left_type->get_primitive_type()) && |
749 | 214k | can_compare(right_type->get_primitive_type())) { |
750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
751 | 179k | if (!left_type->equals_ignore_precision(*right_type)) { |
752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
753 | 0 | get_name(), left_type->get_name(), |
754 | 0 | right_type->get_name()); |
755 | 0 | } |
756 | 179k | } |
757 | | |
758 | 214k | auto compare_type = left_type->get_primitive_type(); |
759 | 214k | switch (compare_type) { |
760 | 1.11k | case TYPE_BOOLEAN: |
761 | 1.11k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 21.3k | case TYPE_DATEV2: |
763 | 21.3k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 1.84k | case TYPE_DATETIMEV2: |
765 | 1.84k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 17 | case TYPE_TIMESTAMPTZ: |
767 | 17 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 9.32k | case TYPE_TINYINT: |
769 | 9.32k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 3.30k | case TYPE_SMALLINT: |
771 | 3.30k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 109k | case TYPE_INT: |
773 | 109k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 27.9k | case TYPE_BIGINT: |
775 | 27.9k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 749 | case TYPE_LARGEINT: |
777 | 749 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 62 | case TYPE_IPV4: |
779 | 62 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
780 | 37 | case TYPE_IPV6: |
781 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
782 | 773 | case TYPE_FLOAT: |
783 | 773 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 3.09k | case TYPE_DOUBLE: |
785 | 3.09k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
786 | 4 | case TYPE_TIMEV2: |
787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
788 | 0 | case TYPE_DECIMALV2: |
789 | 425 | case TYPE_DECIMAL32: |
790 | 10.7k | case TYPE_DECIMAL64: |
791 | 14.1k | case TYPE_DECIMAL128I: |
792 | 14.2k | case TYPE_DECIMAL256: |
793 | 14.2k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 14.2k | col_with_type_and_name_right); |
795 | 1.47k | case TYPE_CHAR: |
796 | 8.98k | case TYPE_VARCHAR: |
797 | 20.6k | case TYPE_STRING: |
798 | 20.6k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 162 | default: |
800 | 162 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 162 | col_with_type_and_name_right); |
802 | 214k | } |
803 | 0 | return Status::OK(); |
804 | 214k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 106k | uint32_t result, size_t input_rows_count) const override { | 707 | 106k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 106k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 106k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 106k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 106k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 106k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 106k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 106k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 106k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 106k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 106k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 106k | }; | 747 | | | 748 | 106k | if (can_compare(left_type->get_primitive_type()) && | 749 | 106k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 87.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 87.4k | } | 757 | | | 758 | 106k | auto compare_type = left_type->get_primitive_type(); | 759 | 106k | switch (compare_type) { | 760 | 856 | case TYPE_BOOLEAN: | 761 | 856 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 863 | case TYPE_DATEV2: | 763 | 863 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 548 | case TYPE_DATETIMEV2: | 765 | 548 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 4 | case TYPE_TIMESTAMPTZ: | 767 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 5.93k | case TYPE_TINYINT: | 769 | 5.93k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.02k | case TYPE_SMALLINT: | 771 | 1.02k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 61.5k | case TYPE_INT: | 773 | 61.5k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 15.5k | case TYPE_BIGINT: | 775 | 15.5k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 131 | case TYPE_LARGEINT: | 777 | 131 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 19 | case TYPE_IPV4: | 779 | 19 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 19 | case TYPE_IPV6: | 781 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 98 | case TYPE_FLOAT: | 783 | 98 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 904 | case TYPE_DOUBLE: | 785 | 904 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 4 | case TYPE_TIMEV2: | 787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 196 | case TYPE_DECIMAL32: | 790 | 421 | case TYPE_DECIMAL64: | 791 | 1.47k | case TYPE_DECIMAL128I: | 792 | 1.50k | case TYPE_DECIMAL256: | 793 | 1.50k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.50k | col_with_type_and_name_right); | 795 | 1.15k | case TYPE_CHAR: | 796 | 7.79k | case TYPE_VARCHAR: | 797 | 17.5k | case TYPE_STRING: | 798 | 17.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 17 | default: | 800 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 17 | col_with_type_and_name_right); | 802 | 106k | } | 803 | 0 | return Status::OK(); | 804 | 106k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 6.11k | uint32_t result, size_t input_rows_count) const override { | 707 | 6.11k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 6.11k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 6.11k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 6.11k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 6.11k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 6.11k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 6.11k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 6.11k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 6.11k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 6.11k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 6.11k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 6.11k | }; | 747 | | | 748 | 6.11k | if (can_compare(left_type->get_primitive_type()) && | 749 | 6.11k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 4.55k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 4.55k | } | 757 | | | 758 | 6.11k | auto compare_type = left_type->get_primitive_type(); | 759 | 6.11k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 76 | case TYPE_DATEV2: | 763 | 76 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 2 | case TYPE_DATETIMEV2: | 765 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 0 | case TYPE_TIMESTAMPTZ: | 767 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 88 | case TYPE_TINYINT: | 769 | 88 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 13 | case TYPE_SMALLINT: | 771 | 13 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.20k | case TYPE_INT: | 773 | 2.20k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 2.06k | case TYPE_BIGINT: | 775 | 2.06k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 0 | case TYPE_LARGEINT: | 777 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 0 | case TYPE_IPV4: | 779 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 48 | case TYPE_FLOAT: | 783 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 60 | case TYPE_DOUBLE: | 785 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 0 | case TYPE_DECIMAL32: | 790 | 64 | case TYPE_DECIMAL64: | 791 | 240 | case TYPE_DECIMAL128I: | 792 | 270 | case TYPE_DECIMAL256: | 793 | 270 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 270 | col_with_type_and_name_right); | 795 | 5 | case TYPE_CHAR: | 796 | 165 | case TYPE_VARCHAR: | 797 | 1.28k | case TYPE_STRING: | 798 | 1.28k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 8 | default: | 800 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 8 | col_with_type_and_name_right); | 802 | 6.11k | } | 803 | 0 | return Status::OK(); | 804 | 6.11k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 42.9k | uint32_t result, size_t input_rows_count) const override { | 707 | 42.9k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 42.9k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 42.9k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 42.9k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 42.9k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 42.9k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 42.9k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 42.9k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 42.9k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 42.9k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 42.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 42.9k | }; | 747 | | | 748 | 42.9k | if (can_compare(left_type->get_primitive_type()) && | 749 | 42.9k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 33.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 33.2k | } | 757 | | | 758 | 42.9k | auto compare_type = left_type->get_primitive_type(); | 759 | 42.9k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.90k | case TYPE_DATEV2: | 763 | 1.90k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 62 | case TYPE_DATETIMEV2: | 765 | 62 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 1.05k | case TYPE_TINYINT: | 769 | 1.05k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.80k | case TYPE_SMALLINT: | 771 | 1.80k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 18.4k | case TYPE_INT: | 773 | 18.4k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 7.98k | case TYPE_BIGINT: | 775 | 7.98k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 249 | case TYPE_LARGEINT: | 777 | 249 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 4 | case TYPE_IPV4: | 779 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 228 | case TYPE_FLOAT: | 783 | 228 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 1.46k | case TYPE_DOUBLE: | 785 | 1.46k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 27 | case TYPE_DECIMAL32: | 790 | 8.53k | case TYPE_DECIMAL64: | 791 | 9.54k | case TYPE_DECIMAL128I: | 792 | 9.54k | case TYPE_DECIMAL256: | 793 | 9.54k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 9.54k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 190 | case TYPE_STRING: | 798 | 190 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 9 | default: | 800 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 9 | col_with_type_and_name_right); | 802 | 42.9k | } | 803 | 0 | return Status::OK(); | 804 | 42.9k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 12.5k | uint32_t result, size_t input_rows_count) const override { | 707 | 12.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 12.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 12.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 12.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 12.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 12.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 12.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 12.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 12.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 12.5k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 12.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 12.5k | }; | 747 | | | 748 | 12.5k | if (can_compare(left_type->get_primitive_type()) && | 749 | 12.5k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 11.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 11.7k | } | 757 | | | 758 | 12.5k | auto compare_type = left_type->get_primitive_type(); | 759 | 12.5k | switch (compare_type) { | 760 | 78 | case TYPE_BOOLEAN: | 761 | 78 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.39k | case TYPE_DATEV2: | 763 | 1.39k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 469 | case TYPE_DATETIMEV2: | 765 | 469 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 72 | case TYPE_TINYINT: | 769 | 72 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 95 | case TYPE_SMALLINT: | 771 | 95 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 8.89k | case TYPE_INT: | 773 | 8.89k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 327 | case TYPE_BIGINT: | 775 | 327 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 36 | case TYPE_LARGEINT: | 777 | 36 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 11 | case TYPE_IPV4: | 779 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 115 | case TYPE_FLOAT: | 783 | 115 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 178 | case TYPE_DOUBLE: | 785 | 178 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 5 | case TYPE_DECIMAL32: | 790 | 191 | case TYPE_DECIMAL64: | 791 | 270 | case TYPE_DECIMAL128I: | 792 | 291 | case TYPE_DECIMAL256: | 793 | 291 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 291 | col_with_type_and_name_right); | 795 | 44 | case TYPE_CHAR: | 796 | 263 | case TYPE_VARCHAR: | 797 | 483 | case TYPE_STRING: | 798 | 483 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 64 | default: | 800 | 64 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 64 | col_with_type_and_name_right); | 802 | 12.5k | } | 803 | 0 | return Status::OK(); | 804 | 12.5k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 11.3k | uint32_t result, size_t input_rows_count) const override { | 707 | 11.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 11.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 11.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 11.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 11.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 11.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 11.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 11.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 11.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 11.3k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 11.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 11.3k | }; | 747 | | | 748 | 11.3k | if (can_compare(left_type->get_primitive_type()) && | 749 | 11.3k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 9.79k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 9.79k | } | 757 | | | 758 | 11.3k | auto compare_type = left_type->get_primitive_type(); | 759 | 11.3k | switch (compare_type) { | 760 | 85 | case TYPE_BOOLEAN: | 761 | 85 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.43k | case TYPE_DATEV2: | 763 | 2.43k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 504 | case TYPE_DATETIMEV2: | 765 | 504 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 4 | case TYPE_TIMESTAMPTZ: | 767 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.09k | case TYPE_TINYINT: | 769 | 2.09k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 257 | case TYPE_SMALLINT: | 771 | 257 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.31k | case TYPE_INT: | 773 | 2.31k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.25k | case TYPE_BIGINT: | 775 | 1.25k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 283 | case TYPE_LARGEINT: | 777 | 283 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 16 | case TYPE_IPV6: | 781 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 173 | case TYPE_FLOAT: | 783 | 173 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 363 | case TYPE_DOUBLE: | 785 | 363 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 193 | case TYPE_DECIMAL32: | 790 | 432 | case TYPE_DECIMAL64: | 791 | 972 | case TYPE_DECIMAL128I: | 792 | 973 | case TYPE_DECIMAL256: | 793 | 973 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 973 | col_with_type_and_name_right); | 795 | 182 | case TYPE_CHAR: | 796 | 359 | case TYPE_VARCHAR: | 797 | 599 | case TYPE_STRING: | 798 | 599 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 11 | default: | 800 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 11 | col_with_type_and_name_right); | 802 | 11.3k | } | 803 | 0 | return Status::OK(); | 804 | 11.3k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 34.8k | uint32_t result, size_t input_rows_count) const override { | 707 | 34.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 34.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 34.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 34.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 34.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 34.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 34.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 34.8k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 34.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 34.8k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 34.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 34.8k | }; | 747 | | | 748 | 34.8k | if (can_compare(left_type->get_primitive_type()) && | 749 | 34.8k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 32.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 32.6k | } | 757 | | | 758 | 34.8k | auto compare_type = left_type->get_primitive_type(); | 759 | 34.8k | switch (compare_type) { | 760 | 93 | case TYPE_BOOLEAN: | 761 | 93 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 14.6k | case TYPE_DATEV2: | 763 | 14.6k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 259 | case TYPE_DATETIMEV2: | 765 | 259 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 85 | case TYPE_TINYINT: | 769 | 85 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 118 | case TYPE_SMALLINT: | 771 | 118 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 16.2k | case TYPE_INT: | 773 | 16.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 809 | case TYPE_BIGINT: | 775 | 809 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 50 | case TYPE_LARGEINT: | 777 | 50 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 10 | case TYPE_IPV4: | 779 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 111 | case TYPE_FLOAT: | 783 | 111 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 125 | case TYPE_DOUBLE: | 785 | 125 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 4 | case TYPE_DECIMAL32: | 790 | 1.15k | case TYPE_DECIMAL64: | 791 | 1.68k | case TYPE_DECIMAL128I: | 792 | 1.69k | case TYPE_DECIMAL256: | 793 | 1.69k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.69k | col_with_type_and_name_right); | 795 | 72 | case TYPE_CHAR: | 796 | 326 | case TYPE_VARCHAR: | 797 | 577 | case TYPE_STRING: | 798 | 577 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 53 | default: | 800 | 53 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 53 | col_with_type_and_name_right); | 802 | 34.8k | } | 803 | 0 | return Status::OK(); | 804 | 34.8k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |