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.0k | PaddedPODArray<UInt8>& c) { |
72 | 10.0k | size_t size = a.size(); |
73 | 10.0k | const A* __restrict a_pos = a.data(); |
74 | 10.0k | const B* __restrict b_pos = b.data(); |
75 | 10.0k | UInt8* __restrict c_pos = c.data(); |
76 | 10.0k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 8.50M | while (a_pos < a_end) { |
79 | 8.49M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 8.49M | ++a_pos; |
81 | 8.49M | ++b_pos; |
82 | 8.49M | ++c_pos; |
83 | 8.49M | } |
84 | 10.0k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 73 | PaddedPODArray<UInt8>& c) { | 72 | 73 | size_t size = a.size(); | 73 | 73 | const A* __restrict a_pos = a.data(); | 74 | 73 | const B* __restrict b_pos = b.data(); | 75 | 73 | UInt8* __restrict c_pos = c.data(); | 76 | 73 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 146 | while (a_pos < a_end) { | 79 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 73 | ++a_pos; | 81 | 73 | ++b_pos; | 82 | 73 | ++c_pos; | 83 | 73 | } | 84 | 73 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 583 | PaddedPODArray<UInt8>& c) { | 72 | 583 | size_t size = a.size(); | 73 | 583 | const A* __restrict a_pos = a.data(); | 74 | 583 | const B* __restrict b_pos = b.data(); | 75 | 583 | UInt8* __restrict c_pos = c.data(); | 76 | 583 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.17k | while (a_pos < a_end) { | 79 | 590 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 590 | ++a_pos; | 81 | 590 | ++b_pos; | 82 | 590 | ++c_pos; | 83 | 590 | } | 84 | 583 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 342 | PaddedPODArray<UInt8>& c) { | 72 | 342 | size_t size = a.size(); | 73 | 342 | const A* __restrict a_pos = a.data(); | 74 | 342 | const B* __restrict b_pos = b.data(); | 75 | 342 | UInt8* __restrict c_pos = c.data(); | 76 | 342 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 702 | while (a_pos < a_end) { | 79 | 360 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 360 | ++a_pos; | 81 | 360 | ++b_pos; | 82 | 360 | ++c_pos; | 83 | 360 | } | 84 | 342 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 155 | PaddedPODArray<UInt8>& c) { | 72 | 155 | size_t size = a.size(); | 73 | 155 | const A* __restrict a_pos = a.data(); | 74 | 155 | const B* __restrict b_pos = b.data(); | 75 | 155 | UInt8* __restrict c_pos = c.data(); | 76 | 155 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 452 | while (a_pos < a_end) { | 79 | 297 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 297 | ++a_pos; | 81 | 297 | ++b_pos; | 82 | 297 | ++c_pos; | 83 | 297 | } | 84 | 155 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 82 | PaddedPODArray<UInt8>& c) { | 72 | 82 | size_t size = a.size(); | 73 | 82 | const A* __restrict a_pos = a.data(); | 74 | 82 | const B* __restrict b_pos = b.data(); | 75 | 82 | UInt8* __restrict c_pos = c.data(); | 76 | 82 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 164 | while (a_pos < a_end) { | 79 | 82 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 82 | ++a_pos; | 81 | 82 | ++b_pos; | 82 | 82 | ++c_pos; | 83 | 82 | } | 84 | 82 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.03k | PaddedPODArray<UInt8>& c) { | 72 | 1.03k | size_t size = a.size(); | 73 | 1.03k | const A* __restrict a_pos = a.data(); | 74 | 1.03k | const B* __restrict b_pos = b.data(); | 75 | 1.03k | UInt8* __restrict c_pos = c.data(); | 76 | 1.03k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.50k | while (a_pos < a_end) { | 79 | 2.47k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.47k | ++a_pos; | 81 | 2.47k | ++b_pos; | 82 | 2.47k | ++c_pos; | 83 | 2.47k | } | 84 | 1.03k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_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 | 1.71k | while (a_pos < a_end) { | 79 | 1.43k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.43k | ++a_pos; | 81 | 1.43k | ++b_pos; | 82 | 1.43k | ++c_pos; | 83 | 1.43k | } | 84 | 275 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 79 | PaddedPODArray<UInt8>& c) { | 72 | 79 | size_t size = a.size(); | 73 | 79 | const A* __restrict a_pos = a.data(); | 74 | 79 | const B* __restrict b_pos = b.data(); | 75 | 79 | UInt8* __restrict c_pos = c.data(); | 76 | 79 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 158 | 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 | 79 | } |
_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 | 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 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 82 | PaddedPODArray<UInt8>& c) { | 72 | 82 | size_t size = a.size(); | 73 | 82 | const A* __restrict a_pos = a.data(); | 74 | 82 | const B* __restrict b_pos = b.data(); | 75 | 82 | UInt8* __restrict c_pos = c.data(); | 76 | 82 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 164 | while (a_pos < a_end) { | 79 | 82 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 82 | ++a_pos; | 81 | 82 | ++b_pos; | 82 | 82 | ++c_pos; | 83 | 82 | } | 84 | 82 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 75 | PaddedPODArray<UInt8>& c) { | 72 | 75 | size_t size = a.size(); | 73 | 75 | const A* __restrict a_pos = a.data(); | 74 | 75 | const B* __restrict b_pos = b.data(); | 75 | 75 | UInt8* __restrict c_pos = c.data(); | 76 | 75 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 152 | while (a_pos < a_end) { | 79 | 77 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 77 | ++a_pos; | 81 | 77 | ++b_pos; | 82 | 77 | ++c_pos; | 83 | 77 | } | 84 | 75 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 47 | PaddedPODArray<UInt8>& c) { | 72 | 47 | size_t size = a.size(); | 73 | 47 | const A* __restrict a_pos = a.data(); | 74 | 47 | const B* __restrict b_pos = b.data(); | 75 | 47 | UInt8* __restrict c_pos = c.data(); | 76 | 47 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 77 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 77 | ++a_pos; | 81 | 77 | ++b_pos; | 82 | 77 | ++c_pos; | 83 | 77 | } | 84 | 47 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.14k | PaddedPODArray<UInt8>& c) { | 72 | 1.14k | size_t size = a.size(); | 73 | 1.14k | const A* __restrict a_pos = a.data(); | 74 | 1.14k | const B* __restrict b_pos = b.data(); | 75 | 1.14k | UInt8* __restrict c_pos = c.data(); | 76 | 1.14k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.68M | while (a_pos < a_end) { | 79 | 1.67M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.67M | ++a_pos; | 81 | 1.67M | ++b_pos; | 82 | 1.67M | ++c_pos; | 83 | 1.67M | } | 84 | 1.14k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 388 | PaddedPODArray<UInt8>& c) { | 72 | 388 | size_t size = a.size(); | 73 | 388 | const A* __restrict a_pos = a.data(); | 74 | 388 | const B* __restrict b_pos = b.data(); | 75 | 388 | UInt8* __restrict c_pos = c.data(); | 76 | 388 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 7.57k | while (a_pos < a_end) { | 79 | 7.18k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 7.18k | ++a_pos; | 81 | 7.18k | ++b_pos; | 82 | 7.18k | ++c_pos; | 83 | 7.18k | } | 84 | 388 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE 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.00k | PaddedPODArray<UInt8>& c) { | 72 | 1.00k | size_t size = a.size(); | 73 | 1.00k | const A* __restrict a_pos = a.data(); | 74 | 1.00k | const B* __restrict b_pos = b.data(); | 75 | 1.00k | UInt8* __restrict c_pos = c.data(); | 76 | 1.00k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.82M | while (a_pos < a_end) { | 79 | 3.82M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 3.82M | ++a_pos; | 81 | 3.82M | ++b_pos; | 82 | 3.82M | ++c_pos; | 83 | 3.82M | } | 84 | 1.00k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 8 | PaddedPODArray<UInt8>& c) { | 72 | 8 | size_t size = a.size(); | 73 | 8 | const A* __restrict a_pos = a.data(); | 74 | 8 | const B* __restrict b_pos = b.data(); | 75 | 8 | UInt8* __restrict c_pos = c.data(); | 76 | 8 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 16 | while (a_pos < a_end) { | 79 | 8 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 8 | ++a_pos; | 81 | 8 | ++b_pos; | 82 | 8 | ++c_pos; | 83 | 8 | } | 84 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 38 | PaddedPODArray<UInt8>& c) { | 72 | 38 | size_t size = a.size(); | 73 | 38 | const A* __restrict a_pos = a.data(); | 74 | 38 | const B* __restrict b_pos = b.data(); | 75 | 38 | UInt8* __restrict c_pos = c.data(); | 76 | 38 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 322 | 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 | 38 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 112 | PaddedPODArray<UInt8>& c) { | 72 | 112 | size_t size = a.size(); | 73 | 112 | const A* __restrict a_pos = a.data(); | 74 | 112 | const B* __restrict b_pos = b.data(); | 75 | 112 | UInt8* __restrict c_pos = c.data(); | 76 | 112 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 264 | ++a_pos; | 81 | 264 | ++b_pos; | 82 | 264 | ++c_pos; | 83 | 264 | } | 84 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 82 | PaddedPODArray<UInt8>& c) { | 72 | 82 | size_t size = a.size(); | 73 | 82 | const A* __restrict a_pos = a.data(); | 74 | 82 | const B* __restrict b_pos = b.data(); | 75 | 82 | UInt8* __restrict c_pos = c.data(); | 76 | 82 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 342 | while (a_pos < a_end) { | 79 | 260 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 260 | ++a_pos; | 81 | 260 | ++b_pos; | 82 | 260 | ++c_pos; | 83 | 260 | } | 84 | 82 | } |
_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 | 555 | while (a_pos < a_end) { | 79 | 491 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 491 | ++a_pos; | 81 | 491 | ++b_pos; | 82 | 491 | ++c_pos; | 83 | 491 | } | 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 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 11 | PaddedPODArray<UInt8>& c) { | 72 | 11 | size_t size = a.size(); | 73 | 11 | const A* __restrict a_pos = a.data(); | 74 | 11 | const B* __restrict b_pos = b.data(); | 75 | 11 | UInt8* __restrict c_pos = c.data(); | 76 | 11 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 42 | 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 | 11 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ 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 | 84 | while (a_pos < a_end) { | 79 | 42 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 42 | ++a_pos; | 81 | 42 | ++b_pos; | 82 | 42 | ++c_pos; | 83 | 42 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 61 | PaddedPODArray<UInt8>& c) { | 72 | 61 | size_t size = a.size(); | 73 | 61 | const A* __restrict a_pos = a.data(); | 74 | 61 | const B* __restrict b_pos = b.data(); | 75 | 61 | UInt8* __restrict c_pos = c.data(); | 76 | 61 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 122 | while (a_pos < a_end) { | 79 | 61 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 61 | ++a_pos; | 81 | 61 | ++b_pos; | 82 | 61 | ++c_pos; | 83 | 61 | } | 84 | 61 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_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 | 250 | while (a_pos < a_end) { | 79 | 154 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 154 | ++a_pos; | 81 | 154 | ++b_pos; | 82 | 154 | ++c_pos; | 83 | 154 | } | 84 | 96 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE 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 | 79 | PaddedPODArray<UInt8>& c) { | 72 | 79 | size_t size = a.size(); | 73 | 79 | const A* __restrict a_pos = a.data(); | 74 | 79 | const B* __restrict b_pos = b.data(); | 75 | 79 | UInt8* __restrict c_pos = c.data(); | 76 | 79 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 159 | while (a_pos < a_end) { | 79 | 80 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 80 | ++a_pos; | 81 | 80 | ++b_pos; | 82 | 80 | ++c_pos; | 83 | 80 | } | 84 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 38 | PaddedPODArray<UInt8>& c) { | 72 | 38 | size_t size = a.size(); | 73 | 38 | const A* __restrict a_pos = a.data(); | 74 | 38 | const B* __restrict b_pos = b.data(); | 75 | 38 | UInt8* __restrict c_pos = c.data(); | 76 | 38 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 122 | while (a_pos < a_end) { | 79 | 84 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 84 | ++a_pos; | 81 | 84 | ++b_pos; | 82 | 84 | ++c_pos; | 83 | 84 | } | 84 | 38 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 120 | while (a_pos < a_end) { | 79 | 60 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 60 | ++a_pos; | 81 | 60 | ++b_pos; | 82 | 60 | ++c_pos; | 83 | 60 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_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: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 78 | PaddedPODArray<UInt8>& c) { | 72 | 78 | size_t size = a.size(); | 73 | 78 | const A* __restrict a_pos = a.data(); | 74 | 78 | const B* __restrict b_pos = b.data(); | 75 | 78 | UInt8* __restrict c_pos = c.data(); | 76 | 78 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 156 | while (a_pos < a_end) { | 79 | 78 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 78 | ++a_pos; | 81 | 78 | ++b_pos; | 82 | 78 | ++c_pos; | 83 | 78 | } | 84 | 78 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.81k | PaddedPODArray<UInt8>& c) { | 72 | 1.81k | size_t size = a.size(); | 73 | 1.81k | const A* __restrict a_pos = a.data(); | 74 | 1.81k | const B* __restrict b_pos = b.data(); | 75 | 1.81k | UInt8* __restrict c_pos = c.data(); | 76 | 1.81k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.96M | while (a_pos < a_end) { | 79 | 2.96M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.96M | ++a_pos; | 81 | 2.96M | ++b_pos; | 82 | 2.96M | ++c_pos; | 83 | 2.96M | } | 84 | 1.81k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 213 | PaddedPODArray<UInt8>& c) { | 72 | 213 | size_t size = a.size(); | 73 | 213 | const A* __restrict a_pos = a.data(); | 74 | 213 | const B* __restrict b_pos = b.data(); | 75 | 213 | UInt8* __restrict c_pos = c.data(); | 76 | 213 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 426 | while (a_pos < a_end) { | 79 | 213 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 213 | ++a_pos; | 81 | 213 | ++b_pos; | 82 | 213 | ++c_pos; | 83 | 213 | } | 84 | 213 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 145 | PaddedPODArray<UInt8>& c) { | 72 | 145 | size_t size = a.size(); | 73 | 145 | const A* __restrict a_pos = a.data(); | 74 | 145 | const B* __restrict b_pos = b.data(); | 75 | 145 | UInt8* __restrict c_pos = c.data(); | 76 | 145 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 290 | while (a_pos < a_end) { | 79 | 145 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 145 | ++a_pos; | 81 | 145 | ++b_pos; | 82 | 145 | ++c_pos; | 83 | 145 | } | 84 | 145 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 123 | PaddedPODArray<UInt8>& c) { | 72 | 123 | size_t size = a.size(); | 73 | 123 | const A* __restrict a_pos = a.data(); | 74 | 123 | const B* __restrict b_pos = b.data(); | 75 | 123 | UInt8* __restrict c_pos = c.data(); | 76 | 123 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 248 | while (a_pos < a_end) { | 79 | 125 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 125 | ++a_pos; | 81 | 125 | ++b_pos; | 82 | 125 | ++c_pos; | 83 | 125 | } | 84 | 123 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 148 | PaddedPODArray<UInt8>& c) { | 72 | 148 | size_t size = a.size(); | 73 | 148 | const A* __restrict a_pos = a.data(); | 74 | 148 | const B* __restrict b_pos = b.data(); | 75 | 148 | UInt8* __restrict c_pos = c.data(); | 76 | 148 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 811 | while (a_pos < a_end) { | 79 | 663 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 663 | ++a_pos; | 81 | 663 | ++b_pos; | 82 | 663 | ++c_pos; | 83 | 663 | } | 84 | 148 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 194 | PaddedPODArray<UInt8>& c) { | 72 | 194 | size_t size = a.size(); | 73 | 194 | const A* __restrict a_pos = a.data(); | 74 | 194 | const B* __restrict b_pos = b.data(); | 75 | 194 | UInt8* __restrict c_pos = c.data(); | 76 | 194 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.19k | while (a_pos < a_end) { | 79 | 5.00k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.00k | ++a_pos; | 81 | 5.00k | ++b_pos; | 82 | 5.00k | ++c_pos; | 83 | 5.00k | } | 84 | 194 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 137 | PaddedPODArray<UInt8>& c) { | 72 | 137 | size_t size = a.size(); | 73 | 137 | const A* __restrict a_pos = a.data(); | 74 | 137 | const B* __restrict b_pos = b.data(); | 75 | 137 | UInt8* __restrict c_pos = c.data(); | 76 | 137 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 274 | while (a_pos < a_end) { | 79 | 137 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 137 | ++a_pos; | 81 | 137 | ++b_pos; | 82 | 137 | ++c_pos; | 83 | 137 | } | 84 | 137 | } |
_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 | 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 | 238 | while (a_pos < a_end) { | 79 | 119 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 119 | ++a_pos; | 81 | 119 | ++b_pos; | 82 | 119 | ++c_pos; | 83 | 119 | } | 84 | 119 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 114 | PaddedPODArray<UInt8>& c) { | 72 | 114 | size_t size = a.size(); | 73 | 114 | const A* __restrict a_pos = a.data(); | 74 | 114 | const B* __restrict b_pos = b.data(); | 75 | 114 | UInt8* __restrict c_pos = c.data(); | 76 | 114 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 237 | while (a_pos < a_end) { | 79 | 123 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 123 | ++a_pos; | 81 | 123 | ++b_pos; | 82 | 123 | ++c_pos; | 83 | 123 | } | 84 | 114 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ 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 | 84 | while (a_pos < a_end) { | 79 | 42 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 42 | ++a_pos; | 81 | 42 | ++b_pos; | 82 | 42 | ++c_pos; | 83 | 42 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 480 | PaddedPODArray<UInt8>& c) { | 72 | 480 | size_t size = a.size(); | 73 | 480 | const A* __restrict a_pos = a.data(); | 74 | 480 | const B* __restrict b_pos = b.data(); | 75 | 480 | UInt8* __restrict c_pos = c.data(); | 76 | 480 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.92k | while (a_pos < a_end) { | 79 | 6.44k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.44k | ++a_pos; | 81 | 6.44k | ++b_pos; | 82 | 6.44k | ++c_pos; | 83 | 6.44k | } | 84 | 480 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_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 | 180 | while (a_pos < a_end) { | 79 | 90 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 90 | ++a_pos; | 81 | 90 | ++b_pos; | 82 | 90 | ++c_pos; | 83 | 90 | } | 84 | 90 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _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 | 70 | PaddedPODArray<UInt8>& c) { | 72 | 70 | size_t size = a.size(); | 73 | 70 | const A* __restrict a_pos = a.data(); | 74 | 70 | const B* __restrict b_pos = b.data(); | 75 | 70 | UInt8* __restrict c_pos = c.data(); | 76 | 70 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 153 | while (a_pos < a_end) { | 79 | 83 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 83 | ++a_pos; | 81 | 83 | ++b_pos; | 82 | 83 | ++c_pos; | 83 | 83 | } | 84 | 70 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 99 | PaddedPODArray<UInt8>& c) { | 72 | 99 | size_t size = a.size(); | 73 | 99 | const A* __restrict a_pos = a.data(); | 74 | 99 | const B* __restrict b_pos = b.data(); | 75 | 99 | UInt8* __restrict c_pos = c.data(); | 76 | 99 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 249 | while (a_pos < a_end) { | 79 | 150 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 150 | ++a_pos; | 81 | 150 | ++b_pos; | 82 | 150 | ++c_pos; | 83 | 150 | } | 84 | 99 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 120 | while (a_pos < a_end) { | 79 | 60 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 60 | ++a_pos; | 81 | 60 | ++b_pos; | 82 | 60 | ++c_pos; | 83 | 60 | } | 84 | 60 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 159k | PaddedPODArray<UInt8>& c) { |
88 | 159k | size_t size = a.size(); |
89 | 159k | const A* __restrict a_pos = a.data(); |
90 | 159k | UInt8* __restrict c_pos = c.data(); |
91 | 159k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 90.6M | while (a_pos < a_end) { |
94 | 90.4M | *c_pos = Op::apply(*a_pos, b); |
95 | 90.4M | ++a_pos; |
96 | 90.4M | ++c_pos; |
97 | 90.4M | } |
98 | 159k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 1.50k | PaddedPODArray<UInt8>& c) { | 88 | 1.50k | size_t size = a.size(); | 89 | 1.50k | const A* __restrict a_pos = a.data(); | 90 | 1.50k | UInt8* __restrict c_pos = c.data(); | 91 | 1.50k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.84k | while (a_pos < a_end) { | 94 | 3.34k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.34k | ++a_pos; | 96 | 3.34k | ++c_pos; | 97 | 3.34k | } | 98 | 1.50k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 634 | PaddedPODArray<UInt8>& c) { | 88 | 634 | size_t size = a.size(); | 89 | 634 | const A* __restrict a_pos = a.data(); | 90 | 634 | UInt8* __restrict c_pos = c.data(); | 91 | 634 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 203k | 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 | 634 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 273 | PaddedPODArray<UInt8>& c) { | 88 | 273 | size_t size = a.size(); | 89 | 273 | const A* __restrict a_pos = a.data(); | 90 | 273 | UInt8* __restrict c_pos = c.data(); | 91 | 273 | 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 | 273 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE 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.07k | PaddedPODArray<UInt8>& c) { | 88 | 5.07k | size_t size = a.size(); | 89 | 5.07k | const A* __restrict a_pos = a.data(); | 90 | 5.07k | UInt8* __restrict c_pos = c.data(); | 91 | 5.07k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8.99M | while (a_pos < a_end) { | 94 | 8.98M | *c_pos = Op::apply(*a_pos, b); | 95 | 8.98M | ++a_pos; | 96 | 8.98M | ++c_pos; | 97 | 8.98M | } | 98 | 5.07k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 719 | PaddedPODArray<UInt8>& c) { | 88 | 719 | size_t size = a.size(); | 89 | 719 | const A* __restrict a_pos = a.data(); | 90 | 719 | UInt8* __restrict c_pos = c.data(); | 91 | 719 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 159k | *c_pos = Op::apply(*a_pos, b); | 95 | 159k | ++a_pos; | 96 | 159k | ++c_pos; | 97 | 159k | } | 98 | 719 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 46.8k | PaddedPODArray<UInt8>& c) { | 88 | 46.8k | size_t size = a.size(); | 89 | 46.8k | const A* __restrict a_pos = a.data(); | 90 | 46.8k | UInt8* __restrict c_pos = c.data(); | 91 | 46.8k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.42M | while (a_pos < a_end) { | 94 | 1.37M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.37M | ++a_pos; | 96 | 1.37M | ++c_pos; | 97 | 1.37M | } | 98 | 46.8k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 16.2k | PaddedPODArray<UInt8>& c) { | 88 | 16.2k | size_t size = a.size(); | 89 | 16.2k | const A* __restrict a_pos = a.data(); | 90 | 16.2k | UInt8* __restrict c_pos = c.data(); | 91 | 16.2k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.10M | while (a_pos < a_end) { | 94 | 3.08M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.08M | ++a_pos; | 96 | 3.08M | ++c_pos; | 97 | 3.08M | } | 98 | 16.2k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 69 | PaddedPODArray<UInt8>& c) { | 88 | 69 | size_t size = a.size(); | 89 | 69 | const A* __restrict a_pos = a.data(); | 90 | 69 | UInt8* __restrict c_pos = c.data(); | 91 | 69 | 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 | 69 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 9 | PaddedPODArray<UInt8>& c) { | 88 | 9 | size_t size = a.size(); | 89 | 9 | const A* __restrict a_pos = a.data(); | 90 | 9 | UInt8* __restrict c_pos = c.data(); | 91 | 9 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 117 | while (a_pos < a_end) { | 94 | 108 | *c_pos = Op::apply(*a_pos, b); | 95 | 108 | ++a_pos; | 96 | 108 | ++c_pos; | 97 | 108 | } | 98 | 9 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_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 | 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 | } |
_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 | 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 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 261 | PaddedPODArray<UInt8>& c) { | 88 | 261 | size_t size = a.size(); | 89 | 261 | const A* __restrict a_pos = a.data(); | 90 | 261 | UInt8* __restrict c_pos = c.data(); | 91 | 261 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 701k | while (a_pos < a_end) { | 94 | 700k | *c_pos = Op::apply(*a_pos, b); | 95 | 700k | ++a_pos; | 96 | 700k | ++c_pos; | 97 | 700k | } | 98 | 261 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 35 | PaddedPODArray<UInt8>& c) { | 88 | 35 | size_t size = a.size(); | 89 | 35 | const A* __restrict a_pos = a.data(); | 90 | 35 | UInt8* __restrict c_pos = c.data(); | 91 | 35 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90 | while (a_pos < a_end) { | 94 | 55 | *c_pos = Op::apply(*a_pos, b); | 95 | 55 | ++a_pos; | 96 | 55 | ++c_pos; | 97 | 55 | } | 98 | 35 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 4 | *c_pos = Op::apply(*a_pos, b); | 95 | 4 | ++a_pos; | 96 | 4 | ++c_pos; | 97 | 4 | } | 98 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 44 | PaddedPODArray<UInt8>& c) { | 88 | 44 | size_t size = a.size(); | 89 | 44 | const A* __restrict a_pos = a.data(); | 90 | 44 | UInt8* __restrict c_pos = c.data(); | 91 | 44 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.24k | while (a_pos < a_end) { | 94 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.19k | ++a_pos; | 96 | 1.19k | ++c_pos; | 97 | 1.19k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 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 | 786 | while (a_pos < a_end) { | 94 | 776 | *c_pos = Op::apply(*a_pos, b); | 95 | 776 | ++a_pos; | 96 | 776 | ++c_pos; | 97 | 776 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.19k | PaddedPODArray<UInt8>& c) { | 88 | 1.19k | size_t size = a.size(); | 89 | 1.19k | const A* __restrict a_pos = a.data(); | 90 | 1.19k | UInt8* __restrict c_pos = c.data(); | 91 | 1.19k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 629k | while (a_pos < a_end) { | 94 | 628k | *c_pos = Op::apply(*a_pos, b); | 95 | 628k | ++a_pos; | 96 | 628k | ++c_pos; | 97 | 628k | } | 98 | 1.19k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.74k | PaddedPODArray<UInt8>& c) { | 88 | 2.74k | size_t size = a.size(); | 89 | 2.74k | const A* __restrict a_pos = a.data(); | 90 | 2.74k | UInt8* __restrict c_pos = c.data(); | 91 | 2.74k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 272k | while (a_pos < a_end) { | 94 | 270k | *c_pos = Op::apply(*a_pos, b); | 95 | 270k | ++a_pos; | 96 | 270k | ++c_pos; | 97 | 270k | } | 98 | 2.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 | 37 | PaddedPODArray<UInt8>& c) { | 88 | 37 | size_t size = a.size(); | 89 | 37 | const A* __restrict a_pos = a.data(); | 90 | 37 | UInt8* __restrict c_pos = c.data(); | 91 | 37 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 99 | while (a_pos < a_end) { | 94 | 62 | *c_pos = Op::apply(*a_pos, b); | 95 | 62 | ++a_pos; | 96 | 62 | ++c_pos; | 97 | 62 | } | 98 | 37 | } |
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 | 139 | PaddedPODArray<UInt8>& c) { | 88 | 139 | size_t size = a.size(); | 89 | 139 | const A* __restrict a_pos = a.data(); | 90 | 139 | UInt8* __restrict c_pos = c.data(); | 91 | 139 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.46k | while (a_pos < a_end) { | 94 | 4.32k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.32k | ++a_pos; | 96 | 4.32k | ++c_pos; | 97 | 4.32k | } | 98 | 139 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 416 | PaddedPODArray<UInt8>& c) { | 88 | 416 | size_t size = a.size(); | 89 | 416 | const A* __restrict a_pos = a.data(); | 90 | 416 | UInt8* __restrict c_pos = c.data(); | 91 | 416 | 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 | 416 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 94 | PaddedPODArray<UInt8>& c) { | 88 | 94 | size_t size = a.size(); | 89 | 94 | const A* __restrict a_pos = a.data(); | 90 | 94 | UInt8* __restrict c_pos = c.data(); | 91 | 94 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 230 | while (a_pos < a_end) { | 94 | 136 | *c_pos = Op::apply(*a_pos, b); | 95 | 136 | ++a_pos; | 96 | 136 | ++c_pos; | 97 | 136 | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 437 | PaddedPODArray<UInt8>& c) { | 88 | 437 | size_t size = a.size(); | 89 | 437 | const A* __restrict a_pos = a.data(); | 90 | 437 | UInt8* __restrict c_pos = c.data(); | 91 | 437 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 45.5k | while (a_pos < a_end) { | 94 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 45.1k | ++a_pos; | 96 | 45.1k | ++c_pos; | 97 | 45.1k | } | 98 | 437 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 980 | PaddedPODArray<UInt8>& c) { | 88 | 980 | size_t size = a.size(); | 89 | 980 | const A* __restrict a_pos = a.data(); | 90 | 980 | UInt8* __restrict c_pos = c.data(); | 91 | 980 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.46k | while (a_pos < a_end) { | 94 | 5.48k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.48k | ++a_pos; | 96 | 5.48k | ++c_pos; | 97 | 5.48k | } | 98 | 980 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.93k | PaddedPODArray<UInt8>& c) { | 88 | 1.93k | size_t size = a.size(); | 89 | 1.93k | const A* __restrict a_pos = a.data(); | 90 | 1.93k | UInt8* __restrict c_pos = c.data(); | 91 | 1.93k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.65k | while (a_pos < a_end) { | 94 | 5.72k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.72k | ++a_pos; | 96 | 5.72k | ++c_pos; | 97 | 5.72k | } | 98 | 1.93k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.44k | PaddedPODArray<UInt8>& c) { | 88 | 1.44k | size_t size = a.size(); | 89 | 1.44k | const A* __restrict a_pos = a.data(); | 90 | 1.44k | UInt8* __restrict c_pos = c.data(); | 91 | 1.44k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.44k | while (a_pos < a_end) { | 94 | 4.99k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.99k | ++a_pos; | 96 | 4.99k | ++c_pos; | 97 | 4.99k | } | 98 | 1.44k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 336 | PaddedPODArray<UInt8>& c) { | 88 | 336 | size_t size = a.size(); | 89 | 336 | const A* __restrict a_pos = a.data(); | 90 | 336 | UInt8* __restrict c_pos = c.data(); | 91 | 336 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.7k | while (a_pos < a_end) { | 94 | 13.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 13.4k | ++a_pos; | 96 | 13.4k | ++c_pos; | 97 | 13.4k | } | 98 | 336 | } |
_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 | 6.21M | while (a_pos < a_end) { | 94 | 6.20M | *c_pos = Op::apply(*a_pos, b); | 95 | 6.20M | ++a_pos; | 96 | 6.20M | ++c_pos; | 97 | 6.20M | } | 98 | 14.9k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.20k | PaddedPODArray<UInt8>& c) { | 88 | 6.20k | size_t size = a.size(); | 89 | 6.20k | const A* __restrict a_pos = a.data(); | 90 | 6.20k | UInt8* __restrict c_pos = c.data(); | 91 | 6.20k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.09M | while (a_pos < a_end) { | 94 | 5.08M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.08M | ++a_pos; | 96 | 5.08M | ++c_pos; | 97 | 5.08M | } | 98 | 6.20k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.5k | PaddedPODArray<UInt8>& c) { | 88 | 13.5k | size_t size = a.size(); | 89 | 13.5k | const A* __restrict a_pos = a.data(); | 90 | 13.5k | UInt8* __restrict c_pos = c.data(); | 91 | 13.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 170k | while (a_pos < a_end) { | 94 | 156k | *c_pos = Op::apply(*a_pos, b); | 95 | 156k | ++a_pos; | 96 | 156k | ++c_pos; | 97 | 156k | } | 98 | 13.5k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.93k | PaddedPODArray<UInt8>& c) { | 88 | 1.93k | size_t size = a.size(); | 89 | 1.93k | const A* __restrict a_pos = a.data(); | 90 | 1.93k | UInt8* __restrict c_pos = c.data(); | 91 | 1.93k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 14.1k | while (a_pos < a_end) { | 94 | 12.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 12.2k | ++a_pos; | 96 | 12.2k | ++c_pos; | 97 | 12.2k | } | 98 | 1.93k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 289 | PaddedPODArray<UInt8>& c) { | 88 | 289 | size_t size = a.size(); | 89 | 289 | const A* __restrict a_pos = a.data(); | 90 | 289 | UInt8* __restrict c_pos = c.data(); | 91 | 289 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.92k | 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 | 289 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 100 | PaddedPODArray<UInt8>& c) { | 88 | 100 | size_t size = a.size(); | 89 | 100 | const A* __restrict a_pos = a.data(); | 90 | 100 | UInt8* __restrict c_pos = c.data(); | 91 | 100 | 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 | 100 | } |
_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 | 216 | PaddedPODArray<UInt8>& c) { | 88 | 216 | size_t size = a.size(); | 89 | 216 | const A* __restrict a_pos = a.data(); | 90 | 216 | UInt8* __restrict c_pos = c.data(); | 91 | 216 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.77k | while (a_pos < a_end) { | 94 | 3.55k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.55k | ++a_pos; | 96 | 3.55k | ++c_pos; | 97 | 3.55k | } | 98 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_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 | 64 | while (a_pos < a_end) { | 94 | 36 | *c_pos = Op::apply(*a_pos, b); | 95 | 36 | ++a_pos; | 96 | 36 | ++c_pos; | 97 | 36 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.11k | PaddedPODArray<UInt8>& c) { | 88 | 2.11k | size_t size = a.size(); | 89 | 2.11k | const A* __restrict a_pos = a.data(); | 90 | 2.11k | UInt8* __restrict c_pos = c.data(); | 91 | 2.11k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 340k | while (a_pos < a_end) { | 94 | 338k | *c_pos = Op::apply(*a_pos, b); | 95 | 338k | ++a_pos; | 96 | 338k | ++c_pos; | 97 | 338k | } | 98 | 2.11k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 209 | PaddedPODArray<UInt8>& c) { | 88 | 209 | size_t size = a.size(); | 89 | 209 | const A* __restrict a_pos = a.data(); | 90 | 209 | UInt8* __restrict c_pos = c.data(); | 91 | 209 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 315k | while (a_pos < a_end) { | 94 | 315k | *c_pos = Op::apply(*a_pos, b); | 95 | 315k | ++a_pos; | 96 | 315k | ++c_pos; | 97 | 315k | } | 98 | 209 | } |
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 | 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 | 162k | while (a_pos < a_end) { | 94 | 161k | *c_pos = Op::apply(*a_pos, b); | 95 | 161k | ++a_pos; | 96 | 161k | ++c_pos; | 97 | 161k | } | 98 | 104 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 94 | PaddedPODArray<UInt8>& c) { | 88 | 94 | size_t size = a.size(); | 89 | 94 | const A* __restrict a_pos = a.data(); | 90 | 94 | UInt8* __restrict c_pos = c.data(); | 91 | 94 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 80.4k | while (a_pos < a_end) { | 94 | 80.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 80.3k | ++a_pos; | 96 | 80.3k | ++c_pos; | 97 | 80.3k | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2.13k | PaddedPODArray<UInt8>& c) { | 88 | 2.13k | size_t size = a.size(); | 89 | 2.13k | const A* __restrict a_pos = a.data(); | 90 | 2.13k | UInt8* __restrict c_pos = c.data(); | 91 | 2.13k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.71M | while (a_pos < a_end) { | 94 | 4.71M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.71M | ++a_pos; | 96 | 4.71M | ++c_pos; | 97 | 4.71M | } | 98 | 2.13k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 6.23k | PaddedPODArray<UInt8>& c) { | 88 | 6.23k | size_t size = a.size(); | 89 | 6.23k | const A* __restrict a_pos = a.data(); | 90 | 6.23k | UInt8* __restrict c_pos = c.data(); | 91 | 6.23k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 39.3M | while (a_pos < a_end) { | 94 | 39.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 39.3M | ++a_pos; | 96 | 39.3M | ++c_pos; | 97 | 39.3M | } | 98 | 6.23k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 765 | PaddedPODArray<UInt8>& c) { | 88 | 765 | size_t size = a.size(); | 89 | 765 | const A* __restrict a_pos = a.data(); | 90 | 765 | UInt8* __restrict c_pos = c.data(); | 91 | 765 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.8k | while (a_pos < a_end) { | 94 | 30.0k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.0k | ++a_pos; | 96 | 30.0k | ++c_pos; | 97 | 30.0k | } | 98 | 765 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 265 | PaddedPODArray<UInt8>& c) { | 88 | 265 | size_t size = a.size(); | 89 | 265 | const A* __restrict a_pos = a.data(); | 90 | 265 | UInt8* __restrict c_pos = c.data(); | 91 | 265 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.3k | while (a_pos < a_end) { | 94 | 15.0k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.0k | ++a_pos; | 96 | 15.0k | ++c_pos; | 97 | 15.0k | } | 98 | 265 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE 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 | 89 | PaddedPODArray<UInt8>& c) { | 88 | 89 | size_t size = a.size(); | 89 | 89 | const A* __restrict a_pos = a.data(); | 90 | 89 | UInt8* __restrict c_pos = c.data(); | 91 | 89 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110k | while (a_pos < a_end) { | 94 | 110k | *c_pos = Op::apply(*a_pos, b); | 95 | 110k | ++a_pos; | 96 | 110k | ++c_pos; | 97 | 110k | } | 98 | 89 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 130 | PaddedPODArray<UInt8>& c) { | 88 | 130 | size_t size = a.size(); | 89 | 130 | const A* __restrict a_pos = a.data(); | 90 | 130 | UInt8* __restrict c_pos = c.data(); | 91 | 130 | 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 | 130 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 110 | PaddedPODArray<UInt8>& c) { | 88 | 110 | size_t size = a.size(); | 89 | 110 | const A* __restrict a_pos = a.data(); | 90 | 110 | UInt8* __restrict c_pos = c.data(); | 91 | 110 | 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 | 110 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 155 | PaddedPODArray<UInt8>& c) { | 88 | 155 | size_t size = a.size(); | 89 | 155 | const A* __restrict a_pos = a.data(); | 90 | 155 | UInt8* __restrict c_pos = c.data(); | 91 | 155 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 65.5k | while (a_pos < a_end) { | 94 | 65.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 65.3k | ++a_pos; | 96 | 65.3k | ++c_pos; | 97 | 65.3k | } | 98 | 155 | } |
_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 | 5.65M | while (a_pos < a_end) { | 94 | 5.64M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.64M | ++a_pos; | 96 | 5.64M | ++c_pos; | 97 | 5.64M | } | 98 | 9.39k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17.1k | PaddedPODArray<UInt8>& c) { | 88 | 17.1k | size_t size = a.size(); | 89 | 17.1k | const A* __restrict a_pos = a.data(); | 90 | 17.1k | UInt8* __restrict c_pos = c.data(); | 91 | 17.1k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 10.0M | while (a_pos < a_end) { | 94 | 9.98M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.98M | ++a_pos; | 96 | 9.98M | ++c_pos; | 97 | 9.98M | } | 98 | 17.1k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 561 | PaddedPODArray<UInt8>& c) { | 88 | 561 | size_t size = a.size(); | 89 | 561 | const A* __restrict a_pos = a.data(); | 90 | 561 | UInt8* __restrict c_pos = c.data(); | 91 | 561 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 33.4k | while (a_pos < a_end) { | 94 | 32.8k | *c_pos = Op::apply(*a_pos, b); | 95 | 32.8k | ++a_pos; | 96 | 32.8k | ++c_pos; | 97 | 32.8k | } | 98 | 561 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 823 | PaddedPODArray<UInt8>& c) { | 88 | 823 | size_t size = a.size(); | 89 | 823 | const A* __restrict a_pos = a.data(); | 90 | 823 | UInt8* __restrict c_pos = c.data(); | 91 | 823 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 49.5k | while (a_pos < a_end) { | 94 | 48.7k | *c_pos = Op::apply(*a_pos, b); | 95 | 48.7k | ++a_pos; | 96 | 48.7k | ++c_pos; | 97 | 48.7k | } | 98 | 823 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 50 | PaddedPODArray<UInt8>& c) { | 88 | 50 | size_t size = a.size(); | 89 | 50 | const A* __restrict a_pos = a.data(); | 90 | 50 | UInt8* __restrict c_pos = c.data(); | 91 | 50 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 132k | while (a_pos < a_end) { | 94 | 132k | *c_pos = Op::apply(*a_pos, b); | 95 | 132k | ++a_pos; | 96 | 132k | ++c_pos; | 97 | 132k | } | 98 | 50 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 41 | PaddedPODArray<UInt8>& c) { | 88 | 41 | size_t size = a.size(); | 89 | 41 | const A* __restrict a_pos = a.data(); | 90 | 41 | UInt8* __restrict c_pos = c.data(); | 91 | 41 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90.3k | while (a_pos < a_end) { | 94 | 90.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 90.3k | ++a_pos; | 96 | 90.3k | ++c_pos; | 97 | 90.3k | } | 98 | 41 | } |
_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 | 122 | PaddedPODArray<UInt8>& c) { | 88 | 122 | size_t size = a.size(); | 89 | 122 | const A* __restrict a_pos = a.data(); | 90 | 122 | UInt8* __restrict c_pos = c.data(); | 91 | 122 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 246 | while (a_pos < a_end) { | 94 | 124 | *c_pos = Op::apply(*a_pos, b); | 95 | 124 | ++a_pos; | 96 | 124 | ++c_pos; | 97 | 124 | } | 98 | 122 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_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 | 236 | while (a_pos < a_end) { | 94 | 118 | *c_pos = Op::apply(*a_pos, b); | 95 | 118 | ++a_pos; | 96 | 118 | ++c_pos; | 97 | 118 | } | 98 | 118 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 124 | PaddedPODArray<UInt8>& c) { | 88 | 124 | size_t size = a.size(); | 89 | 124 | const A* __restrict a_pos = a.data(); | 90 | 124 | UInt8* __restrict c_pos = c.data(); | 91 | 124 | 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 | 124 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 112 | PaddedPODArray<UInt8>& c) { | 88 | 112 | size_t size = a.size(); | 89 | 112 | const A* __restrict a_pos = a.data(); | 90 | 112 | UInt8* __restrict c_pos = c.data(); | 91 | 112 | 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 | 112 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 25.8k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 25.8k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 25.8k | } 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_19DateTimeV2NanoValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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 | 192 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 192 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 192 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 24 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 24 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 24 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 19.2k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 19.2k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 19.2k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 620 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 620 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 620 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_19DateTimeV2NanoValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 802 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 802 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 802 | } |
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_19DateTimeV2NanoValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 186 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 186 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 186 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 192 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 192 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 192 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 501 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 501 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 501 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_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: _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_19DateTimeV2NanoValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _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_19DateTimeV2NanoValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 168 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 168 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 168 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 119 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 119 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 119 | } |
_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 | 88 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 88 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 88 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _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_19DateTimeV2NanoValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 162 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 162 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 162 | } |
_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 | 7 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
110 | 9 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
111 | 9 | } |
112 | 7 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 2 | 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 | 4 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 4 | } | 112 | 2 | } |
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 | 151 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 151 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 501k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 501k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 501k | } |
119 | 151 | } _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 | 57 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 57 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 282k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 281k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 281k | } | 119 | 57 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 57 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 57 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 219k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 219k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 219k | } | 119 | 57 | } |
|
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 | 685 | PaddedPODArray<UInt8>& c) { |
133 | 685 | size_t size = a_offsets.size(); |
134 | 685 | ColumnString::Offset prev_a_offset = 0; |
135 | 685 | ColumnString::Offset prev_b_offset = 0; |
136 | 685 | const auto* a_pos = a_data.data(); |
137 | 685 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.57k | for (size_t i = 0; i < size; ++i) { |
140 | 888 | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 888 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 888 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 888 | 0); |
144 | | |
145 | 888 | prev_a_offset = a_offsets[i]; |
146 | 888 | prev_b_offset = b_offsets[i]; |
147 | 888 | } |
148 | 685 | } _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 | 122 | PaddedPODArray<UInt8>& c) { | 133 | 122 | size_t size = a_offsets.size(); | 134 | 122 | ColumnString::Offset prev_a_offset = 0; | 135 | 122 | ColumnString::Offset prev_b_offset = 0; | 136 | 122 | const auto* a_pos = a_data.data(); | 137 | 122 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 402 | for (size_t i = 0; i < size; ++i) { | 140 | 280 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 280 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 280 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 280 | 0); | 144 | | | 145 | 280 | prev_a_offset = a_offsets[i]; | 146 | 280 | prev_b_offset = b_offsets[i]; | 147 | 280 | } | 148 | 122 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 407 | PaddedPODArray<UInt8>& c) { | 133 | 407 | size_t size = a_offsets.size(); | 134 | 407 | ColumnString::Offset prev_a_offset = 0; | 135 | 407 | ColumnString::Offset prev_b_offset = 0; | 136 | 407 | const auto* a_pos = a_data.data(); | 137 | 407 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 814 | for (size_t i = 0; i < size; ++i) { | 140 | 407 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 407 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 407 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 407 | 0); | 144 | | | 145 | 407 | prev_a_offset = a_offsets[i]; | 146 | 407 | prev_b_offset = b_offsets[i]; | 147 | 407 | } | 148 | 407 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 154 | PaddedPODArray<UInt8>& c) { | 133 | 154 | size_t size = a_offsets.size(); | 134 | 154 | ColumnString::Offset prev_a_offset = 0; | 135 | 154 | ColumnString::Offset prev_b_offset = 0; | 136 | 154 | const auto* a_pos = a_data.data(); | 137 | 154 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 308 | for (size_t i = 0; i < size; ++i) { | 140 | 154 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 154 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 154 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 154 | 0); | 144 | | | 145 | 154 | prev_a_offset = a_offsets[i]; | 146 | 154 | prev_b_offset = b_offsets[i]; | 147 | 154 | } | 148 | 154 | } |
|
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.47k | PaddedPODArray<UInt8>& c) { |
155 | 1.47k | size_t size = a_offsets.size(); |
156 | 1.47k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.47k | const auto* a_pos = a_data.data(); |
158 | 1.47k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.46M | for (size_t i = 0; i < size; ++i) { |
161 | 1.46M | c[i] = Op::apply( |
162 | 1.46M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.46M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.46M | 0); |
165 | | |
166 | 1.46M | prev_a_offset = a_offsets[i]; |
167 | 1.46M | } |
168 | 1.47k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 178 | PaddedPODArray<UInt8>& c) { | 155 | 178 | size_t size = a_offsets.size(); | 156 | 178 | ColumnString::Offset prev_a_offset = 0; | 157 | 178 | const auto* a_pos = a_data.data(); | 158 | 178 | 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 | 178 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 200 | PaddedPODArray<UInt8>& c) { | 155 | 200 | size_t size = a_offsets.size(); | 156 | 200 | ColumnString::Offset prev_a_offset = 0; | 157 | 200 | const auto* a_pos = a_data.data(); | 158 | 200 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 73.1k | for (size_t i = 0; i < size; ++i) { | 161 | 72.9k | c[i] = Op::apply( | 162 | 72.9k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 72.9k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 72.9k | 0); | 165 | | | 166 | 72.9k | prev_a_offset = a_offsets[i]; | 167 | 72.9k | } | 168 | 200 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 490 | PaddedPODArray<UInt8>& c) { | 155 | 490 | size_t size = a_offsets.size(); | 156 | 490 | ColumnString::Offset prev_a_offset = 0; | 157 | 490 | const auto* a_pos = a_data.data(); | 158 | 490 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 568k | for (size_t i = 0; i < size; ++i) { | 161 | 567k | c[i] = Op::apply( | 162 | 567k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 567k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 567k | 0); | 165 | | | 166 | 567k | prev_a_offset = a_offsets[i]; | 167 | 567k | } | 168 | 490 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 607 | PaddedPODArray<UInt8>& c) { | 155 | 607 | size_t size = a_offsets.size(); | 156 | 607 | ColumnString::Offset prev_a_offset = 0; | 157 | 607 | const auto* a_pos = a_data.data(); | 158 | 607 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 500k | for (size_t i = 0; i < size; ++i) { | 161 | 499k | c[i] = Op::apply( | 162 | 499k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 499k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 499k | 0); | 165 | | | 166 | 499k | prev_a_offset = a_offsets[i]; | 167 | 499k | } | 168 | 607 | } |
|
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 | 2.61k | PaddedPODArray<UInt8>& c) { |
187 | 2.61k | size_t size = a_offsets.size(); |
188 | 2.61k | ColumnString::Offset prev_a_offset = 0; |
189 | 2.61k | ColumnString::Offset prev_b_offset = 0; |
190 | 2.61k | const auto* a_pos = a_data.data(); |
191 | 2.61k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 5.68k | for (size_t i = 0; i < size; ++i) { |
194 | 3.06k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 3.06k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 3.06k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 3.06k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 3.06k | prev_a_offset = a_offsets[i]; |
201 | 3.06k | prev_b_offset = b_offsets[i]; |
202 | 3.06k | } |
203 | 2.61k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 2.55k | PaddedPODArray<UInt8>& c) { | 187 | 2.55k | size_t size = a_offsets.size(); | 188 | 2.55k | ColumnString::Offset prev_a_offset = 0; | 189 | 2.55k | ColumnString::Offset prev_b_offset = 0; | 190 | 2.55k | const auto* a_pos = a_data.data(); | 191 | 2.55k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 5.55k | for (size_t i = 0; i < size; ++i) { | 194 | 3.00k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 3.00k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 3.00k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 3.00k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 3.00k | prev_a_offset = a_offsets[i]; | 201 | 3.00k | prev_b_offset = b_offsets[i]; | 202 | 3.00k | } | 203 | 2.55k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 60 | PaddedPODArray<UInt8>& c) { | 187 | 60 | size_t size = a_offsets.size(); | 188 | 60 | ColumnString::Offset prev_a_offset = 0; | 189 | 60 | ColumnString::Offset prev_b_offset = 0; | 190 | 60 | const auto* a_pos = a_data.data(); | 191 | 60 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 129 | for (size_t i = 0; i < size; ++i) { | 194 | 69 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 69 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 69 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 69 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 69 | prev_a_offset = a_offsets[i]; | 201 | 69 | prev_b_offset = b_offsets[i]; | 202 | 69 | } | 203 | 60 | } |
|
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 | 24.4k | PaddedPODArray<UInt8>& c) { |
210 | 24.4k | size_t size = a_offsets.size(); |
211 | 24.4k | if (b_size == 0) { |
212 | 2 | auto* __restrict data = c.data(); |
213 | 2 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 2 | ColumnString::Offset prev_a_offset = 0; |
216 | 10 | for (size_t i = 0; i < size; ++i) { |
217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 8 | prev_a_offset = offsets[i]; |
219 | 8 | } |
220 | 24.4k | } else { |
221 | 24.4k | ColumnString::Offset prev_a_offset = 0; |
222 | 24.4k | const auto* a_pos = a_data.data(); |
223 | 24.4k | const auto* b_pos = b_data.data(); |
224 | 12.3M | for (size_t i = 0; i < size; ++i) { |
225 | 12.3M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 12.3M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 12.3M | b_pos, b_size); |
228 | 12.3M | prev_a_offset = a_offsets[i]; |
229 | 12.3M | } |
230 | 24.4k | } |
231 | 24.4k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 21.9k | PaddedPODArray<UInt8>& c) { | 210 | 21.9k | size_t size = a_offsets.size(); | 211 | 21.9k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 21.9k | } else { | 221 | 21.9k | ColumnString::Offset prev_a_offset = 0; | 222 | 21.9k | const auto* a_pos = a_data.data(); | 223 | 21.9k | const auto* b_pos = b_data.data(); | 224 | 8.54M | for (size_t i = 0; i < size; ++i) { | 225 | 8.52M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.52M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.52M | b_pos, b_size); | 228 | 8.52M | prev_a_offset = a_offsets[i]; | 229 | 8.52M | } | 230 | 21.9k | } | 231 | 21.9k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 2.48k | PaddedPODArray<UInt8>& c) { | 210 | 2.48k | size_t size = a_offsets.size(); | 211 | 2.48k | if (b_size == 0) { | 212 | 2 | auto* __restrict data = c.data(); | 213 | 2 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 2 | ColumnString::Offset prev_a_offset = 0; | 216 | 10 | for (size_t i = 0; i < size; ++i) { | 217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 8 | prev_a_offset = offsets[i]; | 219 | 8 | } | 220 | 2.48k | } else { | 221 | 2.48k | ColumnString::Offset prev_a_offset = 0; | 222 | 2.48k | const auto* a_pos = a_data.data(); | 223 | 2.48k | const auto* b_pos = b_data.data(); | 224 | 3.82M | for (size_t i = 0; i < size; ++i) { | 225 | 3.82M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.82M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.82M | b_pos, b_size); | 228 | 3.82M | prev_a_offset = a_offsets[i]; | 229 | 3.82M | } | 230 | 2.48k | } | 231 | 2.48k | } |
|
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 | 16 | PaddedPODArray<UInt8>& c) { |
238 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 16 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 237 | 16 | PaddedPODArray<UInt8>& c) { | 238 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 239 | 16 | } |
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 | 7 | inline Op symmetric_op(Op op) { |
278 | 7 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 5 | case Op::LT: |
283 | 5 | 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 | 7 | } |
291 | 0 | __builtin_unreachable(); |
292 | 7 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 35.4k | Op op) { |
296 | 35.4k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 35.4k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 35.4k | slot_literal->slot_type); |
300 | 35.4k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 35.4k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 35.4k | if (zone_map_ptr == nullptr) { |
305 | 80 | return unsupported_zonemap_filter(ctx); |
306 | 80 | } |
307 | 35.4k | const auto& zone_map = *zone_map_ptr; |
308 | 35.4k | if (!zone_map.has_not_null) { |
309 | 219 | return ZoneMapFilterResult::kNoMatch; |
310 | 219 | } |
311 | 35.1k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 118 | return unsupported_zonemap_filter(ctx); |
313 | 118 | } |
314 | | |
315 | 35.0k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 35.0k | const auto& literal = slot_literal->literal; |
317 | 35.0k | switch (effective_op) { |
318 | 9.36k | case Op::EQ: |
319 | 9.36k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 9.36k | ? ZoneMapFilterResult::kNoMatch |
321 | 9.36k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.11k | case Op::NE: |
323 | 1.11k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.11k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.11k | : ZoneMapFilterResult::kMayMatch; |
326 | 3.04k | case Op::LT: |
327 | 3.04k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 3.04k | : ZoneMapFilterResult::kMayMatch; |
329 | 9.52k | case Op::LE: |
330 | 9.52k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 9.52k | : ZoneMapFilterResult::kMayMatch; |
332 | 5.10k | case Op::GT: |
333 | 5.10k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 5.10k | : ZoneMapFilterResult::kMayMatch; |
335 | 6.96k | case Op::GE: |
336 | 6.96k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 6.96k | : ZoneMapFilterResult::kMayMatch; |
338 | 35.0k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 35.0k | } |
343 | | |
344 | 134k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 134k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 134k | if (!slot_literal.has_value()) { |
347 | 39.5k | return false; |
348 | 39.5k | } |
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 | 95.2k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 95.2k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 95.2k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 95.2k | 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 | 19 | return false; |
364 | 19 | } |
365 | | |
366 | 95.2k | return true; |
367 | 95.2k | } |
368 | | |
369 | 8.53k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 8.53k | return op == Op::EQ && can_evaluate(arguments); |
371 | 8.53k | } |
372 | | |
373 | 53.4k | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
374 | 53.4k | switch (op) { |
375 | 53.3k | case Op::EQ: |
376 | 53.3k | return value == literal; |
377 | 4 | case Op::NE: |
378 | 4 | return value != literal; |
379 | 5 | case Op::LT: |
380 | 5 | return value < literal; |
381 | 8 | case Op::LE: |
382 | 8 | return value <= literal; |
383 | 14 | case Op::GT: |
384 | 14 | return value > literal; |
385 | 16 | case Op::GE: |
386 | 16 | return value >= literal; |
387 | 53.4k | } |
388 | 0 | __builtin_unreachable(); |
389 | 53.4k | } |
390 | | |
391 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
392 | 660 | const VExprSPtrs& arguments, Op op) { |
393 | 660 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
394 | 660 | DORIS_CHECK(slot_literal.has_value()); |
395 | 660 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
396 | 660 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
397 | 0 | return ZoneMapFilterResult::kUnsupported; |
398 | 0 | } |
399 | 660 | DORIS_CHECK( |
400 | 660 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
401 | 660 | if (slot_literal->literal.is_null()) { |
402 | 0 | return ZoneMapFilterResult::kUnsupported; |
403 | 0 | } |
404 | 660 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
405 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
406 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
407 | 660 | return std::ranges::any_of(dictionary->values, |
408 | 53.4k | [&](const Field& value) { |
409 | 53.4k | return dictionary_value_matches(value, slot_literal->literal, |
410 | 53.4k | effective_op); |
411 | 53.4k | }) |
412 | 660 | ? ZoneMapFilterResult::kMayMatch |
413 | 660 | : ZoneMapFilterResult::kNoMatch; |
414 | 660 | } |
415 | | |
416 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
417 | 14 | const VExprSPtrs& arguments, Op op) { |
418 | 14 | DORIS_CHECK(op == Op::EQ); |
419 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
420 | 14 | DORIS_CHECK(slot_literal.has_value()); |
421 | 14 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
422 | 14 | } |
423 | | |
424 | 174k | inline std::optional<Op> op_from_name(std::string_view name) { |
425 | 174k | if (name == NameEquals::name) { |
426 | 68.6k | return Op::EQ; |
427 | 68.6k | } |
428 | 106k | if (name == NameNotEquals::name) { |
429 | 7.39k | return Op::NE; |
430 | 7.39k | } |
431 | 98.8k | if (name == NameLess::name) { |
432 | 13.1k | return Op::LT; |
433 | 13.1k | } |
434 | 85.7k | if (name == NameLessOrEquals::name) { |
435 | 31.5k | return Op::LE; |
436 | 31.5k | } |
437 | 54.1k | if (name == NameGreater::name) { |
438 | 27.5k | return Op::GT; |
439 | 27.5k | } |
440 | 26.8k | if (name == NameGreaterOrEquals::name) { |
441 | 26.8k | return Op::GE; |
442 | 26.8k | } |
443 | 18.4E | return std::nullopt; |
444 | 26.6k | } |
445 | | } // namespace comparison_zonemap_detail |
446 | | |
447 | | template <template <PrimitiveType> class Op, typename Name> |
448 | | class FunctionComparison : public IFunction { |
449 | | public: |
450 | | static constexpr auto name = Name::name; |
451 | 552k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 451 | 459k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 451 | 2.72k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 451 | 42.8k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 451 | 16.8k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 451 | 4.54k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 451 | 25.8k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
452 | | |
453 | 553k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 453 | 460k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 453 | 2.72k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 453 | 43.0k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 453 | 16.8k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 453 | 4.55k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 453 | 25.8k | FunctionComparison() = default; |
|
454 | | |
455 | 1.26M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 455 | 1.24M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 455 | 635 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 455 | 3.13k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 455 | 12.2k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 455 | 1.71k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 455 | 8.14k | double execute_cost() const override { return 0.5; } |
|
456 | | |
457 | | private: |
458 | | template <PrimitiveType PT> |
459 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
460 | 169k | const ColumnPtr& col_right_ptr) const { |
461 | 169k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
462 | 169k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
463 | | |
464 | 169k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
465 | 169k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
466 | | |
467 | 169k | DCHECK(!(left_is_const && right_is_const)); |
468 | | |
469 | 169k | if (!left_is_const && !right_is_const) { |
470 | 10.0k | auto col_res = ColumnUInt8::create(); |
471 | | |
472 | 10.0k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
473 | 10.0k | vec_res.resize(col_left->get_data().size()); |
474 | 10.0k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
475 | 10.0k | typename PrimitiveTypeTraits<PT>::CppType, |
476 | 10.0k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
477 | 10.0k | vec_res); |
478 | | |
479 | 10.0k | block.replace_by_position(result, std::move(col_res)); |
480 | 159k | } else if (!left_is_const && right_is_const) { |
481 | 133k | auto col_res = ColumnUInt8::create(); |
482 | | |
483 | 133k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
484 | 133k | vec_res.resize(col_left->size()); |
485 | 133k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
486 | 133k | typename PrimitiveTypeTraits<PT>::CppType, |
487 | 133k | Op<PT>>::vector_constant(col_left->get_data(), |
488 | 133k | col_right->get_element(0), vec_res); |
489 | | |
490 | 133k | block.replace_by_position(result, std::move(col_res)); |
491 | 133k | } else if (left_is_const && !right_is_const) { |
492 | 25.7k | auto col_res = ColumnUInt8::create(); |
493 | | |
494 | 25.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
495 | 25.7k | vec_res.resize(col_right->size()); |
496 | 25.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
497 | 25.7k | typename PrimitiveTypeTraits<PT>::CppType, |
498 | 25.7k | Op<PT>>::constant_vector(col_left->get_element(0), |
499 | 25.7k | col_right->get_data(), vec_res); |
500 | | |
501 | 25.7k | block.replace_by_position(result, std::move(col_res)); |
502 | 25.7k | } |
503 | 169k | return Status::OK(); |
504 | 169k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.57k | const ColumnPtr& col_right_ptr) const { | 461 | 1.57k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.57k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.57k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.57k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.57k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.57k | if (!left_is_const && !right_is_const) { | 470 | 73 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 73 | vec_res.resize(col_left->get_data().size()); | 474 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 73 | vec_res); | 478 | | | 479 | 73 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.50k | } else if (!left_is_const && right_is_const) { | 481 | 1.50k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.50k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.50k | vec_res.resize(col_left->size()); | 485 | 1.50k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.50k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.50k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.50k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.50k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.50k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1.57k | return Status::OK(); | 504 | 1.57k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.21k | const ColumnPtr& col_right_ptr) const { | 461 | 1.21k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.21k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.21k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.21k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.21k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.21k | if (!left_is_const && !right_is_const) { | 470 | 583 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 583 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 583 | vec_res.resize(col_left->get_data().size()); | 474 | 583 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 583 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 583 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 583 | vec_res); | 478 | | | 479 | 583 | block.replace_by_position(result, std::move(col_res)); | 480 | 634 | } else if (!left_is_const && right_is_const) { | 481 | 634 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 634 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 634 | vec_res.resize(col_left->size()); | 485 | 634 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 634 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 634 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 634 | col_right->get_element(0), vec_res); | 489 | | | 490 | 634 | block.replace_by_position(result, std::move(col_res)); | 491 | 18.4E | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1.21k | return Status::OK(); | 504 | 1.21k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 615 | const ColumnPtr& col_right_ptr) const { | 461 | 615 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 615 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 615 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 615 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 615 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 615 | if (!left_is_const && !right_is_const) { | 470 | 342 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 342 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 342 | vec_res.resize(col_left->get_data().size()); | 474 | 342 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 342 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 342 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 342 | vec_res); | 478 | | | 479 | 342 | block.replace_by_position(result, std::move(col_res)); | 480 | 342 | } else if (!left_is_const && right_is_const) { | 481 | 273 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 273 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 273 | vec_res.resize(col_left->size()); | 485 | 273 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 273 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 273 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 273 | col_right->get_element(0), vec_res); | 489 | | | 490 | 273 | block.replace_by_position(result, std::move(col_res)); | 491 | 273 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 615 | return Status::OK(); | 504 | 615 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 5.23k | const ColumnPtr& col_right_ptr) const { | 461 | 5.23k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 5.23k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 5.23k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 5.23k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 5.23k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 5.23k | if (!left_is_const && !right_is_const) { | 470 | 155 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 155 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 155 | vec_res.resize(col_left->get_data().size()); | 474 | 155 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 155 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 155 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 155 | vec_res); | 478 | | | 479 | 155 | block.replace_by_position(result, std::move(col_res)); | 480 | 5.07k | } else if (!left_is_const && right_is_const) { | 481 | 4.88k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 4.88k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 4.88k | vec_res.resize(col_left->size()); | 485 | 4.88k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 4.88k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 4.88k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 4.88k | col_right->get_element(0), vec_res); | 489 | | | 490 | 4.88k | block.replace_by_position(result, std::move(col_res)); | 491 | 4.88k | } else if (left_is_const && !right_is_const) { | 492 | 192 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 192 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 192 | vec_res.resize(col_right->size()); | 496 | 192 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 192 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 192 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 192 | col_right->get_data(), vec_res); | 500 | | | 501 | 192 | block.replace_by_position(result, std::move(col_res)); | 502 | 192 | } | 503 | 5.23k | return Status::OK(); | 504 | 5.23k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 801 | const ColumnPtr& col_right_ptr) const { | 461 | 801 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 801 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 801 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 801 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 801 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 801 | if (!left_is_const && !right_is_const) { | 470 | 82 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 82 | vec_res.resize(col_left->get_data().size()); | 474 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 82 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 82 | vec_res); | 478 | | | 479 | 82 | block.replace_by_position(result, std::move(col_res)); | 480 | 719 | } else if (!left_is_const && right_is_const) { | 481 | 695 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 695 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 695 | vec_res.resize(col_left->size()); | 485 | 695 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 695 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 695 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 695 | col_right->get_element(0), vec_res); | 489 | | | 490 | 695 | block.replace_by_position(result, std::move(col_res)); | 491 | 695 | } else if (left_is_const && !right_is_const) { | 492 | 24 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 24 | vec_res.resize(col_right->size()); | 496 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 24 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 24 | col_right->get_data(), vec_res); | 500 | | | 501 | 24 | block.replace_by_position(result, std::move(col_res)); | 502 | 24 | } | 503 | 801 | return Status::OK(); | 504 | 801 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 47.8k | const ColumnPtr& col_right_ptr) const { | 461 | 47.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 47.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 47.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 47.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 47.8k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 47.8k | if (!left_is_const && !right_is_const) { | 470 | 1.03k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.03k | vec_res.resize(col_left->get_data().size()); | 474 | 1.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.03k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.03k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.03k | vec_res); | 478 | | | 479 | 1.03k | block.replace_by_position(result, std::move(col_res)); | 480 | 46.8k | } else if (!left_is_const && right_is_const) { | 481 | 27.6k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 27.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 27.6k | vec_res.resize(col_left->size()); | 485 | 27.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 27.6k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 27.6k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 27.6k | col_right->get_element(0), vec_res); | 489 | | | 490 | 27.6k | block.replace_by_position(result, std::move(col_res)); | 491 | 27.6k | } else if (left_is_const && !right_is_const) { | 492 | 19.2k | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 19.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 19.2k | vec_res.resize(col_right->size()); | 496 | 19.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 19.2k | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 19.2k | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 19.2k | col_right->get_data(), vec_res); | 500 | | | 501 | 19.2k | block.replace_by_position(result, std::move(col_res)); | 502 | 19.2k | } | 503 | 47.8k | return Status::OK(); | 504 | 47.8k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 16.5k | const ColumnPtr& col_right_ptr) const { | 461 | 16.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 16.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 16.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 16.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 16.5k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 16.5k | if (!left_is_const && !right_is_const) { | 470 | 275 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 275 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 275 | vec_res.resize(col_left->get_data().size()); | 474 | 275 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 275 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 275 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 275 | vec_res); | 478 | | | 479 | 275 | block.replace_by_position(result, std::move(col_res)); | 480 | 16.2k | } else if (!left_is_const && right_is_const) { | 481 | 15.6k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 15.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 15.6k | vec_res.resize(col_left->size()); | 485 | 15.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 15.6k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 15.6k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 15.6k | col_right->get_element(0), vec_res); | 489 | | | 490 | 15.6k | block.replace_by_position(result, std::move(col_res)); | 491 | 15.6k | } else if (left_is_const && !right_is_const) { | 492 | 620 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 620 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 620 | vec_res.resize(col_right->size()); | 496 | 620 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 620 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 620 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 620 | col_right->get_data(), vec_res); | 500 | | | 501 | 620 | block.replace_by_position(result, std::move(col_res)); | 502 | 620 | } | 503 | 16.5k | return Status::OK(); | 504 | 16.5k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 148 | const ColumnPtr& col_right_ptr) const { | 461 | 148 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 148 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 148 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 148 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 148 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 148 | if (!left_is_const && !right_is_const) { | 470 | 79 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 79 | vec_res.resize(col_left->get_data().size()); | 474 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 79 | vec_res); | 478 | | | 479 | 79 | block.replace_by_position(result, std::move(col_res)); | 480 | 79 | } else if (!left_is_const && right_is_const) { | 481 | 53 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 53 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 53 | vec_res.resize(col_left->size()); | 485 | 53 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 53 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 53 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 53 | col_right->get_element(0), vec_res); | 489 | | | 490 | 53 | block.replace_by_position(result, std::move(col_res)); | 491 | 53 | } else if (left_is_const && !right_is_const) { | 492 | 16 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 16 | vec_res.resize(col_right->size()); | 496 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 16 | col_right->get_data(), vec_res); | 500 | | | 501 | 16 | block.replace_by_position(result, std::move(col_res)); | 502 | 16 | } | 503 | 148 | return Status::OK(); | 504 | 148 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 14 | const ColumnPtr& col_right_ptr) const { | 461 | 14 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 14 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 14 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 14 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 14 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 14 | if (!left_is_const && !right_is_const) { | 470 | 5 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 5 | vec_res.resize(col_left->get_data().size()); | 474 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 5 | vec_res); | 478 | | | 479 | 5 | block.replace_by_position(result, std::move(col_res)); | 480 | 9 | } else if (!left_is_const && right_is_const) { | 481 | 9 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 9 | vec_res.resize(col_left->size()); | 485 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 9 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 9 | col_right->get_element(0), vec_res); | 489 | | | 490 | 9 | block.replace_by_position(result, std::move(col_res)); | 491 | 9 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 14 | return Status::OK(); | 504 | 14 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 7 | const ColumnPtr& col_right_ptr) const { | 461 | 7 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 7 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 7 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 7 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 7 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 7 | if (!left_is_const && !right_is_const) { | 470 | 5 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 5 | vec_res.resize(col_left->get_data().size()); | 474 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 5 | vec_res); | 478 | | | 479 | 5 | block.replace_by_position(result, std::move(col_res)); | 480 | 5 | } else if (!left_is_const && right_is_const) { | 481 | 2 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2 | vec_res.resize(col_left->size()); | 485 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2 | col_right->get_element(0), vec_res); | 489 | | | 490 | 2 | block.replace_by_position(result, std::move(col_res)); | 491 | 2 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 7 | return Status::OK(); | 504 | 7 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 84 | const ColumnPtr& col_right_ptr) const { | 461 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 84 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 84 | if (!left_is_const && !right_is_const) { | 470 | 82 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 82 | vec_res.resize(col_left->get_data().size()); | 474 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 82 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 82 | vec_res); | 478 | | | 479 | 82 | block.replace_by_position(result, std::move(col_res)); | 480 | 82 | } else if (!left_is_const && right_is_const) { | 481 | 2 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2 | vec_res.resize(col_left->size()); | 485 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2 | col_right->get_element(0), vec_res); | 489 | | | 490 | 2 | block.replace_by_position(result, std::move(col_res)); | 491 | 2 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 84 | return Status::OK(); | 504 | 84 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 336 | const ColumnPtr& col_right_ptr) const { | 461 | 336 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 336 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 336 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 336 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 336 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 336 | if (!left_is_const && !right_is_const) { | 470 | 75 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 75 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 75 | vec_res.resize(col_left->get_data().size()); | 474 | 75 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 75 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 75 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 75 | vec_res); | 478 | | | 479 | 75 | block.replace_by_position(result, std::move(col_res)); | 480 | 261 | } else if (!left_is_const && right_is_const) { | 481 | 261 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 261 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 261 | vec_res.resize(col_left->size()); | 485 | 261 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 261 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 261 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 261 | col_right->get_element(0), vec_res); | 489 | | | 490 | 261 | block.replace_by_position(result, std::move(col_res)); | 491 | 261 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 336 | return Status::OK(); | 504 | 336 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 4 | const ColumnPtr& col_right_ptr) const { | 461 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 4 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 4 | if (!left_is_const && !right_is_const) { | 470 | 4 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 4 | vec_res.resize(col_left->get_data().size()); | 474 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 4 | vec_res); | 478 | | | 479 | 4 | block.replace_by_position(result, std::move(col_res)); | 480 | 4 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 4 | return Status::OK(); | 504 | 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 | 460 | 82 | const ColumnPtr& col_right_ptr) const { | 461 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 82 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 82 | if (!left_is_const && !right_is_const) { | 470 | 47 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 47 | vec_res.resize(col_left->get_data().size()); | 474 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 47 | vec_res); | 478 | | | 479 | 47 | block.replace_by_position(result, std::move(col_res)); | 480 | 47 | } else if (!left_is_const && right_is_const) { | 481 | 35 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 35 | vec_res.resize(col_left->size()); | 485 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 35 | col_right->get_element(0), vec_res); | 489 | | | 490 | 35 | block.replace_by_position(result, std::move(col_res)); | 491 | 35 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 82 | return Status::OK(); | 504 | 82 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 4 | const ColumnPtr& col_right_ptr) const { | 461 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 4 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 4 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 4 | } else if (!left_is_const && right_is_const) { | 481 | 4 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 4 | vec_res.resize(col_left->size()); | 485 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 4 | col_right->get_element(0), vec_res); | 489 | | | 490 | 4 | block.replace_by_position(result, std::move(col_res)); | 491 | 4 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 4 | return Status::OK(); | 504 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ 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 | 460 | 100 | const ColumnPtr& col_right_ptr) const { | 461 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 100 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 100 | if (!left_is_const && !right_is_const) { | 470 | 56 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 56 | vec_res.resize(col_left->get_data().size()); | 474 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 56 | vec_res); | 478 | | | 479 | 56 | block.replace_by_position(result, std::move(col_res)); | 480 | 56 | } else if (!left_is_const && right_is_const) { | 481 | 44 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 44 | vec_res.resize(col_left->size()); | 485 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 44 | col_right->get_element(0), vec_res); | 489 | | | 490 | 44 | block.replace_by_position(result, std::move(col_res)); | 491 | 44 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 100 | return Status::OK(); | 504 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 10 | const ColumnPtr& col_right_ptr) const { | 461 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 10 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 10 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 10 | } else if (!left_is_const && right_is_const) { | 481 | 10 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 10 | vec_res.resize(col_left->size()); | 485 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 10 | col_right->get_element(0), vec_res); | 489 | | | 490 | 10 | block.replace_by_position(result, std::move(col_res)); | 491 | 10 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 10 | return Status::OK(); | 504 | 10 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.34k | const ColumnPtr& col_right_ptr) const { | 461 | 2.34k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.34k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.34k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.34k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.34k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.34k | if (!left_is_const && !right_is_const) { | 470 | 1.14k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.14k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.14k | vec_res.resize(col_left->get_data().size()); | 474 | 1.14k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.14k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.14k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.14k | vec_res); | 478 | | | 479 | 1.14k | block.replace_by_position(result, std::move(col_res)); | 480 | 1.19k | } else if (!left_is_const && right_is_const) { | 481 | 1.19k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.19k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.19k | vec_res.resize(col_left->size()); | 485 | 1.19k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.19k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.19k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.19k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.19k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.19k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2.34k | return Status::OK(); | 504 | 2.34k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 3.12k | const ColumnPtr& col_right_ptr) const { | 461 | 3.12k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 3.12k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 3.12k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 3.12k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 3.12k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 3.12k | if (!left_is_const && !right_is_const) { | 470 | 388 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 388 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 388 | vec_res.resize(col_left->get_data().size()); | 474 | 388 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 388 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 388 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 388 | vec_res); | 478 | | | 479 | 388 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.74k | } else if (!left_is_const && right_is_const) { | 481 | 1.94k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.94k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.94k | vec_res.resize(col_left->size()); | 485 | 1.94k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.94k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.94k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.94k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.94k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.94k | } else if (left_is_const && !right_is_const) { | 492 | 802 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 802 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 802 | vec_res.resize(col_right->size()); | 496 | 802 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 802 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 802 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 802 | col_right->get_data(), vec_res); | 500 | | | 501 | 802 | block.replace_by_position(result, std::move(col_res)); | 502 | 802 | } | 503 | 3.12k | return Status::OK(); | 504 | 3.12k | } |
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 | 460 | 27 | const ColumnPtr& col_right_ptr) const { | 461 | 27 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 27 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 27 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 27 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 27 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 28 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 28 | } else if (!left_is_const && right_is_const) { | 481 | 28 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 28 | vec_res.resize(col_left->size()); | 485 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 28 | col_right->get_element(0), vec_res); | 489 | | | 490 | 28 | block.replace_by_position(result, std::move(col_res)); | 491 | 18.4E | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 27 | return Status::OK(); | 504 | 27 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 37 | const ColumnPtr& col_right_ptr) const { | 461 | 37 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 37 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 37 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 37 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 37 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 37 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 37 | } else if (!left_is_const && right_is_const) { | 481 | 37 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 37 | vec_res.resize(col_left->size()); | 485 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 37 | col_right->get_element(0), vec_res); | 489 | | | 490 | 37 | block.replace_by_position(result, std::move(col_res)); | 491 | 37 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 37 | return Status::OK(); | 504 | 37 | } |
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 | 460 | 1.14k | const ColumnPtr& col_right_ptr) const { | 461 | 1.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.14k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.14k | if (!left_is_const && !right_is_const) { | 470 | 1.00k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.00k | vec_res.resize(col_left->get_data().size()); | 474 | 1.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.00k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.00k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.00k | vec_res); | 478 | | | 479 | 1.00k | block.replace_by_position(result, std::move(col_res)); | 480 | 1.00k | } else if (!left_is_const && right_is_const) { | 481 | 139 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 139 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 139 | vec_res.resize(col_left->size()); | 485 | 139 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 139 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 139 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 139 | col_right->get_element(0), vec_res); | 489 | | | 490 | 139 | block.replace_by_position(result, std::move(col_res)); | 491 | 139 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1.14k | return Status::OK(); | 504 | 1.14k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 102 | const ColumnPtr& col_right_ptr) const { | 461 | 102 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 102 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 102 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 102 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 102 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 102 | if (!left_is_const && !right_is_const) { | 470 | 8 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 8 | vec_res.resize(col_left->get_data().size()); | 474 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 8 | vec_res); | 478 | | | 479 | 8 | block.replace_by_position(result, std::move(col_res)); | 480 | 94 | } else if (!left_is_const && right_is_const) { | 481 | 94 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 94 | vec_res.resize(col_left->size()); | 485 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 94 | col_right->get_element(0), vec_res); | 489 | | | 490 | 94 | block.replace_by_position(result, std::move(col_res)); | 491 | 94 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 102 | return Status::OK(); | 504 | 102 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.03k | const ColumnPtr& col_right_ptr) const { | 461 | 1.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.03k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.03k | if (!left_is_const && !right_is_const) { | 470 | 38 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 38 | vec_res.resize(col_left->get_data().size()); | 474 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 38 | vec_res); | 478 | | | 479 | 38 | block.replace_by_position(result, std::move(col_res)); | 480 | 997 | } else if (!left_is_const && right_is_const) { | 481 | 812 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 812 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 812 | vec_res.resize(col_left->size()); | 485 | 812 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 812 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 812 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 812 | col_right->get_element(0), vec_res); | 489 | | | 490 | 812 | block.replace_by_position(result, std::move(col_res)); | 491 | 812 | } else if (left_is_const && !right_is_const) { | 492 | 186 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 186 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 186 | vec_res.resize(col_right->size()); | 496 | 186 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 186 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 186 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 186 | col_right->get_data(), vec_res); | 500 | | | 501 | 186 | block.replace_by_position(result, std::move(col_res)); | 502 | 186 | } | 503 | 1.03k | return Status::OK(); | 504 | 1.03k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.74k | const ColumnPtr& col_right_ptr) const { | 461 | 1.74k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.74k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.74k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.74k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.74k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.74k | if (!left_is_const && !right_is_const) { | 470 | 112 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 112 | vec_res.resize(col_left->get_data().size()); | 474 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 112 | vec_res); | 478 | | | 479 | 112 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.63k | } else if (!left_is_const && right_is_const) { | 481 | 1.44k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.44k | vec_res.resize(col_left->size()); | 485 | 1.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.44k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.44k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.44k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.44k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.44k | } else if (left_is_const && !right_is_const) { | 492 | 192 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 192 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 192 | vec_res.resize(col_right->size()); | 496 | 192 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 192 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 192 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 192 | col_right->get_data(), vec_res); | 500 | | | 501 | 192 | block.replace_by_position(result, std::move(col_res)); | 502 | 192 | } | 503 | 1.74k | return Status::OK(); | 504 | 1.74k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 18.2k | const ColumnPtr& col_right_ptr) const { | 461 | 18.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 18.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 18.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 18.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 18.2k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 18.2k | if (!left_is_const && !right_is_const) { | 470 | 82 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 82 | vec_res.resize(col_left->get_data().size()); | 474 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 82 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 82 | vec_res); | 478 | | | 479 | 82 | block.replace_by_position(result, std::move(col_res)); | 480 | 18.1k | } else if (!left_is_const && right_is_const) { | 481 | 14.8k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 14.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 14.8k | vec_res.resize(col_left->size()); | 485 | 14.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 14.8k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 14.8k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 14.8k | col_right->get_element(0), vec_res); | 489 | | | 490 | 14.8k | block.replace_by_position(result, std::move(col_res)); | 491 | 14.8k | } else if (left_is_const && !right_is_const) { | 492 | 3.33k | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 3.33k | vec_res.resize(col_right->size()); | 496 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 3.33k | col_right->get_data(), vec_res); | 500 | | | 501 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 502 | 3.33k | } | 503 | 18.2k | return Status::OK(); | 504 | 18.2k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 13.9k | const ColumnPtr& col_right_ptr) const { | 461 | 13.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 13.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 13.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 13.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 13.9k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 13.9k | if (!left_is_const && !right_is_const) { | 470 | 64 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 64 | vec_res.resize(col_left->get_data().size()); | 474 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 64 | vec_res); | 478 | | | 479 | 64 | block.replace_by_position(result, std::move(col_res)); | 480 | 13.9k | } else if (!left_is_const && right_is_const) { | 481 | 13.4k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 13.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 13.4k | vec_res.resize(col_left->size()); | 485 | 13.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 13.4k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 13.4k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 13.4k | col_right->get_element(0), vec_res); | 489 | | | 490 | 13.4k | block.replace_by_position(result, std::move(col_res)); | 491 | 13.4k | } else if (left_is_const && !right_is_const) { | 492 | 501 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 501 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 501 | vec_res.resize(col_right->size()); | 496 | 501 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 501 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 501 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 501 | col_right->get_data(), vec_res); | 500 | | | 501 | 501 | block.replace_by_position(result, std::move(col_res)); | 502 | 501 | } | 503 | 13.9k | return Status::OK(); | 504 | 13.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 251 | const ColumnPtr& col_right_ptr) const { | 461 | 251 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 251 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 251 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 251 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 251 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 251 | if (!left_is_const && !right_is_const) { | 470 | 2 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 2 | vec_res.resize(col_left->get_data().size()); | 474 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 2 | vec_res); | 478 | | | 479 | 2 | block.replace_by_position(result, std::move(col_res)); | 480 | 249 | } else if (!left_is_const && right_is_const) { | 481 | 201 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 201 | vec_res.resize(col_left->size()); | 485 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 201 | col_right->get_element(0), vec_res); | 489 | | | 490 | 201 | block.replace_by_position(result, std::move(col_res)); | 491 | 201 | } else if (left_is_const && !right_is_const) { | 492 | 48 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 48 | vec_res.resize(col_right->size()); | 496 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 48 | col_right->get_data(), vec_res); | 500 | | | 501 | 48 | block.replace_by_position(result, std::move(col_res)); | 502 | 48 | } | 503 | 251 | return Status::OK(); | 504 | 251 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 4 | const ColumnPtr& col_right_ptr) const { | 461 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 4 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 4 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 3 | } else if (!left_is_const && right_is_const) { | 481 | 3 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 3 | vec_res.resize(col_left->size()); | 485 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 3 | col_right->get_element(0), vec_res); | 489 | | | 490 | 3 | block.replace_by_position(result, std::move(col_res)); | 491 | 3 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 4 | return Status::OK(); | 504 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 216 | const ColumnPtr& col_right_ptr) const { | 461 | 216 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 216 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 216 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 216 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 216 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 216 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 216 | } else if (!left_is_const && right_is_const) { | 481 | 216 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 216 | vec_res.resize(col_left->size()); | 485 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 216 | col_right->get_element(0), vec_res); | 489 | | | 490 | 216 | block.replace_by_position(result, std::move(col_res)); | 491 | 216 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 216 | return Status::OK(); | 504 | 216 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.13k | const ColumnPtr& col_right_ptr) const { | 461 | 2.13k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.13k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.13k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.13k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.13k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.13k | if (!left_is_const && !right_is_const) { | 470 | 11 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 11 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 11 | vec_res.resize(col_left->get_data().size()); | 474 | 11 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 11 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 11 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 11 | vec_res); | 478 | | | 479 | 11 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.11k | } else if (!left_is_const && right_is_const) { | 481 | 2.11k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2.11k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2.11k | vec_res.resize(col_left->size()); | 485 | 2.11k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2.11k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2.11k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2.11k | col_right->get_element(0), vec_res); | 489 | | | 490 | 2.11k | block.replace_by_position(result, std::move(col_res)); | 491 | 2.11k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2.13k | return Status::OK(); | 504 | 2.13k | } |
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 | 460 | 146 | const ColumnPtr& col_right_ptr) const { | 461 | 146 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 146 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 146 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 146 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 146 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 146 | if (!left_is_const && !right_is_const) { | 470 | 42 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 42 | vec_res.resize(col_left->get_data().size()); | 474 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 42 | vec_res); | 478 | | | 479 | 42 | block.replace_by_position(result, std::move(col_res)); | 480 | 104 | } else if (!left_is_const && right_is_const) { | 481 | 104 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 104 | vec_res.resize(col_left->size()); | 485 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 104 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 104 | col_right->get_element(0), vec_res); | 489 | | | 490 | 104 | block.replace_by_position(result, std::move(col_res)); | 491 | 104 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 146 | return Status::OK(); | 504 | 146 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.19k | const ColumnPtr& col_right_ptr) const { | 461 | 2.19k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.19k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.19k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.19k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.19k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.19k | if (!left_is_const && !right_is_const) { | 470 | 61 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 61 | vec_res.resize(col_left->get_data().size()); | 474 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 61 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 61 | vec_res); | 478 | | | 479 | 61 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.13k | } else if (!left_is_const && right_is_const) { | 481 | 2.13k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2.13k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2.13k | vec_res.resize(col_left->size()); | 485 | 2.13k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2.13k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2.13k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2.13k | col_right->get_element(0), vec_res); | 489 | | | 490 | 2.13k | block.replace_by_position(result, std::move(col_res)); | 491 | 2.13k | } else if (left_is_const && !right_is_const) { | 492 | 6 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 6 | vec_res.resize(col_right->size()); | 496 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 6 | col_right->get_data(), vec_res); | 500 | | | 501 | 6 | block.replace_by_position(result, std::move(col_res)); | 502 | 6 | } | 503 | 2.19k | return Status::OK(); | 504 | 2.19k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 861 | const ColumnPtr& col_right_ptr) const { | 461 | 861 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 861 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 861 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 861 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 861 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 861 | if (!left_is_const && !right_is_const) { | 470 | 96 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 96 | vec_res.resize(col_left->get_data().size()); | 474 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 96 | vec_res); | 478 | | | 479 | 96 | block.replace_by_position(result, std::move(col_res)); | 480 | 765 | } else if (!left_is_const && right_is_const) { | 481 | 765 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 765 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 765 | vec_res.resize(col_left->size()); | 485 | 765 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 765 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 765 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 765 | col_right->get_element(0), vec_res); | 489 | | | 490 | 765 | block.replace_by_position(result, std::move(col_res)); | 491 | 765 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 861 | return Status::OK(); | 504 | 861 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 89 | const ColumnPtr& col_right_ptr) const { | 461 | 89 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 89 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 89 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 89 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 89 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 89 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 89 | } else if (!left_is_const && right_is_const) { | 481 | 89 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 89 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 89 | vec_res.resize(col_left->size()); | 485 | 89 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 89 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 89 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 89 | col_right->get_element(0), vec_res); | 489 | | | 490 | 89 | block.replace_by_position(result, std::move(col_res)); | 491 | 89 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 89 | return Status::OK(); | 504 | 89 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 110 | const ColumnPtr& col_right_ptr) const { | 461 | 110 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 110 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 110 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 110 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 110 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 110 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 110 | } else if (!left_is_const && right_is_const) { | 481 | 110 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 110 | vec_res.resize(col_left->size()); | 485 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 110 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 110 | col_right->get_element(0), vec_res); | 489 | | | 490 | 110 | block.replace_by_position(result, std::move(col_res)); | 491 | 110 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 110 | return Status::OK(); | 504 | 110 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 9.30k | const ColumnPtr& col_right_ptr) const { | 461 | 9.30k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 9.30k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 9.30k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 9.30k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 9.30k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 9.30k | if (!left_is_const && !right_is_const) { | 470 | 79 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 79 | vec_res.resize(col_left->get_data().size()); | 474 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 79 | vec_res); | 478 | | | 479 | 79 | block.replace_by_position(result, std::move(col_res)); | 480 | 9.22k | } else if (!left_is_const && right_is_const) { | 481 | 9.22k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 9.22k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 9.22k | vec_res.resize(col_left->size()); | 485 | 9.22k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 9.22k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 9.22k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 9.22k | col_right->get_element(0), vec_res); | 489 | | | 490 | 9.22k | block.replace_by_position(result, std::move(col_res)); | 491 | 9.22k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 9.30k | return Status::OK(); | 504 | 9.30k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 551 | const ColumnPtr& col_right_ptr) const { | 461 | 551 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 551 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 551 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 551 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 551 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 551 | if (!left_is_const && !right_is_const) { | 470 | 38 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 38 | vec_res.resize(col_left->get_data().size()); | 474 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 38 | vec_res); | 478 | | | 479 | 38 | block.replace_by_position(result, std::move(col_res)); | 480 | 513 | } else if (!left_is_const && right_is_const) { | 481 | 513 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 513 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 513 | vec_res.resize(col_left->size()); | 485 | 513 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 513 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 513 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 513 | col_right->get_element(0), vec_res); | 489 | | | 490 | 513 | block.replace_by_position(result, std::move(col_res)); | 491 | 513 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 551 | return Status::OK(); | 504 | 551 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 50 | const ColumnPtr& col_right_ptr) const { | 461 | 50 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 50 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 50 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 50 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 50 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 50 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 50 | } else if (!left_is_const && right_is_const) { | 481 | 50 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 50 | vec_res.resize(col_left->size()); | 485 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 50 | col_right->get_element(0), vec_res); | 489 | | | 490 | 50 | block.replace_by_position(result, std::move(col_res)); | 491 | 50 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 50 | return Status::OK(); | 504 | 50 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 11 | const ColumnPtr& col_right_ptr) const { | 461 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 11 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 11 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 10 | } else if (!left_is_const && right_is_const) { | 481 | 10 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 10 | vec_res.resize(col_left->size()); | 485 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 10 | col_right->get_element(0), vec_res); | 489 | | | 490 | 10 | block.replace_by_position(result, std::move(col_res)); | 491 | 10 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 11 | return Status::OK(); | 504 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 182 | const ColumnPtr& col_right_ptr) const { | 461 | 182 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 182 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 182 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 182 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 182 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 182 | if (!left_is_const && !right_is_const) { | 470 | 60 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 60 | vec_res.resize(col_left->get_data().size()); | 474 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 60 | vec_res); | 478 | | | 479 | 60 | block.replace_by_position(result, std::move(col_res)); | 480 | 122 | } else if (!left_is_const && right_is_const) { | 481 | 122 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 122 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 122 | vec_res.resize(col_left->size()); | 485 | 122 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 122 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 122 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 122 | col_right->get_element(0), vec_res); | 489 | | | 490 | 122 | block.replace_by_position(result, std::move(col_res)); | 491 | 122 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 182 | return Status::OK(); | 504 | 182 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 127 | const ColumnPtr& col_right_ptr) const { | 461 | 127 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 127 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 127 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 127 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 127 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 127 | if (!left_is_const && !right_is_const) { | 470 | 4 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 4 | vec_res.resize(col_left->get_data().size()); | 474 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 4 | vec_res); | 478 | | | 479 | 4 | block.replace_by_position(result, std::move(col_res)); | 480 | 123 | } else if (!left_is_const && right_is_const) { | 481 | 123 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 123 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 123 | vec_res.resize(col_left->size()); | 485 | 123 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 123 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 123 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 123 | col_right->get_element(0), vec_res); | 489 | | | 490 | 123 | block.replace_by_position(result, std::move(col_res)); | 491 | 123 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 127 | return Status::OK(); | 504 | 127 | } |
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 | 460 | 78 | const ColumnPtr& col_right_ptr) const { | 461 | 78 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 78 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 78 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 78 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 78 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 78 | if (!left_is_const && !right_is_const) { | 470 | 78 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 78 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 78 | vec_res.resize(col_left->get_data().size()); | 474 | 78 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 78 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 78 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 78 | vec_res); | 478 | | | 479 | 78 | block.replace_by_position(result, std::move(col_res)); | 480 | 78 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 78 | return Status::OK(); | 504 | 78 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.22k | const ColumnPtr& col_right_ptr) const { | 461 | 2.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.22k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.23k | if (!left_is_const && !right_is_const) { | 470 | 1.81k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.81k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.81k | vec_res.resize(col_left->get_data().size()); | 474 | 1.81k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.81k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.81k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.81k | vec_res); | 478 | | | 479 | 1.81k | block.replace_by_position(result, std::move(col_res)); | 480 | 1.81k | } else if (!left_is_const && right_is_const) { | 481 | 416 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 416 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 416 | vec_res.resize(col_left->size()); | 485 | 416 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 416 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 416 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 416 | col_right->get_element(0), vec_res); | 489 | | | 490 | 416 | block.replace_by_position(result, std::move(col_res)); | 491 | 18.4E | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2.22k | return Status::OK(); | 504 | 2.22k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 650 | const ColumnPtr& col_right_ptr) const { | 461 | 650 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 650 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 650 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 650 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 650 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 650 | if (!left_is_const && !right_is_const) { | 470 | 213 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 213 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 213 | vec_res.resize(col_left->get_data().size()); | 474 | 213 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 213 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 213 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 213 | vec_res); | 478 | | | 479 | 213 | block.replace_by_position(result, std::move(col_res)); | 480 | 437 | } else if (!left_is_const && right_is_const) { | 481 | 437 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 437 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 437 | vec_res.resize(col_left->size()); | 485 | 437 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 437 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 437 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 437 | col_right->get_element(0), vec_res); | 489 | | | 490 | 437 | block.replace_by_position(result, std::move(col_res)); | 491 | 437 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 650 | return Status::OK(); | 504 | 650 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.06k | const ColumnPtr& col_right_ptr) const { | 461 | 2.06k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.06k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.06k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.06k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.06k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.06k | if (!left_is_const && !right_is_const) { | 470 | 145 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 145 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 145 | vec_res.resize(col_left->get_data().size()); | 474 | 145 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 145 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 145 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 145 | vec_res); | 478 | | | 479 | 145 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.91k | } else if (!left_is_const && right_is_const) { | 481 | 1.74k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.74k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.74k | vec_res.resize(col_left->size()); | 485 | 1.74k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.74k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.74k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.74k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.74k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.74k | } else if (left_is_const && !right_is_const) { | 492 | 168 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 168 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 168 | vec_res.resize(col_right->size()); | 496 | 168 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 168 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 168 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 168 | col_right->get_data(), vec_res); | 500 | | | 501 | 168 | block.replace_by_position(result, std::move(col_res)); | 502 | 168 | } | 503 | 2.06k | return Status::OK(); | 504 | 2.06k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 267 | const ColumnPtr& col_right_ptr) const { | 461 | 267 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 267 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 267 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 267 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 267 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 267 | if (!left_is_const && !right_is_const) { | 470 | 123 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 123 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 123 | vec_res.resize(col_left->get_data().size()); | 474 | 123 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 123 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 123 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 123 | vec_res); | 478 | | | 479 | 123 | block.replace_by_position(result, std::move(col_res)); | 480 | 144 | } else if (!left_is_const && right_is_const) { | 481 | 144 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 144 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 144 | vec_res.resize(col_left->size()); | 485 | 144 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 144 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 144 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 144 | col_right->get_element(0), vec_res); | 489 | | | 490 | 144 | block.replace_by_position(result, std::move(col_res)); | 491 | 144 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 267 | return Status::OK(); | 504 | 267 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 3.13k | const ColumnPtr& col_right_ptr) const { | 461 | 3.13k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 3.13k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 3.13k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 3.13k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 3.13k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 3.13k | if (!left_is_const && !right_is_const) { | 470 | 148 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 148 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 148 | vec_res.resize(col_left->get_data().size()); | 474 | 148 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 148 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 148 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 148 | vec_res); | 478 | | | 479 | 148 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.98k | } else if (!left_is_const && right_is_const) { | 481 | 2.86k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2.86k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2.86k | vec_res.resize(col_left->size()); | 485 | 2.86k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2.86k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2.86k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2.86k | col_right->get_element(0), vec_res); | 489 | | | 490 | 2.86k | block.replace_by_position(result, std::move(col_res)); | 491 | 2.86k | } else if (left_is_const && !right_is_const) { | 492 | 119 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 119 | vec_res.resize(col_right->size()); | 496 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 119 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 119 | col_right->get_data(), vec_res); | 500 | | | 501 | 119 | block.replace_by_position(result, std::move(col_res)); | 502 | 119 | } | 503 | 3.13k | return Status::OK(); | 504 | 3.13k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.70k | const ColumnPtr& col_right_ptr) const { | 461 | 1.70k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.70k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.70k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.70k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.70k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.70k | if (!left_is_const && !right_is_const) { | 470 | 194 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 194 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 194 | vec_res.resize(col_left->get_data().size()); | 474 | 194 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 194 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 194 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 194 | vec_res); | 478 | | | 479 | 194 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.51k | } else if (!left_is_const && right_is_const) { | 481 | 1.43k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.43k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.43k | vec_res.resize(col_left->size()); | 485 | 1.43k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.43k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.43k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.43k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.43k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.43k | } else if (left_is_const && !right_is_const) { | 492 | 79 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 79 | vec_res.resize(col_right->size()); | 496 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 79 | col_right->get_data(), vec_res); | 500 | | | 501 | 79 | block.replace_by_position(result, std::move(col_res)); | 502 | 79 | } | 503 | 1.70k | return Status::OK(); | 504 | 1.70k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 277 | const ColumnPtr& col_right_ptr) const { | 461 | 277 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 277 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 277 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 277 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 277 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 277 | if (!left_is_const && !right_is_const) { | 470 | 137 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 137 | vec_res.resize(col_left->get_data().size()); | 474 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 137 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 137 | vec_res); | 478 | | | 479 | 137 | block.replace_by_position(result, std::move(col_res)); | 480 | 140 | } else if (!left_is_const && right_is_const) { | 481 | 52 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 52 | vec_res.resize(col_left->size()); | 485 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 52 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 52 | col_right->get_element(0), vec_res); | 489 | | | 490 | 52 | block.replace_by_position(result, std::move(col_res)); | 491 | 88 | } else if (left_is_const && !right_is_const) { | 492 | 88 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 88 | vec_res.resize(col_right->size()); | 496 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 88 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 88 | col_right->get_data(), vec_res); | 500 | | | 501 | 88 | block.replace_by_position(result, std::move(col_res)); | 502 | 88 | } | 503 | 277 | return Status::OK(); | 504 | 277 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 18 | const ColumnPtr& col_right_ptr) const { | 461 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 18 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 18 | if (!left_is_const && !right_is_const) { | 470 | 16 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 16 | vec_res.resize(col_left->get_data().size()); | 474 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 16 | vec_res); | 478 | | | 479 | 16 | block.replace_by_position(result, std::move(col_res)); | 480 | 16 | } else if (!left_is_const && right_is_const) { | 481 | 2 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2 | vec_res.resize(col_left->size()); | 485 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2 | col_right->get_element(0), vec_res); | 489 | | | 490 | 2 | block.replace_by_position(result, std::move(col_res)); | 491 | 2 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 18 | return Status::OK(); | 504 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 16 | const ColumnPtr& col_right_ptr) const { | 461 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 16 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 16 | if (!left_is_const && !right_is_const) { | 470 | 16 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 16 | vec_res.resize(col_left->get_data().size()); | 474 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 16 | vec_res); | 478 | | | 479 | 16 | block.replace_by_position(result, std::move(col_res)); | 480 | 16 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 16 | return Status::OK(); | 504 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 147 | const ColumnPtr& col_right_ptr) const { | 461 | 147 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 147 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 147 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 147 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 147 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 147 | if (!left_is_const && !right_is_const) { | 470 | 119 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 119 | vec_res.resize(col_left->get_data().size()); | 474 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 119 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 119 | vec_res); | 478 | | | 479 | 119 | block.replace_by_position(result, std::move(col_res)); | 480 | 119 | } else if (!left_is_const && right_is_const) { | 481 | 28 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 28 | vec_res.resize(col_left->size()); | 485 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 28 | col_right->get_element(0), vec_res); | 489 | | | 490 | 28 | block.replace_by_position(result, std::move(col_res)); | 491 | 28 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 147 | return Status::OK(); | 504 | 147 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 323 | const ColumnPtr& col_right_ptr) const { | 461 | 323 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 323 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 323 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 323 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 323 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 323 | if (!left_is_const && !right_is_const) { | 470 | 114 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 114 | vec_res.resize(col_left->get_data().size()); | 474 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 114 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 114 | vec_res); | 478 | | | 479 | 114 | block.replace_by_position(result, std::move(col_res)); | 480 | 209 | } else if (!left_is_const && right_is_const) { | 481 | 208 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 208 | vec_res.resize(col_left->size()); | 485 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 208 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 208 | col_right->get_element(0), vec_res); | 489 | | | 490 | 208 | block.replace_by_position(result, std::move(col_res)); | 491 | 208 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 323 | return Status::OK(); | 504 | 323 | } |
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 | 460 | 136 | const ColumnPtr& col_right_ptr) const { | 461 | 136 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 136 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 136 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 136 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 136 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 136 | if (!left_is_const && !right_is_const) { | 470 | 42 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 42 | vec_res.resize(col_left->get_data().size()); | 474 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 42 | vec_res); | 478 | | | 479 | 42 | block.replace_by_position(result, std::move(col_res)); | 480 | 94 | } else if (!left_is_const && right_is_const) { | 481 | 94 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 94 | vec_res.resize(col_left->size()); | 485 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 94 | col_right->get_element(0), vec_res); | 489 | | | 490 | 94 | block.replace_by_position(result, std::move(col_res)); | 491 | 94 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 136 | return Status::OK(); | 504 | 136 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 6.70k | const ColumnPtr& col_right_ptr) const { | 461 | 6.70k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 6.70k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 6.70k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 6.70k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 6.70k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 6.70k | if (!left_is_const && !right_is_const) { | 470 | 479 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 479 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 479 | vec_res.resize(col_left->get_data().size()); | 474 | 479 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 479 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 479 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 479 | vec_res); | 478 | | | 479 | 479 | block.replace_by_position(result, std::move(col_res)); | 480 | 6.23k | } else if (!left_is_const && right_is_const) { | 481 | 6.22k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 6.22k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 6.22k | vec_res.resize(col_left->size()); | 485 | 6.22k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 6.22k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 6.22k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 6.22k | col_right->get_element(0), vec_res); | 489 | | | 490 | 6.22k | block.replace_by_position(result, std::move(col_res)); | 491 | 6.22k | } else if (left_is_const && !right_is_const) { | 492 | 5 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 5 | vec_res.resize(col_right->size()); | 496 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 5 | col_right->get_data(), vec_res); | 500 | | | 501 | 5 | block.replace_by_position(result, std::move(col_res)); | 502 | 5 | } | 503 | 6.70k | return Status::OK(); | 504 | 6.70k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 355 | const ColumnPtr& col_right_ptr) const { | 461 | 355 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 355 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 355 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 355 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 355 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 355 | if (!left_is_const && !right_is_const) { | 470 | 90 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 90 | vec_res.resize(col_left->get_data().size()); | 474 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 90 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 90 | vec_res); | 478 | | | 479 | 90 | block.replace_by_position(result, std::move(col_res)); | 480 | 265 | } else if (!left_is_const && right_is_const) { | 481 | 265 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 265 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 265 | vec_res.resize(col_left->size()); | 485 | 265 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 265 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 265 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 265 | col_right->get_element(0), vec_res); | 489 | | | 490 | 265 | block.replace_by_position(result, std::move(col_res)); | 491 | 265 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 355 | return Status::OK(); | 504 | 355 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 131 | const ColumnPtr& col_right_ptr) const { | 461 | 131 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 131 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 131 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 131 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 131 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 131 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 130 | } else if (!left_is_const && right_is_const) { | 481 | 130 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 130 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 130 | vec_res.resize(col_left->size()); | 485 | 130 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 130 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 130 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 130 | col_right->get_element(0), vec_res); | 489 | | | 490 | 130 | block.replace_by_position(result, std::move(col_res)); | 491 | 130 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 131 | return Status::OK(); | 504 | 131 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 155 | const ColumnPtr& col_right_ptr) const { | 461 | 155 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 155 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 155 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 155 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 155 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 155 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 155 | } else if (!left_is_const && right_is_const) { | 481 | 154 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 154 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 154 | vec_res.resize(col_left->size()); | 485 | 154 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 154 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 154 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 154 | col_right->get_element(0), vec_res); | 489 | | | 490 | 154 | block.replace_by_position(result, std::move(col_res)); | 491 | 154 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 155 | return Status::OK(); | 504 | 155 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 17.4k | const ColumnPtr& col_right_ptr) const { | 461 | 17.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 17.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 17.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 17.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 17.4k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 17.4k | if (!left_is_const && !right_is_const) { | 470 | 70 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 70 | vec_res.resize(col_left->get_data().size()); | 474 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 70 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 70 | vec_res); | 478 | | | 479 | 70 | block.replace_by_position(result, std::move(col_res)); | 480 | 17.3k | } else if (!left_is_const && right_is_const) { | 481 | 17.1k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 17.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 17.1k | vec_res.resize(col_left->size()); | 485 | 17.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 17.1k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 17.1k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 17.1k | col_right->get_element(0), vec_res); | 489 | | | 490 | 17.1k | block.replace_by_position(result, std::move(col_res)); | 491 | 17.1k | } else if (left_is_const && !right_is_const) { | 492 | 162 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 162 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 162 | vec_res.resize(col_right->size()); | 496 | 162 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 162 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 162 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 162 | col_right->get_data(), vec_res); | 500 | | | 501 | 162 | block.replace_by_position(result, std::move(col_res)); | 502 | 162 | } | 503 | 17.4k | return Status::OK(); | 504 | 17.4k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 970 | const ColumnPtr& col_right_ptr) const { | 461 | 970 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 970 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 970 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 970 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 970 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 970 | if (!left_is_const && !right_is_const) { | 470 | 99 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 99 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 99 | vec_res.resize(col_left->get_data().size()); | 474 | 99 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 99 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 99 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 99 | vec_res); | 478 | | | 479 | 99 | block.replace_by_position(result, std::move(col_res)); | 480 | 871 | } else if (!left_is_const && right_is_const) { | 481 | 823 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 823 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 823 | vec_res.resize(col_left->size()); | 485 | 823 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 823 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 823 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 823 | col_right->get_element(0), vec_res); | 489 | | | 490 | 823 | block.replace_by_position(result, std::move(col_res)); | 491 | 823 | } else if (left_is_const && !right_is_const) { | 492 | 48 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 48 | vec_res.resize(col_right->size()); | 496 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 48 | col_right->get_data(), vec_res); | 500 | | | 501 | 48 | block.replace_by_position(result, std::move(col_res)); | 502 | 48 | } | 503 | 970 | return Status::OK(); | 504 | 970 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 41 | const ColumnPtr& col_right_ptr) const { | 461 | 41 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 41 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 41 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 41 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 41 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 41 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 41 | } else if (!left_is_const && right_is_const) { | 481 | 41 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 41 | vec_res.resize(col_left->size()); | 485 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 41 | col_right->get_element(0), vec_res); | 489 | | | 490 | 41 | block.replace_by_position(result, std::move(col_res)); | 491 | 41 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 41 | return Status::OK(); | 504 | 41 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 10 | const ColumnPtr& col_right_ptr) const { | 461 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 10 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 10 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 10 | } else if (!left_is_const && right_is_const) { | 481 | 10 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 10 | vec_res.resize(col_left->size()); | 485 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 10 | col_right->get_element(0), vec_res); | 489 | | | 490 | 10 | block.replace_by_position(result, std::move(col_res)); | 491 | 10 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 10 | return Status::OK(); | 504 | 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 | 460 | 178 | const ColumnPtr& col_right_ptr) const { | 461 | 178 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 178 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 178 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 178 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 178 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 178 | if (!left_is_const && !right_is_const) { | 470 | 60 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 60 | vec_res.resize(col_left->get_data().size()); | 474 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 60 | vec_res); | 478 | | | 479 | 60 | block.replace_by_position(result, std::move(col_res)); | 480 | 118 | } else if (!left_is_const && right_is_const) { | 481 | 118 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 118 | vec_res.resize(col_left->size()); | 485 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 118 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 118 | col_right->get_element(0), vec_res); | 489 | | | 490 | 118 | block.replace_by_position(result, std::move(col_res)); | 491 | 118 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 178 | return Status::OK(); | 504 | 178 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 112 | const ColumnPtr& col_right_ptr) const { | 461 | 112 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 112 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 112 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 112 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 112 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 112 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 112 | } else if (!left_is_const && right_is_const) { | 481 | 112 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 112 | vec_res.resize(col_left->size()); | 485 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 112 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 112 | col_right->get_element(0), vec_res); | 489 | | | 490 | 112 | block.replace_by_position(result, std::move(col_res)); | 491 | 112 | } else if (left_is_const && !right_is_const) { | 492 | 1 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 1 | vec_res.resize(col_right->size()); | 496 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 1 | col_right->get_data(), vec_res); | 500 | | | 501 | 1 | block.replace_by_position(result, std::move(col_res)); | 502 | 1 | } | 503 | 112 | return Status::OK(); | 504 | 112 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
505 | | |
506 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
507 | 12.9k | const ColumnWithTypeAndName& col_right) const { |
508 | 12.9k | auto call = [&](const auto& type) -> bool { |
509 | 12.9k | using DispatchType = std::decay_t<decltype(type)>; |
510 | 12.9k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
511 | 12.9k | block, result, col_left, col_right); |
512 | 12.9k | return true; |
513 | 12.9k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 272 | auto call = [&](const auto& type) -> bool { | 509 | 272 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 272 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 272 | block, result, col_left, col_right); | 512 | 272 | return true; | 513 | 272 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 286 | auto call = [&](const auto& type) -> bool { | 509 | 286 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 286 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 286 | block, result, col_left, col_right); | 512 | 286 | return true; | 513 | 286 | }; |
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 | 508 | 1.24k | auto call = [&](const auto& type) -> bool { | 509 | 1.24k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.24k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.24k | block, result, col_left, col_right); | 512 | 1.24k | return true; | 513 | 1.24k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 23 | auto call = [&](const auto& type) -> bool { | 509 | 23 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 23 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 23 | block, result, col_left, col_right); | 512 | 23 | return true; | 513 | 23 | }; |
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 | 508 | 67 | auto call = [&](const auto& type) -> bool { | 509 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 67 | block, result, col_left, col_right); | 512 | 67 | return true; | 513 | 67 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 508 | 324 | auto call = [&](const auto& type) -> bool { | 509 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 324 | block, result, col_left, col_right); | 512 | 324 | return true; | 513 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 28 | auto call = [&](const auto& type) -> bool { | 509 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 28 | block, result, col_left, col_right); | 512 | 28 | return true; | 513 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 46 | auto call = [&](const auto& type) -> bool { | 509 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 46 | block, result, col_left, col_right); | 512 | 46 | return true; | 513 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 5.03k | auto call = [&](const auto& type) -> bool { | 509 | 5.03k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 5.03k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 5.03k | block, result, col_left, col_right); | 512 | 5.03k | return true; | 513 | 5.03k | }; |
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 | 508 | 1.39k | auto call = [&](const auto& type) -> bool { | 509 | 1.39k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.39k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.39k | block, result, col_left, col_right); | 512 | 1.39k | return true; | 513 | 1.39k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 1 | auto call = [&](const auto& type) -> bool { | 509 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1 | block, result, col_left, col_right); | 512 | 1 | return true; | 513 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 9 | auto call = [&](const auto& type) -> bool { | 509 | 9 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 9 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 9 | block, result, col_left, col_right); | 512 | 9 | return true; | 513 | 9 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 271 | auto call = [&](const auto& type) -> bool { | 509 | 271 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 271 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 271 | block, result, col_left, col_right); | 512 | 271 | return true; | 513 | 271 | }; |
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 | 508 | 76 | auto call = [&](const auto& type) -> bool { | 509 | 76 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 76 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 76 | block, result, col_left, col_right); | 512 | 76 | return true; | 513 | 76 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 22 | auto call = [&](const auto& type) -> bool { | 509 | 22 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 22 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 22 | block, result, col_left, col_right); | 512 | 22 | return true; | 513 | 22 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 221 | auto call = [&](const auto& type) -> bool { | 509 | 221 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 221 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 221 | block, result, col_left, col_right); | 512 | 221 | return true; | 513 | 221 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 260 | auto call = [&](const auto& type) -> bool { | 509 | 260 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 260 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 260 | block, result, col_left, col_right); | 512 | 260 | return true; | 513 | 260 | }; |
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 | 508 | 429 | auto call = [&](const auto& type) -> bool { | 509 | 429 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 429 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 429 | block, result, col_left, col_right); | 512 | 429 | return true; | 513 | 429 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 1 | auto call = [&](const auto& type) -> bool { | 509 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1 | block, result, col_left, col_right); | 512 | 1 | return true; | 513 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 4 | auto call = [&](const auto& type) -> bool { | 509 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 4 | block, result, col_left, col_right); | 512 | 4 | return true; | 513 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 1.97k | auto call = [&](const auto& type) -> bool { | 509 | 1.97k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.97k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.97k | block, result, col_left, col_right); | 512 | 1.97k | return true; | 513 | 1.97k | }; |
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 | 508 | 945 | auto call = [&](const auto& type) -> bool { | 509 | 945 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 945 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 945 | block, result, col_left, col_right); | 512 | 945 | return true; | 513 | 945 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 22 | auto call = [&](const auto& type) -> bool { | 509 | 22 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 22 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 22 | block, result, col_left, col_right); | 512 | 22 | return true; | 513 | 22 | }; |
|
514 | | |
515 | 12.9k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
516 | 0 | return Status::RuntimeError( |
517 | 0 | "type of left column {} is not equal to type of right column {}", |
518 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
519 | 0 | } |
520 | | |
521 | 12.9k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
523 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
524 | 0 | } |
525 | 12.9k | return Status::OK(); |
526 | 12.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 1.82k | const ColumnWithTypeAndName& col_right) const { | 508 | 1.82k | auto call = [&](const auto& type) -> bool { | 509 | 1.82k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.82k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.82k | block, result, col_left, col_right); | 512 | 1.82k | return true; | 513 | 1.82k | }; | 514 | | | 515 | 1.82k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 1.82k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 1.82k | return Status::OK(); | 526 | 1.82k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 419 | const ColumnWithTypeAndName& col_right) const { | 508 | 419 | auto call = [&](const auto& type) -> bool { | 509 | 419 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 419 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 419 | block, result, col_left, col_right); | 512 | 419 | return true; | 513 | 419 | }; | 514 | | | 515 | 419 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 419 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 419 | return Status::OK(); | 526 | 419 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 6.47k | const ColumnWithTypeAndName& col_right) const { | 508 | 6.47k | auto call = [&](const auto& type) -> bool { | 509 | 6.47k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 6.47k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 6.47k | block, result, col_left, col_right); | 512 | 6.47k | return true; | 513 | 6.47k | }; | 514 | | | 515 | 6.47k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 6.47k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 6.47k | return Status::OK(); | 526 | 6.47k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 378 | const ColumnWithTypeAndName& col_right) const { | 508 | 378 | auto call = [&](const auto& type) -> bool { | 509 | 378 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 378 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 378 | block, result, col_left, col_right); | 512 | 378 | return true; | 513 | 378 | }; | 514 | | | 515 | 378 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 378 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 378 | return Status::OK(); | 526 | 378 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 911 | const ColumnWithTypeAndName& col_right) const { | 508 | 911 | auto call = [&](const auto& type) -> bool { | 509 | 911 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 911 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 911 | block, result, col_left, col_right); | 512 | 911 | return true; | 513 | 911 | }; | 514 | | | 515 | 911 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 911 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 911 | return Status::OK(); | 526 | 911 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 2.94k | const ColumnWithTypeAndName& col_right) const { | 508 | 2.94k | auto call = [&](const auto& type) -> bool { | 509 | 2.94k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 2.94k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 2.94k | block, result, col_left, col_right); | 512 | 2.94k | return true; | 513 | 2.94k | }; | 514 | | | 515 | 2.94k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 2.94k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 2.94k | return Status::OK(); | 526 | 2.94k | } |
|
527 | | |
528 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
529 | 29.1k | const IColumn* c1) const { |
530 | 29.1k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
531 | 29.1k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
532 | 29.1k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
533 | 29.1k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
534 | 29.1k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
536 | 0 | c0->get_name(), c1->get_name(), name); |
537 | 0 | } |
538 | 29.1k | DCHECK(!(c0_const && c1_const)); |
539 | 29.1k | const ColumnString::Chars* c0_const_chars = nullptr; |
540 | 29.1k | const ColumnString::Chars* c1_const_chars = nullptr; |
541 | 29.1k | ColumnString::Offset c0_const_size = 0; |
542 | 29.1k | ColumnString::Offset c1_const_size = 0; |
543 | | |
544 | 29.1k | if (c0_const) { |
545 | 22 | const ColumnString* c0_const_string = |
546 | 22 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
547 | | |
548 | 22 | if (c0_const_string) { |
549 | 22 | c0_const_chars = &c0_const_string->get_chars(); |
550 | 22 | c0_const_size = c0_const_string->get_offsets()[0]; |
551 | 22 | } else { |
552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
553 | 0 | c0->get_name(), name); |
554 | 0 | } |
555 | 22 | } |
556 | | |
557 | 29.1k | if (c1_const) { |
558 | 25.8k | const ColumnString* c1_const_string = |
559 | 25.8k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
560 | | |
561 | 25.8k | if (c1_const_string) { |
562 | 25.8k | c1_const_chars = &c1_const_string->get_chars(); |
563 | 25.8k | c1_const_size = c1_const_string->get_offsets()[0]; |
564 | 25.8k | } else { |
565 | 2 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
566 | 2 | c1->get_name(), name); |
567 | 2 | } |
568 | 25.8k | } |
569 | | |
570 | 29.1k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
571 | | |
572 | 29.1k | auto c_res = ColumnUInt8::create(); |
573 | 29.1k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
574 | 29.1k | vec_res.resize(c0->size()); |
575 | | |
576 | 29.1k | if (c0_string && c1_string) { |
577 | 3.29k | StringImpl::string_vector_string_vector( |
578 | 3.29k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
579 | 3.29k | c1_string->get_offsets(), vec_res); |
580 | 25.8k | } else if (c0_string && c1_const) { |
581 | 25.8k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
582 | 25.8k | *c1_const_chars, c1_const_size, vec_res); |
583 | 25.8k | } else if (c0_const && c1_string) { |
584 | 22 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
585 | 22 | c1_string->get_chars(), c1_string->get_offsets(), |
586 | 22 | vec_res); |
587 | 18.4E | } else { |
588 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
589 | 18.4E | c0->get_name(), c1->get_name(), name); |
590 | 18.4E | } |
591 | 29.1k | block.replace_by_position(result, std::move(c_res)); |
592 | 29.1k | return Status::OK(); |
593 | 29.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 24.4k | const IColumn* c1) const { | 530 | 24.4k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 24.4k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 24.4k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 24.4k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 24.4k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 24.4k | DCHECK(!(c0_const && c1_const)); | 539 | 24.4k | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 24.4k | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 24.4k | ColumnString::Offset c0_const_size = 0; | 542 | 24.4k | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 24.4k | if (c0_const) { | 545 | 16 | const ColumnString* c0_const_string = | 546 | 16 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | | | 548 | 16 | if (c0_const_string) { | 549 | 16 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 16 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 16 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 16 | } | 556 | | | 557 | 24.4k | if (c1_const) { | 558 | 21.9k | const ColumnString* c1_const_string = | 559 | 21.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 21.9k | if (c1_const_string) { | 562 | 21.9k | c1_const_chars = &c1_const_string->get_chars(); | 563 | 21.9k | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 21.9k | } else { | 565 | 2 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 2 | c1->get_name(), name); | 567 | 2 | } | 568 | 21.9k | } | 569 | | | 570 | 24.4k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 24.4k | auto c_res = ColumnUInt8::create(); | 573 | 24.4k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 24.4k | vec_res.resize(c0->size()); | 575 | | | 576 | 24.4k | if (c0_string && c1_string) { | 577 | 2.55k | StringImpl::string_vector_string_vector( | 578 | 2.55k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 2.55k | c1_string->get_offsets(), vec_res); | 580 | 21.9k | } else if (c0_string && c1_const) { | 581 | 21.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 21.9k | *c1_const_chars, c1_const_size, vec_res); | 583 | 21.9k | } else if (c0_const && c1_string) { | 584 | 16 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 16 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 16 | vec_res); | 587 | 18.4E | } else { | 588 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 18.4E | c0->get_name(), c1->get_name(), name); | 590 | 18.4E | } | 591 | 24.4k | block.replace_by_position(result, std::move(c_res)); | 592 | 24.4k | return Status::OK(); | 593 | 24.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 2.54k | const IColumn* c1) const { | 530 | 2.54k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 2.54k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 2.54k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 2.54k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 2.54k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 2.54k | DCHECK(!(c0_const && c1_const)); | 539 | 2.54k | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 2.54k | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 2.54k | ColumnString::Offset c0_const_size = 0; | 542 | 2.54k | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 2.54k | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 2.54k | if (c1_const) { | 558 | 2.48k | const ColumnString* c1_const_string = | 559 | 2.48k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 2.48k | if (c1_const_string) { | 562 | 2.48k | c1_const_chars = &c1_const_string->get_chars(); | 563 | 2.48k | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 2.48k | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 2.48k | } | 569 | | | 570 | 2.54k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 2.54k | auto c_res = ColumnUInt8::create(); | 573 | 2.54k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 2.54k | vec_res.resize(c0->size()); | 575 | | | 576 | 2.54k | if (c0_string && c1_string) { | 577 | 60 | StringImpl::string_vector_string_vector( | 578 | 60 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 60 | c1_string->get_offsets(), vec_res); | 580 | 2.48k | } else if (c0_string && c1_const) { | 581 | 2.48k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 2.48k | *c1_const_chars, c1_const_size, vec_res); | 583 | 2.48k | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 2.54k | block.replace_by_position(result, std::move(c_res)); | 592 | 2.54k | return Status::OK(); | 593 | 2.54k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 174 | const IColumn* c1) const { | 530 | 174 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 174 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 174 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 174 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 174 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 174 | DCHECK(!(c0_const && c1_const)); | 539 | 174 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 174 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 174 | ColumnString::Offset c0_const_size = 0; | 542 | 174 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 174 | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 174 | if (c1_const) { | 558 | 172 | const ColumnString* c1_const_string = | 559 | 172 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 172 | if (c1_const_string) { | 562 | 172 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 172 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 172 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 172 | } | 569 | | | 570 | 174 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 174 | auto c_res = ColumnUInt8::create(); | 573 | 174 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 174 | vec_res.resize(c0->size()); | 575 | | | 576 | 174 | if (c0_string && c1_string) { | 577 | 2 | StringImpl::string_vector_string_vector( | 578 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 2 | c1_string->get_offsets(), vec_res); | 580 | 172 | } else if (c0_string && c1_const) { | 581 | 172 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 172 | *c1_const_chars, c1_const_size, vec_res); | 583 | 172 | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 174 | block.replace_by_position(result, std::move(c_res)); | 592 | 174 | return Status::OK(); | 593 | 174 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 612 | const IColumn* c1) const { | 530 | 612 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 612 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 612 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 612 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 612 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 612 | DCHECK(!(c0_const && c1_const)); | 539 | 612 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 612 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 612 | ColumnString::Offset c0_const_size = 0; | 542 | 612 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 612 | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 612 | if (c1_const) { | 558 | 490 | const ColumnString* c1_const_string = | 559 | 490 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 490 | if (c1_const_string) { | 562 | 490 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 490 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 490 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 490 | } | 569 | | | 570 | 612 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 612 | auto c_res = ColumnUInt8::create(); | 573 | 612 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 612 | vec_res.resize(c0->size()); | 575 | | | 576 | 612 | if (c0_string && c1_string) { | 577 | 122 | StringImpl::string_vector_string_vector( | 578 | 122 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 122 | c1_string->get_offsets(), vec_res); | 580 | 490 | } else if (c0_string && c1_const) { | 581 | 490 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 490 | *c1_const_chars, c1_const_size, vec_res); | 583 | 490 | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 612 | block.replace_by_position(result, std::move(c_res)); | 592 | 612 | return Status::OK(); | 593 | 612 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 613 | const IColumn* c1) const { | 530 | 613 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 613 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 613 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 613 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 613 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 613 | DCHECK(!(c0_const && c1_const)); | 539 | 613 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 613 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 613 | ColumnString::Offset c0_const_size = 0; | 542 | 613 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 613 | if (c0_const) { | 545 | 6 | const ColumnString* c0_const_string = | 546 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | | | 548 | 6 | if (c0_const_string) { | 549 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 6 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 6 | } | 556 | | | 557 | 613 | if (c1_const) { | 558 | 200 | const ColumnString* c1_const_string = | 559 | 200 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 200 | if (c1_const_string) { | 562 | 200 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 200 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 200 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 200 | } | 569 | | | 570 | 613 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 613 | auto c_res = ColumnUInt8::create(); | 573 | 613 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 613 | vec_res.resize(c0->size()); | 575 | | | 576 | 613 | if (c0_string && c1_string) { | 577 | 407 | StringImpl::string_vector_string_vector( | 578 | 407 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 407 | c1_string->get_offsets(), vec_res); | 580 | 407 | } else if (c0_string && c1_const) { | 581 | 200 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 200 | *c1_const_chars, c1_const_size, vec_res); | 583 | 200 | } else if (c0_const && c1_string) { | 584 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 6 | vec_res); | 587 | 6 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 613 | block.replace_by_position(result, std::move(c_res)); | 592 | 613 | return Status::OK(); | 593 | 613 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 760 | const IColumn* c1) const { | 530 | 760 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 760 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 760 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 760 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 761 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 760 | DCHECK(!(c0_const && c1_const)); | 539 | 760 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 760 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 760 | ColumnString::Offset c0_const_size = 0; | 542 | 760 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 760 | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 760 | if (c1_const) { | 558 | 607 | const ColumnString* c1_const_string = | 559 | 607 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 607 | if (c1_const_string) { | 562 | 607 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 607 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 607 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 607 | } | 569 | | | 570 | 760 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 760 | auto c_res = ColumnUInt8::create(); | 573 | 760 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 760 | vec_res.resize(c0->size()); | 575 | | | 576 | 761 | if (c0_string && c1_string) { | 577 | 154 | StringImpl::string_vector_string_vector( | 578 | 154 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 154 | c1_string->get_offsets(), vec_res); | 580 | 607 | } else if (c0_string && c1_const) { | 581 | 607 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 607 | *c1_const_chars, c1_const_size, vec_res); | 583 | 18.4E | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 18.4E | } else { | 588 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 18.4E | c0->get_name(), c1->get_name(), name); | 590 | 18.4E | } | 591 | 761 | block.replace_by_position(result, std::move(c_res)); | 592 | 761 | return Status::OK(); | 593 | 760 | } |
|
594 | | |
595 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
596 | 158 | const IColumn* c1) const { |
597 | 158 | bool c0_const = is_column_const(*c0); |
598 | 158 | bool c1_const = is_column_const(*c1); |
599 | | |
600 | 158 | DCHECK(!(c0_const && c1_const)); |
601 | | |
602 | 158 | auto c_res = ColumnUInt8::create(); |
603 | 158 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
604 | 158 | vec_res.resize(c0->size()); |
605 | | |
606 | 158 | if (c0_const) { |
607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
608 | 158 | } else if (c1_const) { |
609 | 151 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
610 | 151 | } else { |
611 | 7 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
612 | 7 | } |
613 | | |
614 | 158 | block.replace_by_position(result, std::move(c_res)); |
615 | 158 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 15 | const IColumn* c1) const { | 597 | 15 | bool c0_const = is_column_const(*c0); | 598 | 15 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 15 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 15 | auto c_res = ColumnUInt8::create(); | 603 | 15 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 15 | vec_res.resize(c0->size()); | 605 | | | 606 | 15 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 15 | } else if (c1_const) { | 609 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 13 | } else { | 611 | 2 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 2 | } | 613 | | | 614 | 15 | block.replace_by_position(result, std::move(c_res)); | 615 | 15 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 8 | const IColumn* c1) const { | 597 | 8 | bool c0_const = is_column_const(*c0); | 598 | 8 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 8 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 8 | auto c_res = ColumnUInt8::create(); | 603 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 8 | vec_res.resize(c0->size()); | 605 | | | 606 | 8 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 8 | } else if (c1_const) { | 609 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 8 | } else { | 611 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 0 | } | 613 | | | 614 | 8 | block.replace_by_position(result, std::move(c_res)); | 615 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 9 | const IColumn* c1) const { | 597 | 9 | bool c0_const = is_column_const(*c0); | 598 | 9 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 9 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 9 | auto c_res = ColumnUInt8::create(); | 603 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 9 | vec_res.resize(c0->size()); | 605 | | | 606 | 9 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 9 | } else if (c1_const) { | 609 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 8 | } else { | 611 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 1 | } | 613 | | | 614 | 9 | block.replace_by_position(result, std::move(c_res)); | 615 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 58 | const IColumn* c1) const { | 597 | 58 | bool c0_const = is_column_const(*c0); | 598 | 58 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 58 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 58 | auto c_res = ColumnUInt8::create(); | 603 | 58 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 58 | vec_res.resize(c0->size()); | 605 | | | 606 | 58 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 58 | } else if (c1_const) { | 609 | 57 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 57 | } else { | 611 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 1 | } | 613 | | | 614 | 58 | block.replace_by_position(result, std::move(c_res)); | 615 | 58 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 11 | const IColumn* c1) const { | 597 | 11 | bool c0_const = is_column_const(*c0); | 598 | 11 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 11 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 11 | auto c_res = ColumnUInt8::create(); | 603 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 11 | vec_res.resize(c0->size()); | 605 | | | 606 | 11 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 11 | } else if (c1_const) { | 609 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 8 | } else { | 611 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 3 | } | 613 | | | 614 | 11 | block.replace_by_position(result, std::move(c_res)); | 615 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 57 | const IColumn* c1) const { | 597 | 57 | bool c0_const = is_column_const(*c0); | 598 | 57 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 57 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 57 | auto c_res = ColumnUInt8::create(); | 603 | 57 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 57 | vec_res.resize(c0->size()); | 605 | | | 606 | 57 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 57 | } else if (c1_const) { | 609 | 57 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 57 | } else { | 611 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 0 | } | 613 | | | 614 | 57 | block.replace_by_position(result, std::move(c_res)); | 615 | 57 | } |
|
616 | | |
617 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
618 | 158 | const ColumnWithTypeAndName& c1) const { |
619 | 158 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
620 | 158 | return Status::OK(); |
621 | 158 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 15 | const ColumnWithTypeAndName& c1) const { | 619 | 15 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 15 | return Status::OK(); | 621 | 15 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 8 | const ColumnWithTypeAndName& c1) const { | 619 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 8 | return Status::OK(); | 621 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 9 | const ColumnWithTypeAndName& c1) const { | 619 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 9 | return Status::OK(); | 621 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 58 | const ColumnWithTypeAndName& c1) const { | 619 | 58 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 58 | return Status::OK(); | 621 | 58 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 11 | const ColumnWithTypeAndName& c1) const { | 619 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 11 | return Status::OK(); | 621 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 57 | const ColumnWithTypeAndName& c1) const { | 619 | 57 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 57 | return Status::OK(); | 621 | 57 | } |
|
622 | | |
623 | | public: |
624 | 222 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 1 | String get_name() const override { return name; } |
|
625 | | |
626 | 551k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 459k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 2.71k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 626 | 42.8k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 16.7k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 626 | 4.53k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 25.7k | size_t get_number_of_arguments() const override { return 2; } |
|
627 | | |
628 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
629 | 35.5k | const VExprSPtrs& arguments) const override { |
630 | 35.5k | auto op = comparison_zonemap_detail::op_from_name(name); |
631 | 35.5k | DORIS_CHECK(op.has_value()); |
632 | 35.5k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
633 | 35.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 9.44k | const VExprSPtrs& arguments) const override { | 630 | 9.44k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 9.44k | DORIS_CHECK(op.has_value()); | 632 | 9.44k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 9.44k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 1.16k | const VExprSPtrs& arguments) const override { | 630 | 1.16k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 1.16k | DORIS_CHECK(op.has_value()); | 632 | 1.16k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 5.11k | const VExprSPtrs& arguments) const override { | 630 | 5.11k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 5.11k | DORIS_CHECK(op.has_value()); | 632 | 5.11k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 5.11k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 6.99k | const VExprSPtrs& arguments) const override { | 630 | 6.99k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 6.99k | DORIS_CHECK(op.has_value()); | 632 | 6.99k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 6.99k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 3.12k | const VExprSPtrs& arguments) const override { | 630 | 3.12k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 3.12k | DORIS_CHECK(op.has_value()); | 632 | 3.12k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 3.12k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 9.67k | const VExprSPtrs& arguments) const override { | 630 | 9.67k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 9.67k | DORIS_CHECK(op.has_value()); | 632 | 9.67k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 9.67k | } |
|
634 | | |
635 | 113k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
636 | 113k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
637 | 113k | comparison_zonemap_detail::can_evaluate(arguments); |
638 | 113k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 45.5k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 45.5k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 45.5k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 45.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 4.61k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 4.61k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 4.62k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 4.61k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 17.4k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 17.4k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 17.4k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 17.4k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 17.2k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 17.2k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 17.2k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 17.2k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 8.25k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 8.25k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 8.25k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 8.25k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 20.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 20.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 20.1k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 20.1k | } |
|
639 | | |
640 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
641 | 660 | const VExprSPtrs& arguments) const override { |
642 | 660 | auto op = comparison_zonemap_detail::op_from_name(name); |
643 | 660 | DORIS_CHECK(op.has_value()); |
644 | 660 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
645 | 660 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 622 | const VExprSPtrs& arguments) const override { | 642 | 622 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 622 | DORIS_CHECK(op.has_value()); | 644 | 622 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 622 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 4 | const VExprSPtrs& arguments) const override { | 642 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 4 | DORIS_CHECK(op.has_value()); | 644 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 3 | const VExprSPtrs& arguments) const override { | 642 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 3 | DORIS_CHECK(op.has_value()); | 644 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 3 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 16 | const VExprSPtrs& arguments) const override { | 642 | 16 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 16 | DORIS_CHECK(op.has_value()); | 644 | 16 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 7 | const VExprSPtrs& arguments) const override { | 642 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 7 | DORIS_CHECK(op.has_value()); | 644 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 7 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 8 | const VExprSPtrs& arguments) const override { | 642 | 8 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 8 | DORIS_CHECK(op.has_value()); | 644 | 8 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 8 | } |
|
646 | | |
647 | 17.0k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
648 | 17.0k | auto op = comparison_zonemap_detail::op_from_name(name); |
649 | 17.0k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
650 | 17.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 8.15k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 8.15k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 8.15k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 8.15k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 909 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 909 | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 909 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 909 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 3.19k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 3.19k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 3.19k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 3.19k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 2.09k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 2.09k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 2.09k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 2.09k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 1.19k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 1.19k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 1.19k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 1.19k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 1.45k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 1.45k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 1.45k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 1.45k | } |
|
651 | | |
652 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
653 | 14 | const VExprSPtrs& arguments) const override { |
654 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
655 | 14 | DORIS_CHECK(op.has_value()); |
656 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
657 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 653 | 14 | const VExprSPtrs& arguments) const override { | 654 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); | 655 | 14 | DORIS_CHECK(op.has_value()); | 656 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 657 | 14 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
658 | | |
659 | 8.53k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
660 | 8.53k | auto op = comparison_zonemap_detail::op_from_name(name); |
661 | 8.55k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
662 | 8.53k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 4.82k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 4.82k | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 4.82k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 4.82k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 695 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 695 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 695 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 695 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 1.71k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 1.71k | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 1.72k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 1.71k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 516 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 516 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 520 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 516 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 541 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 541 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 541 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 541 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 244 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 244 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 248 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 244 | } |
|
663 | | |
664 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
665 | 551k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
666 | 551k | return std::make_shared<DataTypeUInt8>(); |
667 | 551k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 459k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 459k | return std::make_shared<DataTypeUInt8>(); | 667 | 459k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 2.72k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 2.72k | return std::make_shared<DataTypeUInt8>(); | 667 | 2.72k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 42.9k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 42.9k | return std::make_shared<DataTypeUInt8>(); | 667 | 42.9k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 16.7k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 16.7k | return std::make_shared<DataTypeUInt8>(); | 667 | 16.7k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 4.53k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 4.53k | return std::make_shared<DataTypeUInt8>(); | 667 | 4.53k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 25.7k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 25.7k | return std::make_shared<DataTypeUInt8>(); | 667 | 25.7k | } |
|
668 | | |
669 | | Status evaluate_inverted_index( |
670 | | const ColumnsWithTypeAndName& arguments, |
671 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
672 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
673 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
674 | 1.35k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
675 | 1.35k | DCHECK(arguments.size() == 1); |
676 | 1.35k | DCHECK(data_type_with_names.size() == 1); |
677 | 1.35k | DCHECK(iterators.size() == 1); |
678 | 1.35k | auto* iter = iterators[0]; |
679 | 1.35k | auto data_type_with_name = data_type_with_names[0]; |
680 | 1.35k | if (iter == nullptr) { |
681 | 0 | return Status::OK(); |
682 | 0 | } |
683 | 1.35k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
684 | 310 | return Status::OK(); |
685 | 310 | } |
686 | 1.04k | segment_v2::InvertedIndexQueryType query_type; |
687 | 1.04k | std::string_view name_view(name); |
688 | 1.04k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
689 | 721 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
690 | 721 | } else if (name_view == NameLess::name) { |
691 | 78 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
692 | 244 | } else if (name_view == NameLessOrEquals::name) { |
693 | 80 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
694 | 164 | } else if (name_view == NameGreater::name) { |
695 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
696 | 94 | } else if (name_view == NameGreaterOrEquals::name) { |
697 | 94 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
698 | 18.4E | } else { |
699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
700 | 18.4E | } |
701 | | |
702 | 1.04k | if (segment_v2::is_range_query(query_type) && |
703 | 1.04k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
705 | 133 | return Status::OK(); |
706 | 133 | } |
707 | 913 | Field param_value; |
708 | 913 | arguments[0].column->get(0, param_value); |
709 | 913 | if (param_value.is_null()) { |
710 | 2 | return Status::OK(); |
711 | 2 | } |
712 | 911 | segment_v2::InvertedIndexParam param; |
713 | 911 | param.column_name = data_type_with_name.first; |
714 | 911 | param.column_type = data_type_with_name.second; |
715 | 911 | param.query_value = param_value; |
716 | 911 | param.query_type = query_type; |
717 | 911 | param.num_rows = num_rows; |
718 | 911 | param.roaring = std::make_shared<roaring::Roaring>(); |
719 | 911 | param.analyzer_ctx = analyzer_ctx; |
720 | 911 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
721 | 753 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
722 | 754 | if (iter->has_null()) { |
723 | 754 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
724 | 754 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
725 | 754 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
726 | 754 | } |
727 | 753 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
728 | 753 | bitmap_result = result; |
729 | 753 | bitmap_result.mask_out_null(); |
730 | | |
731 | 753 | if (name_view == NameNotEquals::name) { |
732 | 59 | roaring::Roaring full_result; |
733 | 59 | full_result.addRange(0, num_rows); |
734 | 59 | bitmap_result.op_not(&full_result); |
735 | 59 | } |
736 | | |
737 | 753 | return Status::OK(); |
738 | 753 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 695 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 695 | DCHECK(arguments.size() == 1); | 676 | 695 | DCHECK(data_type_with_names.size() == 1); | 677 | 695 | DCHECK(iterators.size() == 1); | 678 | 695 | auto* iter = iterators[0]; | 679 | 695 | auto data_type_with_name = data_type_with_names[0]; | 680 | 695 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 695 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 42 | return Status::OK(); | 685 | 42 | } | 686 | 653 | segment_v2::InvertedIndexQueryType query_type; | 687 | 653 | std::string_view name_view(name); | 688 | 655 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 655 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 18.4E | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 18.4E | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 18.4E | } else { | 699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 18.4E | } | 701 | | | 702 | 655 | if (segment_v2::is_range_query(query_type) && | 703 | 655 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 655 | Field param_value; | 708 | 655 | arguments[0].column->get(0, param_value); | 709 | 655 | if (param_value.is_null()) { | 710 | 2 | return Status::OK(); | 711 | 2 | } | 712 | 653 | segment_v2::InvertedIndexParam param; | 713 | 653 | param.column_name = data_type_with_name.first; | 714 | 653 | param.column_type = data_type_with_name.second; | 715 | 653 | param.query_value = param_value; | 716 | 653 | param.query_type = query_type; | 717 | 653 | param.num_rows = num_rows; | 718 | 653 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 653 | param.analyzer_ctx = analyzer_ctx; | 720 | 653 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 604 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 604 | if (iter->has_null()) { | 723 | 604 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 604 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 604 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 604 | } | 727 | 604 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 604 | bitmap_result = result; | 729 | 604 | bitmap_result.mask_out_null(); | 730 | | | 731 | 604 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 604 | return Status::OK(); | 738 | 604 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 72 | DCHECK(arguments.size() == 1); | 676 | 72 | DCHECK(data_type_with_names.size() == 1); | 677 | 72 | DCHECK(iterators.size() == 1); | 678 | 72 | auto* iter = iterators[0]; | 679 | 72 | auto data_type_with_name = data_type_with_names[0]; | 680 | 72 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 6 | return Status::OK(); | 685 | 6 | } | 686 | 66 | segment_v2::InvertedIndexQueryType query_type; | 687 | 66 | std::string_view name_view(name); | 688 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 66 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 0 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 0 | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 0 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 66 | if (segment_v2::is_range_query(query_type) && | 703 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 66 | Field param_value; | 708 | 66 | arguments[0].column->get(0, param_value); | 709 | 66 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 66 | segment_v2::InvertedIndexParam param; | 713 | 66 | param.column_name = data_type_with_name.first; | 714 | 66 | param.column_type = data_type_with_name.second; | 715 | 66 | param.query_value = param_value; | 716 | 66 | param.query_type = query_type; | 717 | 66 | param.num_rows = num_rows; | 718 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 66 | param.analyzer_ctx = analyzer_ctx; | 720 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 59 | if (iter->has_null()) { | 723 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 58 | } | 727 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 59 | bitmap_result = result; | 729 | 59 | bitmap_result.mask_out_null(); | 730 | | | 731 | 59 | if (name_view == NameNotEquals::name) { | 732 | 59 | roaring::Roaring full_result; | 733 | 59 | full_result.addRange(0, num_rows); | 734 | 59 | bitmap_result.op_not(&full_result); | 735 | 59 | } | 736 | | | 737 | 59 | return Status::OK(); | 738 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 112 | DCHECK(arguments.size() == 1); | 676 | 112 | DCHECK(data_type_with_names.size() == 1); | 677 | 112 | DCHECK(iterators.size() == 1); | 678 | 112 | auto* iter = iterators[0]; | 679 | 112 | auto data_type_with_name = data_type_with_names[0]; | 680 | 112 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 39 | return Status::OK(); | 685 | 39 | } | 686 | 73 | segment_v2::InvertedIndexQueryType query_type; | 687 | 73 | std::string_view name_view(name); | 688 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 73 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 73 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 73 | } else if (name_view == NameGreater::name) { | 695 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 0 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 73 | if (segment_v2::is_range_query(query_type) && | 703 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 17 | return Status::OK(); | 706 | 17 | } | 707 | 56 | Field param_value; | 708 | 56 | arguments[0].column->get(0, param_value); | 709 | 56 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 56 | segment_v2::InvertedIndexParam param; | 713 | 56 | param.column_name = data_type_with_name.first; | 714 | 56 | param.column_type = data_type_with_name.second; | 715 | 56 | param.query_value = param_value; | 716 | 56 | param.query_type = query_type; | 717 | 56 | param.num_rows = num_rows; | 718 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 56 | param.analyzer_ctx = analyzer_ctx; | 720 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 37 | if (iter->has_null()) { | 723 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 37 | } | 727 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 37 | bitmap_result = result; | 729 | 37 | bitmap_result.mask_out_null(); | 730 | | | 731 | 37 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 37 | return Status::OK(); | 738 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 180 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 180 | DCHECK(arguments.size() == 1); | 676 | 180 | DCHECK(data_type_with_names.size() == 1); | 677 | 180 | DCHECK(iterators.size() == 1); | 678 | 180 | auto* iter = iterators[0]; | 679 | 180 | auto data_type_with_name = data_type_with_names[0]; | 680 | 180 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 180 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 86 | return Status::OK(); | 685 | 86 | } | 686 | 94 | segment_v2::InvertedIndexQueryType query_type; | 687 | 94 | std::string_view name_view(name); | 688 | 95 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 94 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 94 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 94 | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 94 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 94 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 94 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 94 | if (segment_v2::is_range_query(query_type) && | 703 | 94 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 47 | return Status::OK(); | 706 | 47 | } | 707 | 47 | Field param_value; | 708 | 47 | arguments[0].column->get(0, param_value); | 709 | 47 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 47 | segment_v2::InvertedIndexParam param; | 713 | 47 | param.column_name = data_type_with_name.first; | 714 | 47 | param.column_type = data_type_with_name.second; | 715 | 47 | param.query_value = param_value; | 716 | 47 | param.query_type = query_type; | 717 | 47 | param.num_rows = num_rows; | 718 | 47 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 47 | param.analyzer_ctx = analyzer_ctx; | 720 | 47 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 6 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 7 | if (iter->has_null()) { | 723 | 7 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 7 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 7 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 7 | } | 727 | 6 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 6 | bitmap_result = result; | 729 | 6 | bitmap_result.mask_out_null(); | 730 | | | 731 | 6 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 6 | return Status::OK(); | 738 | 6 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 120 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 120 | DCHECK(arguments.size() == 1); | 676 | 120 | DCHECK(data_type_with_names.size() == 1); | 677 | 120 | DCHECK(iterators.size() == 1); | 678 | 120 | auto* iter = iterators[0]; | 679 | 120 | auto data_type_with_name = data_type_with_names[0]; | 680 | 120 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 120 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 43 | return Status::OK(); | 685 | 43 | } | 686 | 77 | segment_v2::InvertedIndexQueryType query_type; | 687 | 77 | std::string_view name_view(name); | 688 | 78 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 78 | } else if (name_view == NameLess::name) { | 691 | 78 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 18.4E | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 18.4E | } else { | 699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 18.4E | } | 701 | | | 702 | 78 | if (segment_v2::is_range_query(query_type) && | 703 | 78 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 18 | return Status::OK(); | 706 | 18 | } | 707 | 60 | Field param_value; | 708 | 60 | arguments[0].column->get(0, param_value); | 709 | 60 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 60 | segment_v2::InvertedIndexParam param; | 713 | 60 | param.column_name = data_type_with_name.first; | 714 | 60 | param.column_type = data_type_with_name.second; | 715 | 60 | param.query_value = param_value; | 716 | 60 | param.query_type = query_type; | 717 | 60 | param.num_rows = num_rows; | 718 | 60 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 60 | param.analyzer_ctx = analyzer_ctx; | 720 | 60 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 39 | if (iter->has_null()) { | 723 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 39 | } | 727 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 39 | bitmap_result = result; | 729 | 39 | bitmap_result.mask_out_null(); | 730 | | | 731 | 39 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 39 | return Status::OK(); | 738 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 174 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 174 | DCHECK(arguments.size() == 1); | 676 | 174 | DCHECK(data_type_with_names.size() == 1); | 677 | 174 | DCHECK(iterators.size() == 1); | 678 | 174 | auto* iter = iterators[0]; | 679 | 174 | auto data_type_with_name = data_type_with_names[0]; | 680 | 174 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 174 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 94 | return Status::OK(); | 685 | 94 | } | 686 | 80 | segment_v2::InvertedIndexQueryType query_type; | 687 | 80 | std::string_view name_view(name); | 688 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 80 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 80 | } else if (name_view == NameLessOrEquals::name) { | 693 | 80 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 80 | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 0 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 80 | if (segment_v2::is_range_query(query_type) && | 703 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 51 | return Status::OK(); | 706 | 51 | } | 707 | 29 | Field param_value; | 708 | 29 | arguments[0].column->get(0, param_value); | 709 | 29 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 29 | segment_v2::InvertedIndexParam param; | 713 | 29 | param.column_name = data_type_with_name.first; | 714 | 29 | param.column_type = data_type_with_name.second; | 715 | 29 | param.query_value = param_value; | 716 | 29 | param.query_type = query_type; | 717 | 29 | param.num_rows = num_rows; | 718 | 29 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 29 | param.analyzer_ctx = analyzer_ctx; | 720 | 29 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 8 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 9 | if (iter->has_null()) { | 723 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 9 | } | 727 | 8 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 8 | bitmap_result = result; | 729 | 8 | bitmap_result.mask_out_null(); | 730 | | | 731 | 8 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 8 | return Status::OK(); | 738 | 8 | } |
|
739 | | |
740 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
741 | 212k | uint32_t result, size_t input_rows_count) const override { |
742 | 212k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
743 | 212k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
744 | | |
745 | 212k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
746 | 212k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
747 | 212k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
748 | 212k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
749 | | |
750 | 212k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
751 | 212k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
752 | | |
753 | | /// The case when arguments are the same (tautological comparison). Return constant. |
754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
756 | 212k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
757 | 212k | col_left_untyped == col_right_untyped) { |
758 | | /// Always true: =, <=, >= |
759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
763 | 0 | block.get_by_position(result).column = |
764 | 0 | DataTypeUInt8() |
765 | 0 | .create_column_const(input_rows_count, |
766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
767 | 0 | ->convert_to_full_column_if_const(); |
768 | 0 | return Status::OK(); |
769 | 0 | } else { |
770 | 0 | block.get_by_position(result).column = |
771 | 0 | DataTypeUInt8() |
772 | 0 | .create_column_const(input_rows_count, |
773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
774 | 0 | ->convert_to_full_column_if_const(); |
775 | 0 | return Status::OK(); |
776 | 0 | } |
777 | 0 | } |
778 | | |
779 | 381k | auto can_compare = [](PrimitiveType t) -> bool { |
780 | 381k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
781 | 381k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 175k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 175k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 175k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 14.4k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 14.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 14.4k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 84.3k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 84.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 84.3k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 28.3k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 28.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 28.3k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 23.3k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 23.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 23.3k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 56.2k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 56.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 56.2k | }; |
|
782 | | |
783 | 212k | if (can_compare(left_type->get_primitive_type()) && |
784 | 212k | can_compare(right_type->get_primitive_type())) { |
785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
786 | 169k | if (!left_type->equals_ignore_precision(*right_type)) { |
787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
788 | 0 | get_name(), left_type->get_name(), |
789 | 0 | right_type->get_name()); |
790 | 0 | } |
791 | 169k | } |
792 | | |
793 | 212k | auto compare_type = left_type->get_primitive_type(); |
794 | 212k | switch (compare_type) { |
795 | 1.93k | case TYPE_BOOLEAN: |
796 | 1.93k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
797 | 13.5k | case TYPE_DATEV2: |
798 | 13.5k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
799 | 2.58k | case TYPE_DATETIMEV2: |
800 | 2.58k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
801 | 0 | case TYPE_DATETIMEV2_NANO: |
802 | 0 | return execute_num_type<TYPE_DATETIMEV2_NANO>(block, result, col_left_ptr, |
803 | 0 | col_right_ptr); |
804 | 0 | case TYPE_TIMESTAMPTZ: |
805 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
806 | 8.64k | case TYPE_TINYINT: |
807 | 8.64k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
808 | 3.09k | case TYPE_SMALLINT: |
809 | 3.09k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
810 | 98.2k | case TYPE_INT: |
811 | 98.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
812 | 36.8k | case TYPE_BIGINT: |
813 | 36.8k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
814 | 767 | case TYPE_LARGEINT: |
815 | 767 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
816 | 57 | case TYPE_IPV4: |
817 | 57 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
818 | 25 | case TYPE_IPV6: |
819 | 25 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
820 | 835 | case TYPE_FLOAT: |
821 | 835 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
822 | 3.06k | case TYPE_DOUBLE: |
823 | 3.06k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
824 | 4 | case TYPE_TIMEV2: |
825 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
826 | 0 | case TYPE_DECIMALV2: |
827 | 552 | case TYPE_DECIMAL32: |
828 | 8.44k | case TYPE_DECIMAL64: |
829 | 12.8k | case TYPE_DECIMAL128I: |
830 | 12.9k | case TYPE_DECIMAL256: |
831 | 12.9k | return execute_decimal(block, result, col_with_type_and_name_left, |
832 | 12.9k | col_with_type_and_name_right); |
833 | 1.07k | case TYPE_CHAR: |
834 | 10.4k | case TYPE_VARCHAR: |
835 | 29.1k | case TYPE_STRING: |
836 | 29.1k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
837 | 158 | default: |
838 | 158 | return execute_generic(block, result, col_with_type_and_name_left, |
839 | 158 | col_with_type_and_name_right); |
840 | 212k | } |
841 | 0 | return Status::OK(); |
842 | 212k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 100k | uint32_t result, size_t input_rows_count) const override { | 742 | 100k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 100k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 100k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 100k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 100k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 100k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 100k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 100k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 100k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 100k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | 0 | block.get_by_position(result).column = | 764 | 0 | DataTypeUInt8() | 765 | 0 | .create_column_const(input_rows_count, | 766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | 0 | ->convert_to_full_column_if_const(); | 768 | 0 | return Status::OK(); | 769 | | } else { | 770 | | block.get_by_position(result).column = | 771 | | DataTypeUInt8() | 772 | | .create_column_const(input_rows_count, | 773 | | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | | ->convert_to_full_column_if_const(); | 775 | | return Status::OK(); | 776 | | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 100k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 100k | }; | 782 | | | 783 | 100k | if (can_compare(left_type->get_primitive_type()) && | 784 | 100k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 74.3k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 74.3k | } | 792 | | | 793 | 100k | auto compare_type = left_type->get_primitive_type(); | 794 | 100k | switch (compare_type) { | 795 | 1.57k | case TYPE_BOOLEAN: | 796 | 1.57k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 1.21k | case TYPE_DATEV2: | 798 | 1.21k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 615 | case TYPE_DATETIMEV2: | 800 | 615 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 0 | case TYPE_DATETIMEV2_NANO: | 802 | 0 | return execute_num_type<TYPE_DATETIMEV2_NANO>(block, result, col_left_ptr, | 803 | 0 | col_right_ptr); | 804 | 0 | case TYPE_TIMESTAMPTZ: | 805 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 806 | 5.23k | case TYPE_TINYINT: | 807 | 5.23k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 808 | 801 | case TYPE_SMALLINT: | 809 | 801 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 810 | 47.8k | case TYPE_INT: | 811 | 47.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 812 | 16.5k | case TYPE_BIGINT: | 813 | 16.5k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 814 | 148 | case TYPE_LARGEINT: | 815 | 148 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 816 | 14 | case TYPE_IPV4: | 817 | 14 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 818 | 7 | case TYPE_IPV6: | 819 | 7 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 820 | 84 | case TYPE_FLOAT: | 821 | 84 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 822 | 336 | case TYPE_DOUBLE: | 823 | 336 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 824 | 4 | case TYPE_TIMEV2: | 825 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 826 | 0 | case TYPE_DECIMALV2: | 827 | 272 | case TYPE_DECIMAL32: | 828 | 558 | case TYPE_DECIMAL64: | 829 | 1.80k | case TYPE_DECIMAL128I: | 830 | 1.82k | case TYPE_DECIMAL256: | 831 | 1.82k | return execute_decimal(block, result, col_with_type_and_name_left, | 832 | 1.82k | col_with_type_and_name_right); | 833 | 761 | case TYPE_CHAR: | 834 | 8.97k | case TYPE_VARCHAR: | 835 | 24.4k | case TYPE_STRING: | 836 | 24.4k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 837 | 15 | default: | 838 | 15 | return execute_generic(block, result, col_with_type_and_name_left, | 839 | 15 | col_with_type_and_name_right); | 840 | 100k | } | 841 | 0 | return Status::OK(); | 842 | 100k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 8.70k | uint32_t result, size_t input_rows_count) const override { | 742 | 8.70k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 8.70k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 8.70k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 8.70k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 8.70k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 8.70k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 8.70k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 8.70k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 8.70k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 8.70k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | | block.get_by_position(result).column = | 764 | | DataTypeUInt8() | 765 | | .create_column_const(input_rows_count, | 766 | | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | | ->convert_to_full_column_if_const(); | 768 | | return Status::OK(); | 769 | 0 | } else { | 770 | 0 | block.get_by_position(result).column = | 771 | 0 | DataTypeUInt8() | 772 | 0 | .create_column_const(input_rows_count, | 773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | 0 | ->convert_to_full_column_if_const(); | 775 | 0 | return Status::OK(); | 776 | 0 | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 8.70k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 8.70k | }; | 782 | | | 783 | 8.70k | if (can_compare(left_type->get_primitive_type()) && | 784 | 8.70k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 5.73k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 5.73k | } | 792 | | | 793 | 8.70k | auto compare_type = left_type->get_primitive_type(); | 794 | 8.70k | switch (compare_type) { | 795 | 0 | case TYPE_BOOLEAN: | 796 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 82 | case TYPE_DATEV2: | 798 | 82 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 4 | case TYPE_DATETIMEV2: | 800 | 4 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 0 | case TYPE_DATETIMEV2_NANO: | 802 | 0 | return execute_num_type<TYPE_DATETIMEV2_NANO>(block, result, col_left_ptr, | 803 | 0 | col_right_ptr); | 804 | 0 | case TYPE_TIMESTAMPTZ: | 805 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 806 | 100 | case TYPE_TINYINT: | 807 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 808 | 10 | case TYPE_SMALLINT: | 809 | 10 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 810 | 2.34k | case TYPE_INT: | 811 | 2.34k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 812 | 3.13k | case TYPE_BIGINT: | 813 | 3.13k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 814 | 0 | case TYPE_LARGEINT: | 815 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 816 | 0 | case TYPE_IPV4: | 817 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 818 | 0 | case TYPE_IPV6: | 819 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 820 | 28 | case TYPE_FLOAT: | 821 | 28 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 822 | 37 | case TYPE_DOUBLE: | 823 | 37 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 824 | 0 | case TYPE_TIMEV2: | 825 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 826 | 0 | case TYPE_DECIMALV2: | 827 | 0 | case TYPE_DECIMAL32: | 828 | 67 | case TYPE_DECIMAL64: | 829 | 391 | case TYPE_DECIMAL128I: | 830 | 419 | case TYPE_DECIMAL256: | 831 | 419 | return execute_decimal(block, result, col_with_type_and_name_left, | 832 | 419 | col_with_type_and_name_right); | 833 | 9 | case TYPE_CHAR: | 834 | 323 | case TYPE_VARCHAR: | 835 | 2.54k | case TYPE_STRING: | 836 | 2.54k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 837 | 8 | default: | 838 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 839 | 8 | col_with_type_and_name_right); | 840 | 8.70k | } | 841 | 0 | return Status::OK(); | 842 | 8.70k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 45.5k | uint32_t result, size_t input_rows_count) const override { | 742 | 45.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 45.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 45.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 45.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 45.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 45.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 45.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 45.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 45.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 45.5k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | | block.get_by_position(result).column = | 764 | | DataTypeUInt8() | 765 | | .create_column_const(input_rows_count, | 766 | | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | | ->convert_to_full_column_if_const(); | 768 | | return Status::OK(); | 769 | 0 | } else { | 770 | 0 | block.get_by_position(result).column = | 771 | 0 | DataTypeUInt8() | 772 | 0 | .create_column_const(input_rows_count, | 773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | 0 | ->convert_to_full_column_if_const(); | 775 | 0 | return Status::OK(); | 776 | 0 | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 45.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 45.5k | }; | 782 | | | 783 | 45.5k | if (can_compare(left_type->get_primitive_type()) && | 784 | 45.5k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 38.8k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 38.8k | } | 792 | | | 793 | 45.5k | auto compare_type = left_type->get_primitive_type(); | 794 | 45.5k | switch (compare_type) { | 795 | 0 | case TYPE_BOOLEAN: | 796 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 1.14k | case TYPE_DATEV2: | 798 | 1.14k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 102 | case TYPE_DATETIMEV2: | 800 | 102 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 0 | case TYPE_DATETIMEV2_NANO: | 802 | 0 | return execute_num_type<TYPE_DATETIMEV2_NANO>(block, result, col_left_ptr, | 803 | 0 | col_right_ptr); | 804 | 0 | case TYPE_TIMESTAMPTZ: | 805 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 806 | 1.03k | case TYPE_TINYINT: | 807 | 1.03k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 808 | 1.74k | case TYPE_SMALLINT: | 809 | 1.74k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 810 | 18.2k | case TYPE_INT: | 811 | 18.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 812 | 13.9k | case TYPE_BIGINT: | 813 | 13.9k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 814 | 251 | case TYPE_LARGEINT: | 815 | 251 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 816 | 4 | case TYPE_IPV4: | 817 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 818 | 1 | case TYPE_IPV6: | 819 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 820 | 216 | case TYPE_FLOAT: | 821 | 216 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 822 | 2.13k | case TYPE_DOUBLE: | 823 | 2.13k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 824 | 0 | case TYPE_TIMEV2: | 825 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 826 | 0 | case TYPE_DECIMALV2: | 827 | 46 | case TYPE_DECIMAL32: | 828 | 5.07k | case TYPE_DECIMAL64: | 829 | 6.47k | case TYPE_DECIMAL128I: | 830 | 6.47k | case TYPE_DECIMAL256: | 831 | 6.47k | return execute_decimal(block, result, col_with_type_and_name_left, | 832 | 6.47k | col_with_type_and_name_right); | 833 | 14 | case TYPE_CHAR: | 834 | 76 | case TYPE_VARCHAR: | 835 | 174 | case TYPE_STRING: | 836 | 174 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 837 | 9 | default: | 838 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 839 | 9 | col_with_type_and_name_right); | 840 | 45.5k | } | 841 | 0 | return Status::OK(); | 842 | 45.5k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 14.6k | uint32_t result, size_t input_rows_count) const override { | 742 | 14.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 14.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 14.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 14.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 14.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 14.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 14.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 14.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 14.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 14.6k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | 0 | block.get_by_position(result).column = | 764 | 0 | DataTypeUInt8() | 765 | 0 | .create_column_const(input_rows_count, | 766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | 0 | ->convert_to_full_column_if_const(); | 768 | 0 | return Status::OK(); | 769 | | } else { | 770 | | block.get_by_position(result).column = | 771 | | DataTypeUInt8() | 772 | | .create_column_const(input_rows_count, | 773 | | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | | ->convert_to_full_column_if_const(); | 775 | | return Status::OK(); | 776 | | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 14.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 14.6k | }; | 782 | | | 783 | 14.6k | if (can_compare(left_type->get_primitive_type()) && | 784 | 14.6k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 13.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 13.6k | } | 792 | | | 793 | 14.6k | auto compare_type = left_type->get_primitive_type(); | 794 | 14.6k | switch (compare_type) { | 795 | 146 | case TYPE_BOOLEAN: | 796 | 146 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 2.19k | case TYPE_DATEV2: | 798 | 2.19k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 861 | case TYPE_DATETIMEV2: | 800 | 861 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 0 | case TYPE_DATETIMEV2_NANO: | 802 | 0 | return execute_num_type<TYPE_DATETIMEV2_NANO>(block, result, col_left_ptr, | 803 | 0 | col_right_ptr); | 804 | 0 | case TYPE_TIMESTAMPTZ: | 805 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 806 | 89 | case TYPE_TINYINT: | 807 | 89 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 808 | 110 | case TYPE_SMALLINT: | 809 | 110 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 810 | 9.30k | case TYPE_INT: | 811 | 9.30k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 812 | 551 | case TYPE_BIGINT: | 813 | 551 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 814 | 50 | case TYPE_LARGEINT: | 815 | 50 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 816 | 11 | case TYPE_IPV4: | 817 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 818 | 1 | case TYPE_IPV6: | 819 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 820 | 182 | case TYPE_FLOAT: | 821 | 182 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 822 | 127 | case TYPE_DOUBLE: | 823 | 127 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 824 | 0 | case TYPE_TIMEV2: | 825 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 826 | 0 | case TYPE_DECIMALV2: | 827 | 9 | case TYPE_DECIMAL32: | 828 | 280 | case TYPE_DECIMAL64: | 829 | 356 | case TYPE_DECIMAL128I: | 830 | 378 | case TYPE_DECIMAL256: | 831 | 378 | return execute_decimal(block, result, col_with_type_and_name_left, | 832 | 378 | col_with_type_and_name_right); | 833 | 40 | case TYPE_CHAR: | 834 | 301 | case TYPE_VARCHAR: | 835 | 612 | case TYPE_STRING: | 836 | 612 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 837 | 58 | default: | 838 | 58 | return execute_generic(block, result, col_with_type_and_name_left, | 839 | 58 | col_with_type_and_name_right); | 840 | 14.6k | } | 841 | 0 | return Status::OK(); | 842 | 14.6k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 12.4k | uint32_t result, size_t input_rows_count) const override { | 742 | 12.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 12.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 12.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 12.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 12.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 12.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 12.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 12.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 12.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 12.4k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | | block.get_by_position(result).column = | 764 | | DataTypeUInt8() | 765 | | .create_column_const(input_rows_count, | 766 | | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | | ->convert_to_full_column_if_const(); | 768 | | return Status::OK(); | 769 | 0 | } else { | 770 | 0 | block.get_by_position(result).column = | 771 | 0 | DataTypeUInt8() | 772 | 0 | .create_column_const(input_rows_count, | 773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | 0 | ->convert_to_full_column_if_const(); | 775 | 0 | return Status::OK(); | 776 | 0 | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 12.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 12.4k | }; | 782 | | | 783 | 12.4k | if (can_compare(left_type->get_primitive_type()) && | 784 | 12.4k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 10.9k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 10.9k | } | 792 | | | 793 | 12.4k | auto compare_type = left_type->get_primitive_type(); | 794 | 12.4k | switch (compare_type) { | 795 | 78 | case TYPE_BOOLEAN: | 796 | 78 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 2.23k | case TYPE_DATEV2: | 798 | 2.23k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 650 | case TYPE_DATETIMEV2: | 800 | 650 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 0 | case TYPE_DATETIMEV2_NANO: | 802 | 0 | return execute_num_type<TYPE_DATETIMEV2_NANO>(block, result, col_left_ptr, | 803 | 0 | col_right_ptr); | 804 | 0 | case TYPE_TIMESTAMPTZ: | 805 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 806 | 2.06k | case TYPE_TINYINT: | 807 | 2.06k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 808 | 267 | case TYPE_SMALLINT: | 809 | 267 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 810 | 3.13k | case TYPE_INT: | 811 | 3.13k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 812 | 1.70k | case TYPE_BIGINT: | 813 | 1.70k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 814 | 277 | case TYPE_LARGEINT: | 815 | 277 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 816 | 18 | case TYPE_IPV4: | 817 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 818 | 16 | case TYPE_IPV6: | 819 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 820 | 147 | case TYPE_FLOAT: | 821 | 147 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 822 | 323 | case TYPE_DOUBLE: | 823 | 323 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 824 | 0 | case TYPE_TIMEV2: | 825 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 826 | 0 | case TYPE_DECIMALV2: | 827 | 221 | case TYPE_DECIMAL32: | 828 | 481 | case TYPE_DECIMAL64: | 829 | 910 | case TYPE_DECIMAL128I: | 830 | 911 | case TYPE_DECIMAL256: | 831 | 911 | return execute_decimal(block, result, col_with_type_and_name_left, | 832 | 911 | col_with_type_and_name_right); | 833 | 177 | case TYPE_CHAR: | 834 | 351 | case TYPE_VARCHAR: | 835 | 613 | case TYPE_STRING: | 836 | 613 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 837 | 11 | default: | 838 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 839 | 11 | col_with_type_and_name_right); | 840 | 12.4k | } | 841 | 0 | return Status::OK(); | 842 | 12.4k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 29.9k | uint32_t result, size_t input_rows_count) const override { | 742 | 29.9k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 29.9k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 29.9k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 29.9k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 29.9k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 29.9k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 29.9k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 29.9k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 29.9k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 29.9k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | 0 | block.get_by_position(result).column = | 764 | 0 | DataTypeUInt8() | 765 | 0 | .create_column_const(input_rows_count, | 766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | 0 | ->convert_to_full_column_if_const(); | 768 | 0 | return Status::OK(); | 769 | | } else { | 770 | | block.get_by_position(result).column = | 771 | | DataTypeUInt8() | 772 | | .create_column_const(input_rows_count, | 773 | | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | | ->convert_to_full_column_if_const(); | 775 | | return Status::OK(); | 776 | | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 29.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 29.9k | }; | 782 | | | 783 | 29.9k | if (can_compare(left_type->get_primitive_type()) && | 784 | 29.9k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 26.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 26.2k | } | 792 | | | 793 | 29.9k | auto compare_type = left_type->get_primitive_type(); | 794 | 29.9k | switch (compare_type) { | 795 | 136 | case TYPE_BOOLEAN: | 796 | 136 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 6.71k | case TYPE_DATEV2: | 798 | 6.71k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 355 | case TYPE_DATETIMEV2: | 800 | 355 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 0 | case TYPE_DATETIMEV2_NANO: | 802 | 0 | return execute_num_type<TYPE_DATETIMEV2_NANO>(block, result, col_left_ptr, | 803 | 0 | col_right_ptr); | 804 | 0 | case TYPE_TIMESTAMPTZ: | 805 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 806 | 131 | case TYPE_TINYINT: | 807 | 131 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 808 | 155 | case TYPE_SMALLINT: | 809 | 155 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 810 | 17.4k | case TYPE_INT: | 811 | 17.4k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 812 | 970 | case TYPE_BIGINT: | 813 | 970 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 814 | 41 | case TYPE_LARGEINT: | 815 | 41 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 816 | 10 | case TYPE_IPV4: | 817 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 818 | 0 | case TYPE_IPV6: | 819 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 820 | 178 | case TYPE_FLOAT: | 821 | 178 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 822 | 113 | case TYPE_DOUBLE: | 823 | 113 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 824 | 0 | case TYPE_TIMEV2: | 825 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 826 | 0 | case TYPE_DECIMALV2: | 827 | 4 | case TYPE_DECIMAL32: | 828 | 1.97k | case TYPE_DECIMAL64: | 829 | 2.92k | case TYPE_DECIMAL128I: | 830 | 2.94k | case TYPE_DECIMAL256: | 831 | 2.94k | return execute_decimal(block, result, col_with_type_and_name_left, | 832 | 2.94k | col_with_type_and_name_right); | 833 | 75 | case TYPE_CHAR: | 834 | 385 | case TYPE_VARCHAR: | 835 | 761 | case TYPE_STRING: | 836 | 761 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 837 | 57 | default: | 838 | 57 | return execute_generic(block, result, col_with_type_and_name_left, | 839 | 57 | col_with_type_and_name_right); | 840 | 29.9k | } | 841 | 0 | return Status::OK(); | 842 | 29.9k | } |
|
843 | | }; |
844 | | |
845 | | } // namespace doris |